:root {
    --background-color: #181818;
    --surface-color: #1E1E1E;
    --primary-text-color: #E0E0E0;
    --secondary-text-color: #A0A0A0;
    --accent-color: #59a6ff;
    --border-color: #333333;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    color: #8abfff
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

#error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

.center-text {
    text-align: center;
}

.page-center {
  min-height: 60vh;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
  padding: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  gap: 1rem;              /* Adds space between items */
  align-items: center;    /* This will center the smaller input boxes */
  
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background-color: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-form h1 {
  margin: 0 0 1rem 0;
  font-size: 1.75rem;
  text-align: center;
}

/* --- 4. Input, Button, and Error Styling --- */

/* This is the new .input class you requested */
.input {
  padding: 14px;
  font-size: 1rem;
  color: var(--primary-text-color);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25);
}

.input-btn {
  padding: 14px;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.input-btn:hover {
  background-color: #4091e8;
}

.navbar {
  background-color: #59a6ff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  color: #ecf0f1;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin-left: 20px;
}

.navbar a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.grid-item {
  width: 340px;
  height: 198px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.grid-tiem:hover {
  transform: scale(1.03);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wrapper {
  text-align: center;
}

.iframe-container {
  position: relative;
  display: inline-block;
}

.fullscreen-btn {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 2px;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.fullscreen-btn:hover {
  background-color: #4091e8;
}

.dashboard {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

.dashboard h2 {
  margin-bottom: 5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dash-card {
  background: #333333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dash-card h3 {
  margin-top: 0;
}

.dash-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.dash-card ul li {
  margin: 5px 0;
}

.dash-card ul li a {
  color: #59a6ff;
  text-decoration: none;
}

.dash-card.wide {
  grid-column: span 2;
}

#gameContainer {
    width: 100%;
    height: 100%;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden; /* keeps rounded corners */
}