/* === ОСНОВНЫЕ НАСТРОЙКИ === */
body {
    font-family: "Times New Roman", serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

#app {
    background: white;
    width: 100%;
    max-width: 900px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* === ШАПКА И ВОПРОС === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.q-text {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #111;
}

.q-note {
    font-style: italic;
    color: #856404;
    margin-bottom: 15px;
    font-size: 0.9em;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* === ВАРИАНТЫ ОТВЕТОВ === */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button.option-btn {
    flex: 1 1 auto;
    min-width: 45%;
    text-align: left;
    padding: 12px 15px;
    border: none;
    background: #eef1f5;
    font-size: 1.1em;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1.3;
}

button.option-btn:hover:not(:disabled) {
    background: #dce2e8;
    transform: translateY(-2px);
}

/* Состояния ответов */
.correct {
    background: #d4edda !important;
    color: #155724;
    box-shadow: 0 0 0 2px #28a745 inset;
}

.wrong {
    background: #f8d7da !important;
    color: #721c24;
    opacity: 0.7;
}

/* === СООБЩЕНИЕ ОБ ОШИБКЕ/ПОЯСНЕНИЕ === */
.feedback-msg {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da; /* Красный фон для ошибки */
    border-left: 5px solid #dc3545;
    color: #721c24;
    font-size: 1.1em;
    border-radius: 4px;
    animation: fadeIn 0.3s;
}

/* === НАВИГАЦИЯ (NEXT / SKIP) === */
.btn-next {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #28a745;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    animation: fadeIn 0.3s;
}
.btn-next:hover {
    background-color: #218838;
}

.btn-skip {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #6c757d;
    color: white;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.btn-skip:hover {
    background-color: #5a6268;
}

/* === НИЖНИЕ КНОПКИ УПРАВЛЕНИЯ === */
.controls {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    background: #333;
    color: white;
}

.btn-error { background: #ff9800; color: #000; }
.btn-reset { background: #c00; margin-left: auto; }
.btn-mode { background: #555; }

/* === АНИМАЦИИ И АДАПТИВНОСТЬ === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    button.option-btn {
        min-width: 100%;
    }
}

.block-selection {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Чтобы на мобильном переносились */
}

.block-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
}

.block-btn small {
    display: block; /* Перенос подписи на новую строку внутри кнопки */
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.block-btn.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

.block-btn.active small {
    color: #ccc;
}