/* Mathematics Module Styles */

.math-container {
    max-width: 700px;
    margin: 2.5rem auto 2rem auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(124, 154, 146, 0.13);
    padding: 2.5rem 2rem 2rem 2rem;
    font-family: 'Nunito', sans-serif;
}

.math-setup h2 {
    text-align: center;
    color: #22505A;
    font-family: 'Comic Neue', cursive;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

#math-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-weight: 600;
    color: #4CB6B6;
    font-size: 1.1rem;
}

select, input[type="checkbox"] {
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 2px solid #8BB8A8;
    background: #F5F7F6;
    color: #22505A;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

select:focus, input[type="checkbox"]:focus {
    border-color: #E05C4B;
    box-shadow: 0 0 0 2px #F2C66D44;
}

input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #E05C4B;
    margin-right: 0.5rem;
}

.start-btn {
    margin-top: 1.2rem;
    background: linear-gradient(90deg, #4CB6B6, #F2C66D);
    color: #22505A;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 18px;
    padding: 0.9rem 2.2rem;
    box-shadow: 0 4px 16px rgba(76, 182, 182, 0.13);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 1px;
}

.start-btn:hover, .start-btn:focus {
    background: linear-gradient(90deg, #F2C66D, #4CB6B6);
    transform: scale(1.05);
}

.math-interact {
    margin-top: 2.5rem;
    background: #F5F7F6;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(34, 80, 90, 0.07);
    padding: 2rem 1.5rem;
    text-align: center;
}

.topic-title {
    font-size: 1.5rem;
    font-family: 'Comic Neue', cursive;
    color: #E05C4B;
    margin-bottom: 1.5rem;
}

.interaction-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.learn-btn, .practice-btn {
    background: #4CB6B6;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 182, 182, 0.13);
    transition: background 0.2s, transform 0.2s;
}

.learn-btn:hover, .practice-btn:hover {
    background: #E05C4B;
    color: #fff;
    transform: scale(1.07);
}

.learn-section {
    margin: 2rem 0 1rem 0;
}

#youtube-video {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(34, 80, 90, 0.13);
}

.practice-section {
    margin: 2rem 0 1rem 0;
}

#quiz-area {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(242, 198, 109, 0.13);
    padding: 1.5rem 1rem;
    min-height: 120px;
}

/* Quiz Styles */
.quiz-question {
    font-size: 1.5rem;
    font-family: 'Comic Neue', cursive;
    color: #22505A;
    margin-bottom: 1.5rem;
    background: #F2C66D22;
    padding: 1.2rem 1rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(242, 198, 109, 0.10);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 0.5rem;
    border-radius: 14px;
    border: 2px solid #8BB8A8;
    background: #F5F7F6;
    color: #22505A;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(76, 182, 182, 0.10);
}

.quiz-option:hover:not(:disabled), .quiz-option:focus:not(:disabled) {
    background: #F2C66D;
    color: #E05C4B;
    transform: scale(1.04);
}

.quiz-option:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.quiz-progress, .quiz-score {
    font-size: 1.1rem;
    color: #4CB6B6;
    margin-bottom: 0.5rem;
}

.quiz-summary {
    text-align: center;
    font-size: 1.3rem;
    color: #22505A;
    padding: 1.5rem 0.5rem;
}

.quiz-summary h3 {
    font-size: 2rem;
    color: #E05C4B;
    margin-bottom: 1rem;
}

.quiz-reward {
    font-size: 2.2rem;
    margin: 1.2rem 0;
}

.quiz-restart {
    background: linear-gradient(90deg, #4CB6B6, #F2C66D);
    color: #22505A;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 182, 182, 0.13);
    transition: background 0.2s, transform 0.2s;
}

.quiz-restart:hover, .quiz-restart:focus {
    background: linear-gradient(90deg, #F2C66D, #4CB6B6);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .math-container {
        padding: 1rem 0.3rem;
    }
    .math-interact {
        padding: 1rem 0.3rem;
    }
    #youtube-video {
        height: 200px;
    }
    .interaction-buttons {
        flex-direction: column;
        gap: 1rem;
    }
} 