/* Header styling */
header {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  text-align: left;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
  color: #333;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: #555;
}

.category-section {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align contents to the left */
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1rem;
  font-weight: 700;
  color: #222;
  display: inline-block;
}

.category-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #1e88e5, #64b5f6);
  border-radius: 2px;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(to right, #1e88e5, transparent);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.game-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 0.9rem;
  color: #555;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 100px)); /* Fixed width columns */
  gap: 0.75rem;
  width: 70%; /* Set an explicit width */
  justify-content: start; /* Align grid items to the left */
  margin: 0; /* Remove all automatic margins */
}

.game-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card img {
  width: 100%;
  height: 100px; /* Further reduced image height from 120px to 100px */
  object-fit: cover;
  border-bottom: 2px solid #eee;
}

.game-info {
  padding: 0.5rem;
  font-size: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}