/* ===== Базовые стили ===== */
body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background-color: #000;
    background-image: url('assets/bg_pattern.gif');
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#container {
    width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 51, 0.7);
    border: 3px solid #00ffff;
    padding: 10px;
    box-shadow: 0 0 20px #00ffff;
}

/* ===== Заголовки ===== */
.neon-title {
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    font-size: 2.5em;
    text-align: center;
    animation: blink 2s infinite;
    margin: 20px 0;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.7; }
}

.scrolling-text marquee {
    font-size: 1.5em;
    color: #ff0;
}

/* ===== Навигация ===== */
.glass-nav {
    background: rgba(0, 102, 204, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px;
    border: 1px solid #00ffff;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px #0ff;
}

/* ===== Контент ===== */
.content {
    padding: 15px;
}

.glass-panel {
    background: rgba(0, 0, 51, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.important-notice {
    border: 2px dashed #ff00ff;
}

.blink-text {
    animation: blink 1s step-end infinite;
    color: #f0f;
    font-weight: bold;
}

.retro-list {
    list-style-type: none;
    padding-left: 0;
}

.retro-list li {
    background: url('assets/star.gif') no-repeat left center;
    padding-left: 25px;
    margin: 5px 0;
}

/* ===== Формы ===== */
.retro-form {
    background: rgba(51, 0, 102, 0.7);
    border: 2px solid #ff0;
    padding: 15px;
    margin-top: 20px;
}

.retro-input, .retro-textarea {
    background-color: #000;
    color: #0f0;
    border: 1px solid #0ff;
    font-family: 'Comic Sans MS', sans-serif;
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
}

.retro-textarea {
    height: 100px;
    resize: vertical;
}

.retro-button {
    background: linear-gradient(to bottom, #ff00ff, #9900cc);
    border: 2px outset #ccc;
    color: white;
    padding: 5px 15px;
    font-family: 'Comic Sans MS', sans-serif;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.retro-button:hover {
    background: linear-gradient(to bottom, #ff66ff, #cc00ff);
    text-shadow: 0 0 5px #fff;
    box-shadow: 0 0 10px #ff00ff;
}

/* ===== Изображения ===== */
.banner-img {
    border: 3px solid #00ffff;
    box-shadow: 0 0 15px #00ffff;
    max-width: 100%;
    height: auto;
}

.centered-img {
    display: block;
    margin: 10px auto;
}

.netscape-logo {
    margin: 10px 0;
}

.validator-img {
    margin: 0 5px;
}

/* ===== Разделители ===== */
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 255, 255, 0), rgba(0, 255, 255, 0.75), rgba(0, 255, 255, 0));
    margin: 20px 0;
}

/* ===== Подвал ===== */
.retro-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
    padding: 10px;
}

/* ===== Кнопка "Наверх" ===== */
.top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff00ff;
    color: white;
    border: 2px outset #ccc;
    padding: 5px 10px;
    font-family: 'Comic Sans MS', sans-serif;
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s;
}

.top-button:hover {
    background: #00ffff;
    color: #000;
}

/* ===== Счетчик ===== */
.counter {
    text-align: center;
    font-size: 0.8em;
    margin: 20px 0;
    color: #ff0;
}

.counter-img {
    vertical-align: middle;
}

/* ===== Адаптивность ===== */
@media (max-width: 850px) {
    #container {
        width: 95%;
        padding: 5px;
    }
    
    .glass-nav {
        flex-direction: column;
    }
    
    .nav-link {
        margin: 2px 0;
    }
}