/* 🌟 Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

/* 📝 Greeting */
#greeting {
  font-size: 1.5rem;
  color: #00ffae;
  margin-bottom: 10px;
}

/* 🎭 Motivational Quote */
#quote {
  font-style: italic;
  font-size: 1.1rem;
  color: #ffd700;
  margin-bottom: 20px;
}

/* 🎯 Game Board */
.game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
  max-width: 259px;
  margin: auto;
  padding: 10px;
}

/* 🃏 Card Styles */
.card {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  background: #222;
  border-radius: 10px;
  font-size: 1.8rem;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.card.flipped,
.card.matched {
  background: #28a745;
  color: white;
  transform: scale(1.05);
}

.card:active {
  transform: scale(1.1);
}

/* ⏳ Timer */
#timer {
  font-size: 1.1rem;
  color: #00ffd5;
  margin-top: 10px;
}

/* 🎉 Game Messages */
#message {
  font-size: 1.2rem;
  color: #00ff7f;
  margin-top: 15px;
}

/* 📱 Responsive Design */
@media (max-width: 600px) {
  .game-board {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    max-width: 259px;
  }

  .card {
    font-size: 1.5rem;
    aspect-ratio: 1 / 1.3;
  }

  #greeting, #quote, #timer, #message {
    font-size: 4vw;
  }
}
