/* B5ive Christmas Quiz Styles */

/* Snow Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snow {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

.snow:nth-child(1) {
    left: 10%;
    width: 10px;
    height: 10px;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snow:nth-child(2) {
    left: 20%;
    width: 8px;
    height: 8px;
    animation-duration: 12s;
    animation-delay: 1s;
}

.snow:nth-child(3) {
    left: 30%;
    width: 12px;
    height: 12px;
    animation-duration: 15s;
    animation-delay: 2s;
}

.snow:nth-child(4) {
    left: 40%;
    width: 6px;
    height: 6px;
    animation-duration: 8s;
    animation-delay: 0.5s;
}

.snow:nth-child(5) {
    left: 50%;
    width: 9px;
    height: 9px;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

.snow:nth-child(6) {
    left: 60%;
    width: 7px;
    height: 7px;
    animation-duration: 13s;
    animation-delay: 2.5s;
}

.snow:nth-child(7) {
    left: 70%;
    width: 11px;
    height: 11px;
    animation-duration: 9s;
    animation-delay: 1s;
}

.snow:nth-child(8) {
    left: 80%;
    width: 8px;
    height: 8px;
    animation-duration: 14s;
    animation-delay: 0.5s;
}

.snow:nth-child(9) {
    left: 90%;
    width: 10px;
    height: 10px;
    animation-duration: 16s;
    animation-delay: 3s;
}

.snow:nth-child(10) {
    left: 15%;
    width: 7px;
    height: 7px;
    animation-duration: 18s;
    animation-delay: 4s;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
}

/* Glass Morphism Enhancement */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Quiz Options Styling */
.quiz-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-option:hover {
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.quiz-option.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.quiz-option.correct {
    border-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.4);
}

.quiz-option.incorrect {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Animated Buttons */
.animated-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.animated-btn:hover::before {
    left: 100%;
}

/* Christmas Glow Effect */
.christmas-glow {
    animation: christmasGlow 2s ease-in-out infinite alternate;
}

@keyframes christmasGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .snow {
        display: none;
    }
    
    header h1 {
        font-size: 2.5rem !important;
    }
    
    header p {
        font-size: 1.25rem !important;
    }
    
    .quiz-option {
        padding: 1rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem !important;
    }
    
    section {
        padding: 1.5rem !important;
    }
    
    .quiz-option {
        padding: 0.75rem !important;
        font-size: 0.85rem;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ef4444;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Animations */
.result-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Share Button Enhancement */
.share-btn {
    background: linear-gradient(45deg, #e1306c, #fd1d1d, #f77737, #fcaf45, #ffdc80);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

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

/* Enhanced form styling and hidden sections */
.hidden {
    display: none !important;
}

/* Make sure quiz section is properly styled when visible */
#quiz-section:not(.hidden) {
    display: block !important;
}

#results-section:not(.hidden) {
    display: block !important;
}

/* Form input focus states */
.form-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    transform: translateY(-1px);
}

/* Button hover effects */
.animated-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Christmas theme enhancements */
.christmas-glow {
    animation: christmasGlow 2s ease-in-out infinite alternate;
}

@keyframes christmasGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), 0 0 30px rgba(0, 255, 0, 0.2);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.6), 0 0 40px rgba(0, 255, 0, 0.3);
    }
}

/* Quiz option enhanced styling */
.quiz-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.quiz-option:hover {
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

.quiz-option.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.quiz-option.correct {
    border-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.3);
}

.quiz-option.incorrect {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

/* Progress bar animation */
#progress-bar {
    transition: width 0.5s ease-in-out;
    background: linear-gradient(90deg, #ef4444, #10b981);
}

/* Entry form styling */
#entry-form input[type="text"],
#entry-form input[type="email"] {
    transition: all 0.3s ease;
}

#entry-form input[type="text"]:focus,
#entry-form input[type="email"]:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Checkbox styling */
#instagram-follow {
    width: 1rem;
    height: 1rem;
    color: #dc2626;
    border-color: #d1d5db;
}

#instagram-follow:checked {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Results section animation */
#results-section {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Share button gradient animation */
#share-btn {
    background: linear-gradient(45deg, #e1306c, #fd1d1d, #f77737, #fcaf45);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#share-btn:hover {
    transform: scale(1.05);
}

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