html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(270deg,
        #ffd6e8, #ffeacc, #d4f0fc, #d0f0e0, #fce4ec, #fff9c4, #e1bee7, #ffd6e8);
    background-size: 1600% 1600%;
    animation: rainbowBackground 90s ease infinite;
    z-index: 0;
}

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

.animated-icon {
    position: fixed;
    width: 64px;
    height: 64px;
    pointer-events: none;
    opacity: 0.06;
    z-index: 1;
}


.quiz-container {
    display: flex;
    flex-direction: column;
    height: 97vh;
    max-height: 97vh;
    overflow: hidden;
    position: relative;
}

.quiz-header {
    flex-shrink: 0;
    padding: 1rem;
}

.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 1rem;
}

.question-area {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y:auto;
    overflow-x:hidden;
}

.options-area {
    flex-shrink: 0;
    padding: 1rem 0;
}

.quiz-main-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;

}

.quiz-main-container img {
    object-fit: contain;
    max-width: 100%;
    max-height: 40vh;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: .5rem;
}

.progress-thick {
    height: 1rem;
    transition: width 0.6s ease;
}

.option-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    height: 100%;
}

.option-card.correct {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    animation: correctPulse 0.6s ease-out forwards;
}

.option-card.incorrect {
    border-color: #f44336;
    background-color: #ffebee;
    animation: incorrectShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

.option-image {
    max-height: 120px;
    object-fit: contain;
    width: auto;
    margin: 0 auto;
}