/* ===== Range Test Flashcard Styles - MathCompass Theme ===== */

.flashcard-container, 
.flashcard {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.flashcard-container {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flashcard {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
}

.flashcard.active {
    display: block;
}

.flashcard h2 {
    margin-top: 0 !important;
    text-align: center;
    font-size: 22px;
    color: #1a0a0a;
    font-weight: 700;
    margin-bottom: 8px;
}

#card-topic {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.card-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 20px 0;
}

.button-row {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-yes, .btn-no {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 48px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-yes {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 20, 60, 0.3);
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4);
}

.btn-no {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-no:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Progress text above card */
.test-progress {
    text-align: center;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.test-progress span {
    margin: 0 8px;
}

.test-progress strong {
    color: #1a0a0a;
    font-weight: 600;
}

@media(max-width: 768px) {
    .flashcard-container {
        margin-top: 40px;
        padding: 0 16px;
    }

    .flashcard {
        padding: 28px 20px;
    }

    .btn-yes, .btn-no {
        font-size: 15px;
        flex: 1;
        padding: 14px 24px;
    }
}
