* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 50%, #2a5298 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background image overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 50%, #2a5298 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: background-image 0.5s ease-in-out;
}

/* Responsive background images */
@media (orientation: portrait) {
    .background-overlay.has-image {
        background-image: var(--bg-portrait);
    }
}

@media (orientation: landscape) {
    .background-overlay.has-image {
        background-image: var(--bg-landscape);
    }
}

/* Particle effects container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main container */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 40px;
}

/* Quiz box - glassmorphism design */
.quiz-box {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(115, 115, 115, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
}

@media (max-width: 768px) {
    .quiz-box {
        padding: 30px 20px;
        margin: 10px;
    }
}

/* Question title styling */
.question-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.question-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .question-title {
        font-size: 2rem;
    }
    .question-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

/* Angled buttons matching the design */
.quiz-button {
    position: relative;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    padding: 20px 60px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    
    /* Angled shape using clip-path */
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 30px 100%);
    
    /* Arrow indicator */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-button::after {
    content: '➯';
    font-size: 1.8rem;
    font-weight: normal;
    margin-left: 20px;
}

.quiz-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.quiz-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

/* No button styling */
.quiz-button.no-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.quiz-button.no-button:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

@media (max-width: 768px) {
    .quiz-button {
        font-size: 1.2rem;
        padding: 18px 40px;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
    }
    .quiz-button::after {
        font-size: 1.5rem;
        margin-left: 15px;
    }
}

/* Question animations */
.question-slide {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-slide.fade-out {
    animation: slideOut 0.4s ease-in forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Progress indicator */
.progress-container {
    position: absolute;
    top: -20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #10b981);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Loading state */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Click sound effect indicator */
.sound-effect {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sound-effect.show {
    opacity: 1;
}

/* Final redirect message */
.redirect-message {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.redirect-message.show {
    display: flex;
    animation: slideIn 0.6s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 10px;
}

/* Hide question when redirecting */
.quiz-content.hidden {
    display: none;
}

/* Simple footer - minimal and below fold */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .footer {
        font-size: 9px;
        padding: 6px 15px;
    }
    
    .footer a {
        margin: 0 4px;
    }
}