/**
 * Chatly Quiz App View - quiz_appview.css
 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 852px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
}
.app-header {
    background-color: #f8f9fa;
    color: #000;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    flex-shrink: 0;
    border-bottom: 1px solid #dcdfe3;
}
.app-header h1 { margin: 0; font-size: 1em; }
.back-button { text-decoration: none; color: #007bff; font-size: 16px; }

.quiz-screen {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-question {
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.quiz-hint {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.option-btn {
    padding: 15px;
    border: 2px solid #ced4da;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}
.option-btn:hover {
    border-color: #007bff;
    background-color: #e9ecef;
}
.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-btn.ox {
    font-weight: bold;
    font-size: 1.5em;
}

#puzzle-check-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
}
#puzzle-check-btn:disabled {
    background-color: #6c757d;
}


.quiz-footer {
    padding: 15px;
    border-top: 1px solid #dcdfe3;
    background-color: #f8f9fa;
}

.feedback {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}
.feedback.correct {
    background-color: #d4edda;
    color: #155724;
}
.feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

.explanation-box {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
}
.explanation-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.explanation-box p {
    margin: 0;
    line-height: 1.6;
}

.loader, .error-message {
    text-align: center;
    padding: 50px;
    font-style: italic;
    color: #555;
    width: 100%;
}
.error-message {
    color: #d93025;
    font-weight: bold;
}