/* 🌑 GLOBAL STYLES */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  background-image: url("bg-texture.png");
  background-repeat: repeat;
  background-size: auto;
  color: #ffffff;
}

/* 🔝 NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ff88;
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00ff88;
}

.profile-button button {
  padding: 8px 16px;
  background-color: #00ff88;
  color: #0f0f0f;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.profile-button button:hover {
  background-color: #00cc6e;
}

/* 🧠 MAIN CONTENT */
.main-content {
  text-align: center;
  padding: 60px 20px;
}

.main-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
}

.main-content p {
  font-size: 1.2rem;
  color: #cccccc;
}

/* 🎮 GAME SECTION */
.game-section {
  margin-top: 40px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  color: white;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: scale(1.05);
  border-color: #00ff88;
}

/* 👤 SLIDING SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 25%;
  height: 100%;
  background-color: #1a1a1a;
  color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.6);
  padding: 20px;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 🌘 BACKGROUND OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
/* 🧾 Login Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form label {
  font-size: 0.9rem;
  color: #ccc;
}

.login-form input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: white;
}

.login-form input::placeholder {
  color: #888;
}

.login-form button {
  background-color: #00ff88;
  color: #0f0f0f;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #00cc6e;
}
.auth-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-toggle button {
  flex: 1;
  padding: 8px;
  background-color: #2a2a2a;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.auth-toggle button.active {
  background-color: #00ff88;
  color: #0f0f0f;
}
