/* Quiz Application Styles */
.uk-text-primary {
    color: #000 !important;
}

#quiz-app {
    background: #fff;
    background-image: url(../img/quiz_bg.webp);
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 5px solid #fde4dd;
}

.quiz-card {
    animation: fadeIn 0.5s ease-out;
}

.quiz-question {
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
    /* Dark Teal */
    line-height: 1.4;
}

.quiz-visual img {
    /* max-height: 250px; */
    object-fit: cover;

}

.quiz-option-btn {
    font-size: 1.1rem;
    padding: 15px 20px;
    height: auto;
    text-align: left;
    white-space: normal;
    line-height: 1.4;
    transition: all 0.2s;
    border: 2px solid #fde4dd;
    background: #fff;
    display: flex;
    align-items: center;
}

.option-label {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    color: #555;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.quiz-option-btn:hover,
.quiz-option-btn:focus {
    background-color: #E0F2F1;
    border-color: #91BF3C;
    color: #000;
}

.quiz-option-btn:hover .option-label {
    background: #91BF3C;
    color: #fff;
}

.quiz-option-btn:active {
    transform: scale(0.98);
}

/* Ranking Styles */
.result-score {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.result-score .score-num {
    font-size: 4rem;
    color: #E53935;
}

.result-rank {
    font-size: 1.8rem;
    font-weight: 900;
    padding: 20px;
    border: 3px dashed #ccc;
    display: inline-block;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
}

.rank-s {
    color: #e71e18;
    border-color: #e71e18;
    background: #fdf3f3;
}

.rank-a {
    color: #2a722d;
    border-color: #43A047;
    background: #E8F5E9;
}

.rank-b {
    color: #0064bc;
    border-color: #1E88E5;
    background: #E3F2FD;
}

.rank-c {
    color: #5f5d5d;
    border-color: #757575;
    background: #FAFAFA;
}

/* Modal Review Styles */
#modal-review .uk-modal-dialog {
    width: 800px;
    border-radius: 15px;
}

.review-card {
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.review-question-title {
    color: #000000;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.correct-answer-display {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid #8db93b;
    display: inline-block;
    padding-bottom: 5px;
}

.answer-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid #8db93b;
    /* Solid or current color */
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    /* adjust for border */
    margin-right: 10px;
    color: #8db93b;
}

.review-explanation-content {
    padding: 10px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 640px) {
    #quiz-app {
        padding: 20px;
    }

    .quiz-question {
        font-size: 1.2rem;
    }

    .quiz-option-btn {
        padding: 10px;
        font-size: 1rem;
    }

    .correct-answer-display {
        font-size: 1.2rem;
    }
}

.result_Title {
    position: relative;
    padding: 1rem 2rem calc(1rem + 10px);
    background: #d0f0ed;
    font-weight: 700;
    letter-spacing: 5px;
}

.result_Title:before {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 100%;
    height: 100%;
    content: '';
    border: 4px solid #8db93b;
    border-radius: 3px;
}