/* Logo + site name */
.logo-container {
  display: flex;
  align-items: center; /* Vertically aligns logo and text */
  gap: 10px;           /* Space between logo and text */
}

/* Logo sizing */
.logo {
  height: 100px;      /* Adjust to match site-name size */
  width: 100px;       /* Maintain aspect ratio */
}

/* Site name */
.site-name {
  font-size: 1.8rem; /* Adjust font size */
  font-weight: bold;
  color: #fff;       /* Change to match your theme */
}

/* Navbar styling */
nav {
  margin-top: 10px;  /* optional spacing */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;         /* space between links */
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #00ff88;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #f5f5f5; /* highlight on hover */
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #121212; /* Dark background */
  color: #f5f5f5; /* Light text */
  line-height: 1.6;
}

/* Header */
header {
  background: #111; /* dark background */
  color: #00ff88;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  color:#00ff88;
  
}

header nav ul li a:hover {
  color: #fff; 
}

/* 🔍 Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: #222;
  border-radius: 6px;
  padding: 1px;
  margin-left: 20px;
}

.search-box input {
  border: none;
  outline: none;
  padding: 5px 8px;
  background: transparent;
  color: #f5f5f5;
}

.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #00ff88; /* matches hover color */
  font-size: 16px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .search-box {
    margin-top: 10px;
    width: 50%;
  }

  .search-box input {
    flex: 1;
    width: 50%;
  }
}


/* Responsive for smaller screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ensure the search-box is positioned so absolute suggestions sit under it */
.search-box { position: relative; }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #0d0d0d, #1a1a1a);
  color: #fff;
  border-bottom: 2px solid #00ff88;
}

.hero h1 {
  font-size: 2.5rem;
  color: #00ff88; /* Green heading */
}

.hero p {
  margin: 15px 0;
  color: #ccc;
}

.hero input {
  padding: 10px;
  width: 60%;
  max-width: 400px;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
}

/* Games Section */
.games {
  padding: 40px 5%;
}

.games h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: #00ff88; /* Green section title */
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.game-card {
  background: #1e1e1e; /* Dark card */
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px #00cc6a; /* Green glow */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px #00cc6a;
}

.game-card img {
  width: 50%;
  border-radius: 10px;
}

.game-card h3 {
  margin: 15px 0 10px;
  color: #fff;
}

/* ✅ Green Buttons */
.btn {
  display: inline-block;
  margin: 5px;
  padding: 10px 15px;
  background: #00ff88; /* Green */
  color: #121212; /* Dark text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn:hover {
  background: #00ff88;
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  background: #111;
  color: #888;
  padding: 15px;
  margin-top: 30px;
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero input {
    width: 90%;
  }

  .games h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .game-card h3 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
/* Make images resize instead of overflowing */
img {
  max-width: 100%;
  height: 50%;
  display: block;
}

/* Containers should not overflow */
.container, .content, .hero, .game-card {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
