/* ОБЩИЕ СТИЛИ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; }
body, html {
    font-family: 'PT Serif', serif;
    background: #020a14;
    color: #cdd6f4;
    height: 100%;
    overflow: hidden;
}

/* --- СТАРТОВЫЙ ЭКРАН --- */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    /* Укажи путь к твоей картинке */
    background: url('images/start-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: 100;
}

/* Слой для затемнения фона, чтобы текст хорошо читался */
.start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7); /* Темно-синий полупрозрачный */
    z-index: 1;
}

/* Контент на стартовом экране */
.start-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.main-title {
    font-size: 4.5rem; /* Крупный заголовок */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Стили для кнопки "Начать" */
.start-btn {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    padding: 15px 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background: #fff;
    color: #0a192f;
    transform: scale(1.05);
}

/* --- ОСНОВНОЙ КОНТЕЙНЕР КВИЗА --- */
.quiz-container {
    background: #0a192f;
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #1e3a5f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
}
/* Стили для изображений в пояснениях */
.explanation img {
    max-width: 100%; /* Картинка не будет вылезать за пределы блока */
    border-radius: 6px; /* Слегка скруглим углы */
    margin-top: 10px; /* Добавим отступ сверху */
    display: block; /* Убираем лишние отступы под картинкой */
}

/* --- ПРОГРЕСС-БАР "ВОЛНА" --- */
.header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
#counter { font-size: 1rem; font-weight: bold; }
.progress-bar {
    flex: 1;
    height: 25px;
    background: #020a14;
    border-radius: 15px;
    border: 1px solid #1e3a5f;
    overflow: hidden;
    position: relative;
}
.progress {
    height: 100%;
    width: 0;
    background: #1772bA;
    border-radius: 15px;
    position: relative;
    transition: width 0.5s ease-out;
    overflow: hidden;
}
/* .progress::before, .progress::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: #0a192f;
    border-radius: 45%;
    animation: wave 5s linear infinite;
}
.progress::after {
    border-radius: 40%;
    background: rgba(10, 25, 47, 0.5);
    animation: wave 10s linear infinite;
} */

/* --- СТИЛИ ВОПРОСОВ И КНОПОК --- */
#question { font-size: 1.3rem; margin-bottom: 18px; color: #fff; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.option-btn {
    padding: 14px;
    border: 2px solid #1e3a5f;
    color: #cdd6f4;
    border-radius: 6px;
    background: #0a192f;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    transition: all 0.2s ease;
}
.option-btn:hover { background: #1e3a5f; border-color: #007bff; }
.option-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.option-btn.correct { background: #28a745; border-color: #28a745; color: #fff; }
.option-btn.wrong { background: #dc3545; border-color: #dc3545; color: #fff; }

.explanation {
    text-align: left;
    margin-top: 20px;
    padding: 15px;
    border-left: 4px solid #d4af37;
    background: #020a14;
    font-size: 1rem;
    line-height: 1.6;
}

.next-btn, .retry-btn, .start-btn {
    border: none;
    cursor: pointer;
    display: inline-block;
    margin: 20px auto 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background .2s, transform .2s;
}
.next-btn:hover, .retry-btn:hover, .start-btn:hover {
    background: linear-gradient(135deg, #0069d9, #004085);
    transform: translateY(-2px);
}

/* --- ЭКРАН РЕЗУЛЬТАТОВ --- */
.result-screen {
    background: #0a192f;
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #1e3a5f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #fff;
}
.result-screen h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.result-screen p { font-size: 1.2rem; margin-bottom: 1rem; }
#feedback { font-size: 1.1rem; font-style: italic; margin: 20px 0; }

.share-buttons { margin-top: 25px; }
.share-buttons p { font-size: 1rem; margin-bottom: 10px; }
.share-buttons button {
    background: #2a2d31;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.share-buttons button:hover { background: #3c4043; }

/* Анимации */
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ping {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}
@keyframes wave { 100% { transform: rotate(360deg); } }


button i {
  font-size: 1.2rem;
}
.result-logo {
  text-align: center;
  margin-bottom: 20px;
}
.result-logo img {
  max-width: 150px;
  height: auto;
  display: inline-block;
}
