:root {
  --card-bg: #f9fff9;
  --card-border: #c0eac0;
  --card-shadow: rgba(100, 200, 100, 0.4);
  --accent: #4caf50;
  --hover-accent: #81c784;
  --font: 'Comic Sans MS', cursive, sans-serif;
}

body {
  margin: 1;
  padding: 0;
  font-family: var(--font);
  background: radial-gradient(circle at 50% 50%, #eaffea, #c5f6c5);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  animation: bg-pulse 15s infinite linear;
}

@keyframes bg-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

main {
  padding: 1rem; 
  max-width: 1000px;
  width: 100%;
}

.game-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 600px) {
  .game-cards {
    flex-direction: row;
    justify-content: center;
  }
}

.game-card {
  background: var(--card-bg);
  border: 3px dashed var(--card-border);
  box-shadow: 0 0 20px var(--card-shadow);
  border-radius: 0px;
  text-align: center;
  text-decoration: none;
  color: #2e4a28;
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 2rem;
  flex: 1 1 300px;
  animation: wiggle 6s infinite ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.5deg); }
}

.game-card:hover {
  background: var(--hover-accent);
  transform: scale(1.03) rotate(1deg);
}

.card-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 1rem;
  color: #3d5c3d;
  line-height: 1.4;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  justify-items: center;
}
