
/* Обновление стилей шапки */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 10px 20px;
    border-radius: 5px;
}
/* Текстовый неоновый логотип */
.logo {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    opacity: 0.7; /* Полупрозрачность */
    text-shadow: 
        0 0 5px rgba(0, 255, 200, 0.5),
        0 0 10px rgba(0, 255, 200, 0.5),
        0 0 20px rgba(0, 150, 255, 0.5),
        0 0 40px rgba(0, 150, 255, 0.5); /* Сине-зеленая подсветка */
    transition: opacity 0.3s ease;
}
.logo:hover {
    opacity: 1; /* Логотип становится ярче при наведении */
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 40px auto;
    max-width: 800px;
    padding: 0 10px;
    background-color: #f4f4f4;
    color: #333;
}
nav {
    background: #333;
    padding: 10px;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}
main {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}
/* Автоматически подгоняет любые картинки под ширину контента, чтобы они не вылезали за края */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 5px;
}
/* Контейнер для создания эффекта мерцания поверх картинки */
.animated-server-box {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 5px;
    margin: 15px 0;
}

/* Общие базовые настройки для картинок внутри контейнера */
.animated-server-box img {
    margin: 0 !important; /* Сбрасываем внешние отступы самой картинки */
    display: block;
}

/* Слой для быстрого мерцания (светодиоды серверов) */
.animated-server-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Создаем сине-зеленые и желтые микро-блики */
    background: radial-gradient(circle at 30% 40%, rgba(0, 255, 150, 0.15), transparent 10%),
                radial-gradient(circle at 75% 60%, rgba(0, 150, 255, 0.2), transparent 15%),
                radial-gradient(circle at 85% 30%, rgba(255, 200, 0, 0.15), transparent 8%);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: fast-flicker 0.6s infinite alternate;
}

/* Слой для медленного мерцания (общее освещение комнат, вывески, экраны) */
.animated-server-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(0, 255, 200, 0.1), transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(0, 100, 255, 0.08), transparent 40%);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: slow-glow 4s infinite ease-in-out;
}

/* Быстрая анимация для имитации работы дисков и диодов */
@keyframes fast-flicker {
    0% { opacity: 0.3; }
    25% { opacity: 0.8; }
    50% { opacity: 0.4; }
    75% { opacity: 0.9; }
    100% { opacity: 0.2; }
}

/* Медленная плавная пульсация для экранов и неоновых вывесок */
@keyframes slow-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}