body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #6a11cb, #2575fc);
  color: white;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.app-container {
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.flashcard {
  background-color: white;
  color: #333;
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0;
  font-size: 1.2em;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Hover animation */
.flashcard:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* 💫 Emotion (Flip) animation */
.flashcard.flip-animation {
  animation: bounceFlash 0.6s ease;
}

@keyframes bounceFlash {
  0% {
    transform: scale(1);
    background-color: #fff;
  }
  30% {
    transform: scale(1.1);
    background-color: #ffe082;
  }
  60% {
    transform: scale(0.95);
    background-color: #ffcc80;
  }
  100% {
    transform: scale(1);
    background-color: #fff;
  }
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controls button {
  margin: 5px;
  padding: 10px 18px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

#flip-btn {
  background-color: #ffb703;
  color: #222;
}

#next-btn {
  background-color: #219ebc;
  color: white;
}

.controls button:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

#status {
  margin-top: 12px;
  font-size: 0.9em;
  color: #fff9;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .app-container {
    max-width: 95%;
  }

  .flashcard {
    font-size: 1em;
    padding: 20px;
    min-height: 120px;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  .controls button {
    width: 80%;
    font-size: 1em;
    padding: 10px;
  }
}

/* 🔄 Flip animation for emotion */
.flashcard.flip {
  transform: rotateY(180deg);
  transition: transform 0.3s ease;
}
