/* General Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a;
  color: #f3f4f6;
}

main {
  padding-bottom: 6rem; /* Prevent footer overlap */
}

.bg-custom {
  background-image: url('/assets/bg1.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; /* Optional: parallax effect */
  min-height: 100vh;
  padding-top: 5rem;
}

.logo-img {
  width: 240px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.description {
  text-align: center;
  max-width: 600px;
  font-size: 1.125rem;
  margin: 0 auto;
  color: #f3f4f6;
}

.info {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.hero-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  color: white;
  transition: 0.3s ease;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.btn-store {
  background-color: #9333ea;
}
.btn-store:hover {
  background-color: #7e22ce;
}

.btn-play {
  background-color: #2563eb;
}
.btn-play:hover {
  background-color: #1d4ed8;
}

.btn-vote {
  background-color: #db2777;
}
.btn-vote:hover {
  background-color: #be185d;
}

.player-count {
  margin-top: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.player-count .count {
  font-size: 2.5rem;
  color: #60a5fa;
  font-weight: bold;
}
.player-count .text {
  color: white;
  margin-top: 0.5rem;
}
.player-count .cta {
  color: #4ade80;
  margin-top: 0.5rem;
}

/* Navbar */
.navbar {
  background-color: #111;
  color: white;
  padding: 1rem 2rem;
  position: relative;
  z-index: 9999;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.menu-button {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

/* Nav Links (Desktop) */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    text-align: left;
    font-size: 1.1rem;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  display: none;
  background-color: #1f2937;
  padding: 0.5rem;
  border-radius: 0.5rem;
  top: 100%;
  left: 0;
  z-index: 10;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.25rem 0.5rem;
  color: white;
  text-decoration: none;
}
.dropdown-content a:hover {
  background-color: #374151;
}

/* Mobile menu */
.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: white;
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #111827;
  color: white;
  position: relative;
  z-index: 10;
}

/* Responsive Layout Fixes */
@media screen and (max-width: 768px) {
  .hero-text {
    font-size: 1rem;
    text-align: center;
  }

  .button-group button {
    margin: 5px auto;
    display: block;
    width: 80%;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  header, footer {
    text-align: center;
  }
}

.status-maintenance {
  background-color: #d89c00;
}

.status-box {
  background-color: #111;
  color: white;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 10px;
  text-align: center;
}

.status-online {
  background-color: #2ecc71;
}

.status-offline {
  background-color: #e74c3c;
}

.status-maintenance {
  background-color: #f1c40f;
  color: black;
}

/* IP Display */
.ip-info {
  text-align: center;
  color: white;
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  word-wrap: break-word;
}
