body {
  font-family: "Inter", sans-serif;
  background: #f4f8fc;
  color: #222;
  text-align: center;
  padding: 20px;
  font-size: 16px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
  color: #0a4d80;
}

.story-text {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 160px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 6px;
  background: #f9f9f9;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
}

#game-grid {
  display: grid;
  height: 90vh;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 0 auto;
  padding: 20px;
  max-width: 1200px;
}
.game-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#whimsical {
  background-image: url("whimsical.jpg"); /* whimsical forest image */
}

#horror {
  background-image: url("horror.jpg"); /* spooky but PG background */
}

#steampunk {
  background-image: url("steampunk.jpg"); /* gears and old maps */
}

#itSupport {
  background-image: url("it.jpg"); /* messy computer desk image */
}

button {
  background: #0a4d80;
  color: white;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #1466a5;
  transform: translateY(-2px);
}

button:active {
  background: #0a4d80;
  transform: scale(0.98);
}

h2 {
  font-size: 1.5em;
  margin-top: 10px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  #game-grid {
    grid-template-columns: 1fr;
  }

  .game-container {
    min-height: auto;
  }
}
