@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Pacifico&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #000;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    scroll-snap-align: start;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.quiz-btn.correct {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #34d399;
}
.quiz-btn.wrong {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 7s infinite;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.stars-container {
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 4s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

#progress-bar {
    transition: width 0.1s linear;
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.polaroid {
    background-color: #fff;
    padding: 12px 12px 40px 12px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.neon-text {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff00de, 0 0 30px #ff00de, 0 0 40px #ff00de;
}

.intro-emoji {
    animation: float 3s ease-in-out infinite;
}

.eq-bar {
    width: 4px;
    background: linear-gradient(to top, #ec4899, #a855f7);
    border-radius: 2px;
    animation: eqPulse 0.9s ease-in-out infinite;
}
.eq-bar.delay-0 { height: 8px; animation-delay: 0s; }
.eq-bar.delay-1 { height: 14px; animation-delay: 0.15s; }
.eq-bar.delay-2 { height: 10px; animation-delay: 0.3s; }
.eq-bar.delay-3 { height: 16px; animation-delay: 0.45s; }

@keyframes eqPulse {
    0% { transform: scaleY(0.6); }
    50% { transform: scaleY(1.3); }
    100% { transform: scaleY(0.8); }
}

.fire-progress {
    height: 100%;
    transform-origin: left;
    animation: growBar 2s ease-out forwards, flameFlow 4s linear infinite;
    background-image: linear-gradient(90deg, #ef4444, #f59e0b, #f97316, #ef4444);
    background-size: 300% 100%;
    box-shadow: 0 0 12px rgba(239,68,68,0.6), 0 0 24px rgba(245,158,11,0.5);
}

@keyframes growBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes flameFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.spark {
    animation: sparkRise 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

@keyframes sparkRise {
    0% { transform: translateY(10px) scale(0.5); opacity: 1; }
    100% { transform: translateY(-40px) scale(1.5) rotate(45deg); opacity: 0; }
}
