/* Reading app specific styles */

.header-buttons {
    display: flex;
    gap: 10px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.prompt-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#story-prompt {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s ease;
}

#story-prompt:focus {
    outline: none;
    border-color: #667eea;
}

#story-prompt::placeholder {
    color: #aaa;
}

/* Story Screen */
.story-box {
    background: #fffef0;
    border: 3px solid #ffd93d;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    font-size: 1.15rem;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
    color: #333;
}

/* Questions Screen */
#questions-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
}

.question-card {
    background: #f8f9ff;
    border: 2px solid #e0e5ff;
    border-radius: 15px;
    padding: 20px;
}

.question-text {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option.selected {
    border-color: #667eea;
    background: #e8edff;
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option label {
    cursor: pointer;
    font-size: 1.05rem;
    flex: 1;
}

/* Results Screen */
.score-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.score-box .score-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-box .score-text {
    font-size: 1.3rem;
}

.score-box.perfect {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.score-box.good {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.score-box.needs-work {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#results-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.result-card {
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid;
}

.result-card.correct {
    background: #e8f5e9;
    border-color: #4caf50;
}

.result-card.incorrect {
    background: #ffebee;
    border-color: #f44336;
}

.result-card .question {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.result-card .your-answer {
    margin-bottom: 5px;
}

.result-card .correct-answer {
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-card .explanation {
    color: #666;
    font-style: italic;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* Settings */
.settings-container {
    max-width: 400px;
}
