/* Reset base styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  height: 100%;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: #fff;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

/* Navbar inner container */
.navbar-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center; /* vertical centering */
  gap: 10px; /* space between logo and text */
  font-size: 1.5rem; /* optional: adjust text size */
  font-weight: bold;  /* optional: make title stand out */
}


/* Auth Links */
.auth-links {
  display: flex;
  gap: 15px;
}

.auth-button {
  background-color: transparent;
  border: 2px solid #4CAF50;
  color: #4CAF50;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent buttons from breaking into two lines */
}

.auth-button.signup {
  background-color: #4CAF50;
  color: white;
}

.auth-button:hover {
  background-color: #45a049;
  color: white;
  border-color: #45a049;
}

/* Main content */
.main-content {
  margin-top: 100px; /* space for navbar */
  text-align: center;
  padding: 40px 20px;
}

.main-title {
  font-size: 48px;
  margin-bottom: 40px;
}

/* Game mode buttons */
.mode-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.mode-button-wrapper {
  text-align: center;
}

.mode-button {
  padding: 20px 30px;
  font-size: 18px;
  font-weight: bold;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.mode-button:hover {
  background-color: #555;
  transform: scale(1.05);
}

.mode-emoji {
  font-size: 32px;
}


/* ========== Responsive ========== */

/* Medium screens (tablets) */
@media (max-width: 768px) {
  .auth-button {
    padding: 6px 12px;
    font-size: 14px;
  }

  .mode-button {
    padding: 16px 30px;
    font-size: 18px;
  }
}

/* Small screens (phones) */
@media (max-width: 500px) {
  .navbar-content {
    padding: 0 15px;
  }

  .auth-links {
    gap: 10px;
  }

  .auth-button {
    padding: 5px 10px;
    font-size: 13px;
  }

  .mode-buttons {
    flex-direction: column;
    align-items: center;
  }

  .mode-button {
    width: 80%;
  }
}

/* Hide loader after page loads */
body.loaded #loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#ranked-link {
  display: inline-block; /* Keeps the link in its normal flow */
  pointer-events: auto; /* Ensures it works normally when enabled */
}

#ranked-link.disabled {
  pointer-events: none; /* Disable all mouse events */
  opacity: 0.5; /* Make the link visually appear disabled */
}

#ranked-btn:disabled {
  cursor: not-allowed;
  background-color: #ccc;
  color: #666;
}

#ranked-mode-msg {
  color: gray;
  font-size: 14px;
  margin-bottom: 8px;
  text-align: center;
}

#ranked-link.disabled #ranked-btn {
  cursor: not-allowed;
  background-color: #ccc;
  color: #666;
}

#ranked-link.disabled #ranked-mode-msg {
  display: block; /* Show the message when the link is disabled */
}


