*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: black;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    color: white;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: #00CED1;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
    z-index: 5;
    position: relative;
    animation: none !important;
    filter: none !important;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Текст S-T-I-K-S */
.matrix-text {
    position: relative;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 64px;
    color: #00CED1;
    font-family: 'Stalinist One', sans-serif;
    text-shadow: 0 0 10px #00CED1, 0 0 30px #00CED1;
    z-index: 2;
    letter-spacing: 10px;
    white-space: nowrap;
    text-align: center;
}

/* Реклама под текстом */
.rek {
    position: relative;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.rek img {
    max-width: 90vw;
    height: 400px;
    opacity: 0.9;
    animation: none !important;
    filter: none !important;
    margin-bottom: 15px;
}

/* Кнопка */
.ad-button {
    padding: 10px 20px;
    font-size: 30px;
    color: #161816;
    background: #13e41d;
    border: 2px solid #161816;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ad-button:hover {
    background: #00FF00;
    color: black;
}

/* Светяшка */
.glow-image {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 1000px;
    z-index: 2;
    animation: glowBlink 10s infinite;
}

.glow-image img {
    width: 100%;
    height: auto;
    opacity: 0.3;
}

/* Анимация светяшки */
@keyframes glowBlink {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px #0ff);
    }
    50% {
        opacity: 0.4;
        filter: drop-shadow(0 0 2px #0ff);
    }
}

/* Адаптация для планшетов и телефонов */
@media (max-width: 768px) {
    .matrix-text {
        transform: translateX(-50%) scale(0.7);
        top: 30px;
        font-size: 48px;
        letter-spacing: 6px;
    }

    .glow-image {
        width: 600px;
    }

    
}

@media (max-width: 600px) {
    .matrix-text {
        transform: translateX(-50%) scale(0.5);
        top: 20px;
        font-size: 36px;
        letter-spacing: 4px;
    }

    .glow-image {
        width: 300px;
    }

    .rek img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .ad-button {
        font-size: 20px;
        padding: 8px 16px;
        text-align: center;
    }
}



