/* Сброс и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #000000;
    font-family: 'Courier New', monospace;
    color: #39ff14;
}

/* Фоновый canvas */
#bgCanvas {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
pointer-events: none;
}

/* Контент */
.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 20px 40px;
    text-align: center;
    text-shadow:
    0 0 7px #39ff14,
    0 0 10px #39ff14,
    0 0 21px #39ff14,
    0 0 42px #39ff14;
}

/* Заголовок */
.neon-title {
    font-size: clamp(2rem, 10vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5em;
    animation: flicker 2s infinite alternate;
}

/* Основной текст */
.main-text {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 0.8em;
    font-weight: 600;
    text-shadow:
    0 0 5px #39ff14,
    0 0 10px #39ff14,
    0 0 20px #39ff14;
}

/* Текст про смерть сервера */
.footer-text {
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow:
    0 0 7px #39ff14,
    0 0 14px #39ff14,
    0 0 28px #39ff14;
    margin-bottom: 0.5em;
}

/* Кредит */
.credit-text {
    font-size: clamp(0.9rem, 3.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1.5em;
    text-shadow:
    0 0 5px #39ff14,
    0 0 12px #39ff14,
    0 0 24px #39ff14;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Обёртка для картинок – flex-контейнер */
.image-wrapper {
    display: flex;
    flex-direction: row;          /* На ПК – в ряд */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;                   /* Отступ между картинками */
    width: 100%;
    max-width: 1000px;           /* Ограничим общую ширину */
    margin: 0 auto;
    padding: 0 15px;
}

/* Каждая картинка */
.bottom-image {
    flex: 1 1 0;                 /* Равномерное распределение */
    min-width: 200px;           /* Минимальная ширина перед переносом */
    max-width: 45%;             /* На ПК – не шире 45% от контейнера */
    height: auto;
    border-radius: 12px;
    box-shadow:
    0 0 10px #39ff14,
    0 0 20px #39ff14,
    0 0 40px #39ff14;
    border: 2px solid rgba(57, 255, 20, 0.5);
    transition: all 0.3s ease;
}

/* Анимация мерцания заголовка */
@keyframes flicker {
    0% { opacity: 1; text-shadow: 0 0 7px #39ff14, 0 0 10px #39ff14, 0 0 21px #39ff14, 0 0 42px #39ff14; }
    50% { opacity: 0.9; text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 40px #39ff14, 0 0 80px #39ff14; }
    100% { opacity: 1; text-shadow: 0 0 7px #39ff14, 0 0 10px #39ff14, 0 0 21px #39ff14, 0 0 42px #39ff14; }
}

/* ---------- Адаптация для телефонов ---------- */
@media (max-width: 768px) {
    .content {
        padding: 15px 15px 30px;
        padding-top: 15vh;       /* Меньше отступ сверху на телефонах */
    }
    .neon-title {
        font-size: 2.2rem;
    }
    .main-text {
        font-size: 1.1rem;
    }
    .footer-text {
        font-size: 1rem;
    }
    .credit-text {
        font-size: 0.9rem;
    }

    /* Меняем направление на колонку */
    .image-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
    }

    .bottom-image {
        flex: 0 0 auto;
        max-width: 90%;          /* На телефоне картинки почти на всю ширину */
        width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .bottom-image {
        max-width: 95%;
    }
}
