/* Option buttons styles for multiple choice quizzes */

.options-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 11px;
}

.option-button {
    display: flex;
    align-items: center;
    width: calc(50% - 6px);
    max-width: none;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 50px 15px 15px 50px;
    border-bottom: 5px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 6px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.option-button:hover {
    transform: translateY(-2px);
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.option-button:active {
    transform: translateY(1px);
    border-bottom-width: 4px;
}

.option-letter {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #E61C40;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 36px;
    flex-shrink: 0;
}

.option-button.correct .option-letter {
    background-color: #27ae60;
}

.option-text {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-left: 15px;
}

.option-button.correct .option-text {
    color: #27ae60;
}

.option-check {
    margin-left: 12px;
    padding-right: 10px;
    font-size: 20px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.option-check::before {
    content: "";
}

.option-button.correct .option-check::before {
    content: "✓";
    color: #27ae60;
}

.option-button.wrong .option-check::before {
    content: "✕";
    color: #e74c3c;
}

.option-button.correct .option-check,
.option-button.wrong .option-check {
    opacity: 1;
    transform: scale(1);
}

@keyframes option-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.option-button.wrong {
    animation: option-shake 0.35s ease;
}

.next-row {
    min-height: 52px; /* Reserve vertical space for Next button */
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.next-row .next-button {
    /* Remove extra margin because wrapper now handles spacing */
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .options-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .option-button {
        padding: 0;
        margin-bottom: 6px;
        border-bottom-width: 3px;
        width: 100%;
        max-width: 100%;
    }

    .option-letter {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    .option-text {
        font-size: 15px;
        margin-left: 12px;
    }

    .option-button:active {
        transform: translateY(1px);
        border-bottom-width: 2px;
    }
}
