/* CSS Reset for html and body */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Ensure background covers full viewport height */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  background-color: #000; /* Apply black background to the root element */
}

body {
  font-family: 'Inconsolata', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #fff; /* text-white */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem; /* Default to 16px */
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* For Safari support */
  z-index: 1000;
  padding: 0.75rem 0; /* Vertical padding */
  display: flex;
  justify-content: center;
}

.navbar-inner-container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem; /* Horizontal padding, match container's side padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 640px) { /* sm */
  .navbar-inner-container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) { /* lg */
  .navbar-inner-container {
    padding: 0 2rem;
  }
}

.navbar-logo,
.navbar-logo:hover,
.navbar-logo:focus,
.navbar-logo:active,
.navbar-logo:visited {
  font-family: 'Inconsolata', monospace;
  font-size: 26px;
  line-height: 32px;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none; /* Ensure no underline in any state */
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-menu-item {
  font-family: 'Inconsolata', monospace;
  font-size: 16px;
  line-height: 16px;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
  text-decoration: none; /* Remove underline from links */
}
.navbar-menu-item:hover {
  color: #33FF81;
}
.navbar-menu-item.active {
  color: #33FF81; /* Highlight active link */
  font-weight: bold;
}

.navbar-button {
  font-family: 'Inconsolata', monospace;
  font-size: 16px;
  line-height: 16px;
  background-color: #fff;
  color: #000;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.navbar-button:hover {
  background-color: #33FF81;
  color: #000;
}

/* Responsive adjustments for screens below 768px */
@media (max-width: 767px) { /* breakpoint at 768px */
  /* Hide "ABOUT" and "CONTACT" in the navbar */
  .navbar-menu .navbar-menu-item:not(.always-visible) {
    display: none;
  }
}

/* Footer Styles */
.footer {
  margin-top: auto; /* Push footer to the bottom */
  background-color: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  color: #9ca3af; /* gray-400 */
  font-size: 0.875rem; /* 14px */
}

.footer-inner-container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner-container {
    flex-direction: row;
    justify-content: center; /* Changed from space-between to center */
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .footer-inner-container {
    padding: 0 2rem;
  }
}

/* Removed .footer-links a and .footer-ad-placeholder styles as they are no longer used */

/* Game page specific container */
main.game-container {
  flex-grow: 1;
  width: 100%;
  max-width: 1200px; /* max-w-7xl changed to 1200px for consistency */
  margin-left: auto;
  margin-right: auto;
  padding: 1rem; /* Added padding for game pages */
  display: flex; /* Flexbox for game content alignment */
  justify-content: center; /* Center game horizontally */
  align-items: center; /* Center game vertically */
  min-height: calc(100vh - 4.5rem - 6rem); /* Adjust for navbar and footer height */
}

@media (min-width: 640px) { /* sm */
  main.game-container {
    padding: 1.5rem; /* 24px */
  }
}
@media (min-width: 1024px) { /* lg */
  main.game-container {
    padding: 2rem; /* 32px */
  }
}

/* ADDED: Hidden class definition for correct display:none behavior */
.hidden {
  display: none !important;
}