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

body {
  background-color: black;
  background-image: url("../images/NightBlast.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  color: white;
}

/* Navbar Optimization */
.navbar {
  display: flex;
  justify-content: flex-end; 
  background-color: black;
  padding: 15px 30px;        
  border-bottom: 2px solid #bd5f06;
}

.nav-link {
  text-decoration: none;
  color: #bd5f06;            
  font-weight: bold;
  font-size: 1.2rem;
  padding: 5px 15px;
  transition: 0.3s;
}

.nav-link:hover {
  color: white;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  color: #fdfdfd;
  margin: 40px 0;
}

/* Responsive Grid Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Automatically stacks on mobile */
  gap: 20px;
  justify-items: center;
}

.game-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 20px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.game-image:hover {
  transform: scale(1.05);
  border-color: #ff7b00;
  box-shadow: 0 0 15px rgba(255, 123, 0, 0.5);
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .navbar {
    justify-content: center; /* Center nav on mobile */
    padding: 10px;
  }
}