/* Custom animations for the animal quiz game */

/* Slow bounce animation for animal emoji */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Medal pop animation */
@keyframes medal-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.animate-medal-pop {
    animation: medal-pop 0.5s ease-out;
}

/* Celebration animation */
@keyframes celebration {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}

.animate-celebration {
    animation: celebration 1s ease-out;
}

/* Button disabled state */
.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Badge unlock animation */
@keyframes badge-unlock {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    75% {
        transform: scale(1.3) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.animate-badge-unlock {
    animation: badge-unlock 0.6s ease-out;
}

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f0f;
    animation: confetti-fall 3s linear forwards;
    z-index: 9999;
}

/* Smooth transitions for all interactive elements */
button {
    transition: all 0.2s ease;
}
