/* General Reset */
body {
  background: #121212;
  color: #fff;
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
}

header {
  padding: 20px;
  background: #1f1f1f;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  color: #ccc;
  margin-top: 5px;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.game-card {
  background: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-color: #444;
}

/* Auto image sizing */
.game-card img {
  width: 100%;
  height: 150px; /* Fixed height for consistency */
  object-fit: cover; /* Crops image nicely without stretching */
  display: block;
  background: #000; /* fallback background if image fails */
}

.game-card h2 {
  margin: 10px 0;
  font-size: 1.2rem;
  padding: 0 5px;
  text-align: center;
}

/* Footer */
footer {
  padding: 10px;
  background: #1f1f1f;
  color: #aaa;
  font-size: 14px;
  margin-top: 20px;
}
/* Top navigation bar */
.top-nav {
  background-color: #333;       /* dark background */
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  padding: 10px 20px;
}
.top-nav .nav-link {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 5px;
  margin-right: 10px;
}
.top-nav .nav-link:hover {
  background-color: #555;       /* hover effect */
}

.top-nav .nav-link.active {
  background-color: #28a745;    /* highlight the current tab */
}
.new-label {
  background-color: red;    /* highlighted red */
  color: yellow;            /* text yellow */
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;        /* space between NEW and text */
  font-size: 0.8em;         /* slightly smaller than tab text */
}