/*
================================
1. ГЛОБАЛЬНЫЕ СТИЛИ И ФОН
================================
*/
body {
    /* Фон: имитация леса с градиентом для глубины */
    font-family: 'Arial', sans-serif;
    background-color: #8fbc8f; /* Светло-зеленый (лесной) */
    background-image: linear-gradient(to bottom, #8fbc8f, #6b8e23); 
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/*
================================
2. КОНТЕЙНЕР ИГРЫ И ЗАГОЛОВОК
================================
*/
#game-container {
    /* Фон: Бежевый, как старый свиток или бумага */
    background-color: #f5f5dc; 
    border: 10px solid #8b4513; /* Толстая деревянная рамка */
    padding: 30px;
    border-radius: 20px;
    /* Глубокая тень для 3D-эффекта */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); 
    max-width: 650px;
    width: 90%; 
    text-align: center;
}

h1 {
    /* Сказочный шрифт IM Fell English SC */
    font-family: 'IM Fell English SC', serif; 
    color: #a0522d; 
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.7); 
    margin-bottom: 25px;
    font-size: 2.5em;
}

/*
================================
3. ВИЗУАЛ СЦЕНЫ (ИЗОБРАЖЕНИЕ)
================================
*/
#scene-image {
    width: 100%;
    /* Фиксированная высота для всех изображений */
    height: 600px; 
    background-size: cover; 
    background-position: center;
    border: 5px solid #a0522d; /* Рамка, как у картины */
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Здесь устанавливается первое изображение по умолчанию (forest.jpg) */
    background-image: url('forest.jpg'); 
}


/*
================================
4. ЭЛЕМЕНТЫ УПРАВЛЕНИЯ (СЧЕТ И МУЗЫКА)
================================
*/
#controls {
    display: flex;
    /* Распределяем элементы по краям */
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px;
    /* Разделительная линия */
    border-bottom: 1px dashed #d2b48c; 
    padding-bottom: 10px;
}

/* Стили для отображения счета (Errors) */
#score-display {
    color: #a0522d;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0; 
    padding-bottom: 0;
}

/* Кнопка управления музыкой */
#music-toggle-btn {
    background-color: #d2b48c; 
    color: #333;
    border: 1px solid #8b4513;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

#music-toggle-btn:hover {
    background-color: #c0a87f;
}


/*
================================
5. ТЕКСТ И КНОПКИ
================================
*/
#story-text {
    min-height: 100px;
    margin-bottom: 30px;
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
}

.option-button {
    /* Золотистый цвет, как волосы Златовласки */
    background-color: #ffd700; 
    color: #333;
    border: 2px solid #ccac00;
    padding: 12px 25px;
    margin: 8px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px #ccac00; /* Эффект 3D */
}
