#home-container .quiz-container {
    background-color: var(--navbar-background);
    border-radius: var(--border-radius-md);
    width: calc(100vw - 30px);
    margin: 0;
    padding: 20px !important;
    border-radius: 10px;
    padding: 0px;
}
@media screen and (min-width: 1440px) {
    .quiz-container {
        width: 800px !important;
    }
}
@media screen and (min-width: 740px) {
    .quiz-container {
        width: 600px !important;
    }
}

.quiz-container.quiz-info {
    align-items: center;
    align-self: start;
    background-color: var(--navbar-background);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.125rem;
    min-height: 253px;
    padding: 0.625rem;
    padding-top: 2rem;
}

.quiz-question {
    width: 100%;
}

.quiz-question p {
    border-bottom: 1px solid var(--navbar-background);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    padding-bottom: 5px;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-answer {
    background-color: var(--button-background);
    border: 2px solid var(--button-background);
    border-radius: 8px;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.quiz-answer:hover {
    border-color: var(--primary);
    background-color: var(--light-primary);
    transform: translateY(-1px);
}

.quiz-answer:active {
    transform: translateY(0);
}

.quiz-answer.correct {
    border-color: var(--primary);
    background-color: #4CAF50 !important;
    color: white;
}

.quiz-answer.incorrect {
    opacity: 0.1 !important;
    pointer-events: none;
}

/* Pulse animation for correct answers */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Shake animation for incorrect answers */
.shake-animation {
    animation: shake 0.5s;
}

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

/* For multi-choice questions */
.quiz-answer.selected {
    border-width: 2px;
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary);
    background-color: var(--light-primary);
    position: relative;
    padding-right: 40px;
}

/* Progress bar styling */
.quiz-progress {
    background-color: var(--progress-bar-background-color);
    box-shadow: 0 0 2px inset rgba(0,0,0,.5);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.quiz-progress-bar {
    background-color: var(--progress-bar-fill-color);
    height: 100%;
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-question {
        padding: 15px;
    }

    .quiz-question p {
        font-size: 1rem;
    }

    .quiz-answer {
        padding: 12px 15px;
    }
}

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

/* Add these variables to your root if not already present */
:root {
    --light-success: #d4edda;
    --light-error: #f8d7da;
}

.submit-answers {
    margin-top: 20px;
    width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.submit-answers:not(:disabled) {
    opacity: 1;
}