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

/* Performance optimizations */
* {
    scroll-behavior: smooth;
}

/* Preload critical animations */
@keyframes preload {
    to { visibility: hidden; }
}

.preload * {
    animation: preload 1ms forwards;
}
.font-dancing {
    font-family: 'Dancing Script', cursive;
}

body {
    font-family: 'Poppins', sans-serif;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.grade-6 { background-color: #4f46e5; }
.grade-7 { background-color: #10b981; }
.grade-8 { background-color: #f59e0b; }
.grade-9 { background-color: #ef4444; }
.grade-10 { background-color: #8b5cf6; }
.grade-11 { background-color: #ec4899; }

/* Fact box animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fact-container {
    animation: fadeIn 0.5s ease-out;
}
/* PWA styles */
@media all and (display-mode: standalone) {
    body {
        overscroll-behavior-y: contain;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}