/* Основные стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', 'Arial', sans-serif; /* Добавлен запасной шрифт */
    height: 100%;
    box-sizing: border-box;
    background-color: #f2f4f8; /* Нежный светло-серый фон */
}
/* Определение шрифта */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('helveticaneue.woff2') format('woff2');
    font-display: swap; /* Включение swap для быстрой загрузки шрифта */
}

/* Шапка !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
header {
    margin: 0 auto;
    width: 100%;           /* Контейнер займет 100% доступной ширины */
    max-width: 1220px;     /* Но не будет больше 1220px */
    display: flex;
    align-items: center; /* Центрируем содержимое по вертикали */
    justify-content: space-between; /* Пространство между элементами */
    border-bottom-left-radius: 10px; /* Округление нижнего левого угла */
    border-bottom-right-radius: 10px; /* Округление нижнего правого угла */
    box-sizing: border-box; /* Включаем padding в ширину */
    min-height: 60px; /* Или задайте явную высоту, например 80px */
}

/* Стили для контейнера LOGO!! */
.img-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 1; /* Позволяем контейнеру уменьшаться при необходимости */
    max-width: 100%; /* Ограничиваем ширину контейнера */
    border-radius: 10px; /* Округление углов */
    padding-top: 10px;
    padding-bottom: 5px;
}
.img-container img {
    transition: all 0.1s ease-in-out;
    max-width: 120px;
}
.img-container img:hover {
    transform: scale(1.03); /* Легкое увеличение контейнера */
    cursor: pointer; /* Изменение курсора на pointer */
    filter: brightness(1.2); /* Увеличение яркости на 20% при наведении */
}







/* ОНЛАЙН сервера!!!!!!!!! */
.online-ip-version {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    margin-right: 15px;
    position: relative;
    border-radius: 12px;
    margin: 2px;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    color: #3e4c5a; /* Темно-серый текст */
}

.online .ip-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 30px;
    min-height: 30px;
}

.online-bar-container {
    width: 100%;
    background-color: #d7eafa; /* Светлый персиковый */
    border-radius: 8px;
    overflow: hidden;
    height: 10px;
}

.online-bar {
    width: 0%;
    height: 100%;
    background-color: #64b5f6; /* Персиковый цвет для заполненной части */
    border-radius: 8px;
    transition: width 0.4s ease;
}

