#game-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 50px;
  padding: 10px;
  justify-items: center;
}

.game-card {
  background-size: cover;
  background-position: center;
  width: 400px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  background-color: #161b22;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.game-card:hover {
  transform: scale(1.1);
}

#WIP h3 {
  margin-bottom: 2.5px;
}

#WIP h5 {
  margin-top: 2.5px;
}

.game-card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 10px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 1;
}

@media (min-width: 600px) {
  #game-selection-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .game-card {
    width: 400px;
    height: 300px;
  }
}

@media (max-width: 600px) {
  #game-selection-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .game-card {
    width: 300px;
    height: 200px;
  }
}
