.games-container {
  width: 100%;
  max-width: 1200px; /* Adjust as needed */
  margin: 0 auto;
  margin-top: 5%;
}

.games-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px; /* Space between rows */
}

.game-card {
  width: 23%; /* Slightly less than 25% to account for margins */
  margin: 0 1%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.game-card img {
  max-width: 100%;
  height: auto;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .games-row {
    flex-wrap: wrap;
  }
  .game-card {
    width: 48%; /* Two cards per row on smaller screens */
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .game-card {
    width: 100%; /* One card per row on very small screens */
  }
}
#game-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.game-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2.5% auto;
  background-color: rgba(0, 0, 0, 0.8);
}

#game-iframe {
  width: 100%;
  height: calc(100% - 40px); /* Adjust for close button */
  border: none;
}

#close-game-modal {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #f1f1f1;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

#close-game-modal:hover,
#close-game-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