.online h1 {
    height: 18px;
    background-color: #90caf9; /* Светло-голубой */
    color: #ffffff; /* Белый текст */
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ip-name:hover {
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(182, 228, 255, 0.5); /* Сияющая тень фиолетового оттенка */
    border-radius: 8px;
}

.ip-name h2 {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    color: #3e4c5a; /* Темный серый */
    padding: 2px 6px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid #e0e6ed;
    margin: 0;
}

.ip-name h3 {
    color: #384b55; /* Средне-серый */
    padding: 2px 6px;
    font-size: 13px;
    text-align: center;
    font-weight: 300;
    border-top: 1px solid #e0e6ed;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: 0;
}

.copied-notification {
    position: absolute;
    display: flex;
    box-sizing: border-box;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    background-color: #64b5f6; /* Персиковый фон */
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    font-size: 13px;
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.copied-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .online-ip-version {
        flex-direction: column;
        white-space: nowrap;
        gap: 0px;
    }
    .copied-notification {
        left: 0%;
        transform: translate(0%, 10px);
        white-space: normal; /* Разрешаем перенос текста */
    }

}











/* Стили для списка с ссылками в шапке!!!!!!!!! */
header ul {
    list-style-type: none;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: clamp(5px, 2vw, 20px); /* Устанавливаем размер шрифта */
    gap: 12px;
    font-family: 'Roboto', sans-serif;
}

header ul li:last-child {
    margin-right: 0; /* Убираем отступ у последнего элемента списка */
}
header ul li a {
    color: #3e4c5a; /* Тёмно-серый цвет текста для контраста с фоном */
    text-decoration: none;
    display: flex;
    align-items: center;
}

header ul li a:hover {
    text-decoration: underline;
}


.rules-social {
    margin: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.rules-link {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #3e4c5a; /* или ваш цвет */
    padding: 2px 6px;
    font-size: 15px;
}

.social-icons {
    display: flex;
    gap: 5px; /* Расстояние между иконками */
}

.social-icons img {
    width: 27px; /* Размер иконок */
    height: 27px;
}











/* Контейнер Иконки меню!!!!!!!!!!!!!! */
.menu_list{
    border-radius: 12px; /* Закругляем углы для создания круга */
    margin-top: 10px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.menu_list img{
    max-width: 40px;
}
/* Выпадающий список скрыт по умолчанию */
.dropdown-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Позиционируем ниже кнопки меню */
    right: 0;
    background: rgb(228, 232, 243);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    width: auto;
    z-index: 1;
}

/* Элементы списка */
.dropdown-list {
    padding: 0; /* Убираем отступы */
    margin: 0; /* Убираем отступы */
    display: flex; /* Используем flexbox для выравнивания */
    flex-direction: column; /* Выстраиваем элементы в колонку */
}

/* Элементы списка */
.dropdown-list li {
    padding: 6px;
    list-style: none;
    color: #333;
    cursor: pointer;
    display: flex; /* Используем flexbox для центрирования содержимого */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center; /* Центрируем содержимое по вертикали */
}

.dropdown-list li:hover {
    background-color: #ddd; /* Фон при наведении */
}














/* Основной контент !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
main {
    display: flex;
    flex-direction: column; /* Располагаем дочерние элементы вертикально */
    flex: 1; /* Основной контент занимает все оставшееся пространство */
    padding-bottom: 10px;
    gap: 1vh; /* Задаем расстояние между дочерними элементами */
}

.wrapper {
    box-sizing: border-box; /* Включаем отступы и границы в ширину элемента */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    /* Основные размеры */
    width: 100%;           /* Контейнер займет 100% доступной ширины */
    max-width: 1220px;     /* Но не будет больше 1220px */
    background-color: transparent;
    box-sizing: border-box;
    gap: 1vh;
}








/* Подвал !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
footer {
    display: flex;
    align-items: center;
    background: radial-gradient(circle, #2b2f3d, #2b2b35, #222225);
    color: #fff;
    padding: 20px;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.footer-rights-and-links{
    display: flex;
}

/* Логотип, надпись и ссылки на вк!!!!!!!!!*/
.footer-logo-text-links {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Убирает любые выходящие за границы части изображения */
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    padding-left: 20px;
    padding-right: 20px;
    border-right: 2px solid transparent;
    background: linear-gradient(to bottom, #1a237e, #283593, #303f9f, #3949ab, #1a237e) right;
    background-size: 2px 100%;
    background-repeat: no-repeat;
}

/* LOGO !!*/
.footer-logo-img {
    display: flex;
    position: relative;
    max-width: 160px;
    overflow: hidden; /* Убирает любые выходящие за границы части изображения */
}
.footer-logo-img img {
    height: auto; /* Сохраняет пропорции при уменьшении */
    display: block; /* Убирает возможные лишние отступы */
    object-fit: contain; /* Гарантирует, что изображение будет вписано, сохраняя пропорции */
    width: 100%;
    z-index: 2;
}


/* Надпись 1.16.5+ и ссылки!!!*/
.text-and-links{
    display: flex;
    flex-direction: column;
    margin-top: -15px;

}
/* Надпись 1.16.5+ !!*/
.footer-logo-text-links h1 {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    margin-left: auto;
    margin-right: 1px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
   
    z-index: 2;
}
/* Ссылки на соцсети !!!!*/
.vk_telegramm_links {
    display: flex;
    gap: 10px;
    margin-left: auto;
    z-index: 2;
    margin-right: 3px;
    margin-top: 3px;
}



/* Права*/
.rights{
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 2px solid transparent;
    background: linear-gradient(to bottom,#1a237e, #3949ab, #303f9f, #283593,#1a237e) right;
    background-size: 2px 100%;
    background-repeat: no-repeat;
}

.rights p {
    margin: 0;
    margin-right: auto;
}

.footer-rights-and-links .rights p:nth-of-type(4) {
    padding-top: 10px;
    color: #ced3d6;
}

.footer-rights-and-links .rights p:nth-of-type(5) {
    color: #ced3d6;
}





/* Список с ссылками */
footer ul {
    padding-left: 20px;
    padding-right: 20px;
    list-style-type: none; /* Убираем маркеры у списка */
    margin: 0;
    display: flex; /* Размещаем элементы списка в строку */
    flex-direction: column;
    align-items: center; /* Выравнивание по вертикали */
    font-size: 16px;
    text-decoration: underline;
}

footer ul li {
    margin-right: auto;
    cursor: pointer; /* Меняем курсор на pointer */
}

footer ul li:hover {
    color: #a3a3a5; /* Меняем цвет только наведенного элемента списка на оранжевый */
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li:hover a {
    color: inherit; /* Наследует цвет от родительского li (будет оранжевым) */
}




.contacts p{
    margin: 0;
}

@media (max-width: 1024px) {
    footer {
        padding: 10px;
    }
    .footer-rights-and-links{
        flex-direction: column;
    }
    .rights{
        background: none;
        border-right: none;
        padding: 10px;
    }
    footer p {
        margin-bottom: 4px; /* Отступ снизу */
    }
    footer ul {
        padding: 10px;
        flex-direction: column;
        border-top: 2px solid transparent; /* прозрачная линия сверху */
        background: linear-gradient(to right, #1a237e, #3949ab, #303f9f, #283593, #1a237e) top;
        background-size: 100% 2px; /* ширина 100%, высота 2px */
        background-repeat: no-repeat;
    }
    .footer-logo-img {
        max-width: 300px;
    }


}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
    }
    .footer-logo-text-links {
        background: none;
        border-right: none;
        flex-direction: row;
    }
    .rights{
        border-top: 2px solid transparent; /* прозрачная линия сверху */
        background: linear-gradient(to right, #1a237e, #3949ab, #303f9f, #283593, #1a237e) top;
        background-size: 100% 2px; /* ширина 100%, высота 2px */
        background-repeat: no-repeat;
       
    }

    .footer-logo-img {
        max-width: 260px;
    }


    .text-and-links{
        margin-top: 0px;
        
    }

    




}
@media (max-width: 425px) {
    .rights{
        font-size: 13px;
    }
    footer ul {
        font-size: 13px;
    }
}




/* Панель, которая вернеть пользователя наверх !!!!!!!!!!*/
.side-panel {
    position: fixed;
    display: flex;
    top: 0; /* Отступ сверху */
    left: 0; /* Начальная позиция (внутри видимой области, но будет скрыта) */
    opacity: 0; /* Панель сначала невидима */
    transform: translateX(-150%); /* Сдвигаем её влево за пределы экрана */
    z-index: 1000;
    transition: opacity 0.3s ease; /* Плавный переход для opacity и transform */
}
.basic-side-panel{
    display: flex;
    padding: 20px;
    color: #3f3f3f70; /*Цвет текста*/
    align-items: start;
    width: auto;
    background-color: #42424210; /*Цвет заднего фона*/
    transition: 0.1s ease;
}

.side-panel.visible {
    opacity: 1; /* Делает панель видимой */
    transform: translateX(0); /* Возвращает её на место, полностью видимой */
}

.side-panel svg {
    margin-right: 4px;
}


.side-panel:hover{
    cursor: pointer; /* Изменение курсора на pointer */
}

.side-panel:hover .basic-side-panel {
    background-color: #27272731; /*Цвет заднего фона*/
    color: #585656; /*Цвет текста*/
}






/* Медиазапрос для маленьких экранов */
@media (max-width: 1024px) {
    .wrapper {
        width: 100%; /* На маленьких экранах контейнер занимает всю ширину */
    }
    .header-container {
        width: 100%; /* На маленьких экранах контейнер занимает всю ширину */
    }
    
}

@media (max-width: 768px) {
    .img-container img {
        height: 40px;
    }
}

@media (max-width: 425px) {
    .img-container img {
        height: 30px;
    }
}