body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #1e1e1e, #2c3e50, #34495e, #1e1e1e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #ffcc00;
    animation: fadeIn 2s ease-in-out;
}

nav {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #ffcc00;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #ff6f00;
    transform: scale(1.1);
}

.container {
    padding: 20px;
    margin: 20px auto 120px;
    min-height: calc(100vh - 300px); /* Минимальная высота контейнера */
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    animation: slideIn 1.5s ease-in-out;
}

.container h2 {
    color: #ffcc00;
    font-family: 'Orbitron', sans-serif;
}

.news, .roadmap {
    margin-top: 30px;
    text-align: left;
}

.news-item, .roadmap-item {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover, .roadmap-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
}

.news-item h3, .roadmap-item h3 {
    color: #ffcc00;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.news-item p, .roadmap-item ul {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.roadmap-item ul {
    list-style-type: disc;
    margin-left: 20px;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.animated-footer {
    animation: slideInFromRight 2s ease-out;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeOut 1s ease-in-out forwards;
}

.loader-inner img {
    width: 200px;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

@media (max-width: 768px) {
    nav {
        position: fixed !important; /* Фиксированная позиция */
        top: 0 !important;
        left: 0;
        right: 0;
        padding: 8px 0; /* Уменьшаем отступы */
        box-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Добавляем тень для лучшей видимости */
    }

    .container {
        margin-top: 50px !important; /* Добавляем отступ для контента под меню */
    }

    nav a {
        font-size: 0.9rem; /* Чуть уменьшаем размер шрифта */
        margin: 0 8px; /* Уменьшаем отступы между ссылками */
        padding: 5px 0; /* Добавляем вертикальные отступы */
    }
header h1 {
        font-size: 2rem !important;
        line-height: 1.7;
        padding: 0 20px;
    }
}
.news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffcc00;
    color: #1e1e1e;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
}
#scrollToTop:hover {
    background-color: #ff6f00;
}
.social-links a {
    color: #ffcc00;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #ff6f00;
}

@media (max-width: 768px) {
    .container {
        margin-top: 60px; /* Меньший отступ для мобильных устройств */
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 60px; /* Меньший отступ для мобильных устройств */
    }
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bgVideo {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.video-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    display: none; /* По умолчанию скрыто */
}

/* Оптимизация для изображения */
.video-fallback {
    filter: brightness(0.7);
    background-size: cover;
    background-position: center;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #1e1e1e, #2c3e50, #34495e, #1e1e1e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Стили для серверной информации */
.server-ip-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin: 20px auto;
    width: fit-content;
}

.server-ip-box button {
    background: #ffcc00;
    color: #1a1a1a;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.server-ip-box button:hover {
    background: #ff6f00;
}

/* Сетка для фич и ивентов */
.server-features, .event-schedule, .staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item, .event-item, .staff-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-item:hover, .event-item:hover, .staff-item:hover {
    transform: translateY(-5px);
}

/* Стили для правил */
.rule-category {
    background: rgba(255, 50, 50, 0.1);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.rule-category h3 { 
    color: #ff3232; 
}

.punishment-system {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

/* Донат-ссылка */
.donate-link {
    color: #00ff00 !important;
    font-weight: bold;
}

/* Добавить в конец styles.css */
/* Сдержанные анимации для персонала */
.staff-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Основатель - мягкое свечение */
.staff-item.founder {
    border-left: 4px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0) 30%
    );
}

.staff-item.founder:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* Администраторы - волна */
.staff-item.admin {
    border-left: 4px solid rgba(255, 111, 0, 0.3);
}

.staff-item.admin:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 111, 0, 0.4), 
        transparent
    );
    animation: adminWave 1.5s linear infinite;
}

@keyframes adminWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Модераторы - точки активности */
.staff-item.moderator {
    border-left: 4px solid rgba(0, 255, 0, 0.3);
}

.staff-item.moderator:hover::before {
    content: '•';
    position: absolute;
    color: rgba(0, 255, 0, 0.4);
    font-size: 12px;
    animation: moderatorDots 1.2s linear infinite;
}

@keyframes moderatorDots {
    0% { 
        opacity: 0;
        transform: translateY(-10px) translateX(-10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(10px) translateX(10px);
    }
}

/* Веб-разработчик - цифровой эффект */
.staff-item.web-developer {
    border-left: 4px solid rgba(0, 255, 255, 0.3);
}

.staff-item.web-developer:hover {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 255, 255, 0.05) 1px,
        rgba(0, 255, 255, 0.05) 2px
    );
}
/* Добавить в конец styles.css */
.server-ip-box {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateY(0);
}

/* Анимация при загрузке */
@keyframes subtleAttention {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.server-ip-box {
    animation: subtleAttention 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Эффект при наведении */
.server-ip-box:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Акцентная полоса */
.server-ip-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 204, 0, 0.15),
        transparent
    );
    transition: left 0.6s ease;
}

.server-ip-box:hover::after {
    left: 150%;
}

/* Анимация текста IP-адреса */
.server-ip-box span {
    position: relative;
    transition: color 0.3s ease;
}

.server-ip-box:hover span {
    color: #ffcc00;
}

/* Улучшенная анимация кнопки */
.server-ip-box button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.server-ip-box:hover button {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 204, 0, 0.2);
}

/* Микровзаимодействие при клике */
.server-ip-box button:active {
    transform: scale(0.95);
}

/* Адаптивное изображение в новостях */
.news-image {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 196, 0.3);
}

.news-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .news-item {
        padding: 15px;
        margin: 15px 0;
    }
    
    .news-image {
        margin: 15px -15px;
        border-radius: 0;
    }
    
    .news-image img {
        border-radius: 0;
    }
    
    .news-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .news-item {
        padding: 10px;
    }
    
    .news-image {
        margin: 10px -10px;
    }
    
    .news-item h3 {
        font-size: 1.2rem;
    }
}


