.flashcard-container {
  perspective: 1000px;
  height: 300px;
}

.flashcard {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flashcard-front {
  background: linear-gradient(135deg, #f3e7ff 0%, #e7f0ff 100%);
  border: 3px solid #9333ea;
}

.flashcard-back {
  background: linear-gradient(135deg, #e7f0ff 0%, #f3e7ff 100%);
  border: 3px solid #2563eb;
  transform: rotateY(180deg);
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #9333ea, #2563eb, #10b981, #f59e0b);
  animation: confetti-fall 3s linear;
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease;
}

button {
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  transition: border-color 0.2s ease;
}