/* Основные стили */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    background-color: #000;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Оставляем min-height для обеспечения высоты экрана */
    box-sizing: border-box;
    overflow: hidden; /* Отключаем прокрутку на уровне body */
    width: 100vw; /* Устанавливаем ширину на весь экран */
    height: 100vh; /* Устанавливаем высоту на весь экран */
}

/* Заголовок */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1em 2em;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

/* Логотип */
header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Навигация */
header nav ul {
    display: flex;
    gap: 1.5em;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 0.5em 1em; /* Reset padding to original */
    border-radius: 8px;
    transition: all 0.3s ease;
}

header nav ul li a i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

header nav ul li a:hover i {
    transform: scale(1.2);
}

header nav ul li a.active,
header nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

header nav ul li a.donate {
    color: #ff5252;
    font-weight: bold;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

header nav ul li a.donate:hover {
    background: rgba(255, 82, 82, 0.1);
    box-shadow: 0 0 20px rgba(255, 82, 82, 0.2);
}

/* Основной контент */
main {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-top: 70px;
    overflow-y: auto; /* Это нужно для возможной прокрутки контента внутри main */
    padding: 0 10px; /* Убираем лишние отступы по бокам */
}

/* Фон */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/csgo-server.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: blur(8px) brightness(0.3);
    transform: scale(1.1);
}

/* Список карт */
ul.map-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; /* Ограничиваем максимальную высоту */
    overflow-y: auto; /* Включаем прокрутку только внутри списка карт */
    width: 100%;
    margin-top: 1.5em;
}

ul.map-list li {
    margin: 0.5em 0;
    padding: 0.5em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

ul.map-list li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    display: block;
}

ul.map-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Подвал */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0.5em;
    background-color: rgba(0, 0, 0, 0);
    color: #bbb;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Медиазапросы для мобильных устройств */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.5em;
    }

    main {
        margin-top: 50px;
        padding: 1em;
    }

    ul.map-list li {
        font-size: 1rem; /* Уменьшаем размер шрифта на мобильных */
        padding: 0.5em;
    }
}

@media screen and (max-width: 480px) {
    header .logo {
        font-size: 1.2em; /* Уменьшаем размер логотипа */
    }

    ul.map-list li {
        font-size: 0.9rem; /* Уменьшаем размер шрифта */
    }
}

/* Анимация смены страниц */
.fade-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.fade-exit {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-exit-active {
    opacity: 0;
    transform: translateY(-20px);
}

.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}
