/* Основные настройки страницы */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* фон для canvas */
    font-family: 'Courier New', monospace;
    overflow: hidden; /* прокрутка будет только внутри scrollable */
    position: relative;
}

/* Canvas на весь экран */
#fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Контейнер текста и кнопки */
.content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column; /* чтобы scrollable растягивался */
    background: transparent;
}

/* Кнопка назад */
#backBtn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    transition: 0.3s;
    z-index: 2;
}

#backBtn:hover {
    background-color: #00ff00;
    color: #000;
}

/* Контейнер с прокруткой текста */
.scrollable {
    flex: 1; /* растягиваем на весь доступный экран */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 120px 40px 40px 40px; /* паддинг сверху и снизу */
    background: transparent;
    box-sizing: border-box;
}

/* Неоновый текст */
.lore-text {
    font-size: 24px;
    color: #00ff00;
    opacity: 0.85;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 40px #00ff00,
        0 0 80px #00ff00;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0; /* убираем лишние отступы */
}

/* Стилизация скроллбара */
.scrollable::-webkit-scrollbar {
    width: 8px;
}

.scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

.scrollable::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 4px;
}

/* Для Firefox */
.scrollable {
    scrollbar-width: thin;
    scrollbar-color: #00ff00 rgba(0,0,0,0.2);
}