/* Math Challenge specific styles */

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Start Screen */
.intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

#start-screen {
    text-align: center;
}

#start-screen .big-btn {
    margin-top: 20px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e5ff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Feedback Message */
.feedback {
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.feedback.hidden {
    display: none;
}

.feedback.correct {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.feedback.incorrect {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

/* Problem Display */
.problem-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.problem-number {
    font-size: 4rem;
    font-weight: bold;
    color: #5a4fcf;
    min-width: 80px;
    text-align: center;
}

.problem-operator,
.problem-equals {
    font-size: 3rem;
    color: #666;
}

.answer-input {
    font-size: 3rem;
    width: 150px;
    text-align: center;
    padding: 15px;
    border: 3px solid #e0e5ff;
    border-radius: 15px;
    font-family: inherit;
    font-weight: bold;
    color: #5a4fcf;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

/* Remove spinner buttons from number input */
.answer-input::-webkit-outer-spin-button,
.answer-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.answer-input[type=number] {
    -moz-appearance: textfield;
}

#problem-screen {
    text-align: center;
}

#submit-btn {
    margin-top: 20px;
}

/* Results Screen */
#results-screen {
    text-align: center;
}

.score-box {
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.score-box.perfect {
    background: linear-gradient(135deg, #ffd93d 0%, #ff9f43 100%);
    color: white;
}

.score-box.good {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.score-box.needs-work {
    background: linear-gradient(135deg, #ff9f43 0%, #f44336 100%);
    color: white;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
}

.score-text {
    font-size: 1.4rem;
    margin-top: 10px;
}

/* Missed Problems Section */
.missed-section {
    margin-top: 30px;
    text-align: left;
}

.missed-section h3 {
    color: #5a4fcf;
    margin-bottom: 15px;
    text-align: center;
}

.missed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.missed-item {
    background: #fff3e0;
    border: 2px solid #ffcc80;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.missed-problem {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e65100;
}

.missed-answer {
    font-size: 1rem;
    color: #666;
}

#continue-btn {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .problem-number {
        font-size: 2.5rem;
        min-width: 50px;
    }

    .problem-operator,
    .problem-equals {
        font-size: 2rem;
    }

    .answer-input {
        font-size: 2rem;
        width: 100px;
        padding: 10px;
    }

    .problem-display {
        gap: 10px;
    }

    .score-number {
        font-size: 2.5rem;
    }
}
