:root {
    --gap: clamp(10px, 2vw, 20px);
    --border-radius: clamp(8px, 1vw + 5px, 12px);
    --general-logo: url('/themes/Sansha/logo.png');
    --general-banner: url('/themes/Sansha/banner.png');
    --general-background: url('/themes/Sansha/background.png');
    --general-background-shadow: #ff9800;
    --column-bg: #fff3e0;
    --menu-bg-hover: #ffe0b2;
    --active-item: #ff9800;
    --active-item-text: #e65100;
    --hover-item: #ff9800;
    --text-color: #3e2723;
    --active-presence: #ff9800;
    --mention-badge: #e65100;
    --overlay-background-color-2025: rgba(0, 0, 0, 0.35);
    --main-color-text-and-elements-2025: #ff9800;
    --background-color-1-2025: #000000c2;
    --background-color-2-2025: #0000008c;
    --background-color-3-2025: #00000069;
    --background-color-4-2025: #0000005e;
    --background-color-overlay-2025: rgba(0, 0, 0, 0.35);
    --background-color-menu-2025: rgba(0, 0, 0, 0);
    --sidebar-color-1-2025: #ff9800;
    --sidebar-color-2-2025: #e65100;
    --sidebar-color-3-2025: #c44500;
    --sidebar-color-4-2025: #fff;
    --button-background-color: #e65100;
    --button-background-color-active: #ff9800;
    --button-background-text-color: black;
    --button-background-text-color-active: black;
    --item-1-2025: #ff9800;
    --item-2-2025: #e65100;
    --item-3-2025: #e6510047;
    --item-4-2025: #ff9800d9;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    /* background: #000 var(--general-background) no-repeat center center fixed; */
    background-size: cover;
    color: white;
}

.container {
    display: flex;
    transition: margin-left 0.3s ease;
}

.sidebar {
    width: 200px; /* Ширина бокового меню */
    height: 100vh; /* Высота на всю высоту экрана */
    color: white; /* Цвет текста */
    position: fixed; /* Фиксированное положение */
    top: 0; /* Привязка к верхней части экрана */
    left: 0; /* Привязка к левой части экрана */
    padding-top: 20px; /* Отступ сверху */
    transform: translateX(0);
    background-color: var(--background-color-menu-2025);
    box-shadow: -30px 100px 60px var(--main-color-text-and-elements-2025);
    overflow: hidden;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar a {
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0);
    border-left-color: var(--sidebar-color-1-2025);
}

.content {
    margin-left: 200px;
    padding: 20px;
    flex-grow: 1; /* Позволяет контенту занимать оставшееся пространство */
    z-index: 1;
}

/* Грид — адаптивная сетка */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap);
    margin-top: 1em;
}

.grid_col_1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid_col_2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid_col_3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid_col_4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid_col_5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid_col_6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid_col_7 {
    grid-template-columns: repeat(7, 1fr);
}

.grid_col_8 {
    grid-template-columns: repeat(8, 1fr);
}

.grid_col_9 {
    grid-template-columns: repeat(9, 1fr);
}

.grid_col_10 {
    grid-template-columns: repeat(10, 1fr);
}

.grid_col_11 {
    grid-template-columns: repeat(11, 1fr);
}

.grid_col_12 {
    grid-template-columns: repeat(12, 1fr);
}

.grid_col_13 {
    grid-template-columns: repeat(13, 1fr);
}

.grid_col_14 {
    grid-template-columns: repeat(14, 1fr);
}

.item {
    background-color: var(--background-color-2-2025);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: var(--border-radius);
}

.height_400 {
    height: 400px;
}

.height_300 {
    height: 300px;
}

.height_400 {
    height: 400px;
}

.height_max {
    height: max-content;
}

.item_square {
    width: 100%; /* Ширина элемента */
    aspect-ratio: 1 / 1; /* Соотношение сторон 1:1 для квадрата */
    background-color: #0000008c; /* Цвет фона квадратов */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.grid-page-title {
    color: white;
    background-color: #0000008c;
    padding: 5px 0 0 10px;
    border-radius: 10px 10px 0 0;
    margin-bottom: -10px;
}

.img_join {
    max-width: 450px; /* Максимальная ширина изображения */
    max-height: 450px; /* Максимальная высота изображения */
    width: auto; /* Ширина автоматически подстраивается */
    height: auto; /* Высота автоматически подстраивается */
    cursor: pointer; /* Указатель при наведении */
}

.image-container {
    position: relative; /* Устанавливаем относительное позиционирование */
    overflow: hidden; /* Скрываем лишние части */
}

.image-container img {
    width: 100%; /* Устанавливаем ширину изображения */
    height: auto; /* Автоматическая высота для сохранения пропорций */
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); /* Градиент от черного к прозрачному */
    pointer-events: none; /* Позволяет взаимодействовать с изображением под наложением */
}

.fullscreen {
    position: fixed; /* Фиксированное позиционирование для полноэкранного режима */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный черный фон */
    display: flex; /* Используем flexbox для центрирования изображения */
    justify-content: center;
    align-items: center;
}

.fullscreen img {
    max-width: 90%; /* Ограничиваем ширину изображения в полноэкранном режиме */
    max-height: 90%; /* Ограничиваем высоту изображения в полноэкранном режиме */
}

.overlay {
    position: fixed; /* Используем fixed для позиционирования относительно окна просмотра */
    top: 0; /* Привязка к верхней части экрана */
    left: 0; /* Привязка к левой части экрана */
    right: 0; /* Привязка к правой части экрана */
    bottom: 0; /* Привязка к нижней части экрана */
    background-color: var(--background-color-overlay-2025); /* Полупрозрачный черный фон */
    z-index: 0; /* Уровень наложения, чтобы быть под другими элементами */
}

#logo_jade_legion {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5vh;
    position: relative;
}

.logo_img {
    width: 100%;
}

.logo {
  width: 200px; /* задайте нужный размер */
  height: 100px;
  background-image: var(--general-logo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#sidebar section, #sidebar nav {
    position: relative;
    margin: 2em 0 0 0;
    font-size: 0.9em;
}

#copyright {
    list-style: none;
    padding-bottom: 2em;
    padding-left: 0;
}

#copyright::before {
    content: '';
    border-top: solid 1px;
    border-top-color: currentcolor;
    border-bottom: solid 1px;
    border-bottom-color: currentcolor;
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.075), 0px 1px 0px 0px rgba(255, 255, 255, 0.075);
    display: block;
}

.styled-hr {
    margin-top: 10px; /* Отступ сверху */
    margin-bottom: 10px; /* Отступ снизу */
    border: none; /* Убираем стандартные границы */
    height: 2px; /* Высота линии */
    background-color: #0000; /* Цвет линии */
}

.styled-hr-20 {
    margin-top: 20px; /* Отступ сверху */
    margin-bottom: 20px; /* Отступ снизу */
    border: none; /* Убираем стандартные границы */
    height: 2px; /* Высота линии */
    background-color: #0000; /* Цвет линии */
}

.styled-hr-40 {
    margin-top: 40px; /* Отступ сверху */
    margin-bottom: 40px; /* Отступ снизу */
    border: none; /* Убираем стандартные границы */
    height: 2px; /* Высота линии */
    background-color: #0000; /* Цвет линии */
}

@media screen and (min-width: 737px) {
    #copyright {
        margin: 2em 0 0 0;
        text-align: center;
        color: #3e3e3e;
        position: absolute;
        margin-left: 11%;
    }
    .JL_item_square img {
        height: 400px;
    }
}

.item_twn {
    display: flex;
    flex-wrap: wrap; /* Позволяет элементам переходить на новую строку */
    justify-content: space-between; /* Распределяет элементы по доступному пространству */
    flex-flow: column-reverse;
}

.avatar-container_twn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Отступ между элементами */
}

.avatar-item_twn {
    flex: 0 1 calc(20% - 10px); /* Каждый элемент занимает около 20% ширины контейнера с учетом отступа */
    box-sizing: border-box; /* Учитывает отступы в ширине элемента */
    position: relative; /* Для абсолютного позиционирования внутренних элементов */
}
.user-info_twn {
    color: #00fdc7;
    font-size: small;
}

/* Навигация */
#nav > ul > li > ul {
    display: none;
}

#nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#nav li {
border-top: solid 1px rgba(0, 0, 0, 0.25);
box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.075);
padding: 0.3em 0 0.3em 0;
}

#nav li:first-child {
    border: 0;
    box-shadow: none;
    padding-top: 0;
}

#nav li:last-child {
    padding-bottom: 0;
}

#nav li a {
    display: block;
    padding: 0.4em 1em 0.4em 0.8em;
    text-decoration: none;
    border-radius: 1.4em 0 0 0.4em;
    outline: 0;
    transition: all 0.25s ease;
    margin-left: 0.5em;
}

#nav li.current a {
    background-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 0.25em 0 rgba(0, 0, 0, 0.25);
    font-weight: 700;
    color: #fff;
}

#nav li:hover a {
    background-color: #0000;
    color: #fff;
    // box-shadow: -100px 0px 40px #00ffc9;
    box-shadow: -100px 0px 40px var(--sidebar-color-2-2025);
}

#nav .submenu-li {
    padding: 0.1em 0 0.1em 0;
    border-radius: 1.4em 0 0 0.4em;
}

#nav li:hover i {
    // color: #00fdc7;
    color: var(--sidebar-color-1-2025);
    text-shadow: 0 2px 2px #000;
}

/* Мобильные стили */
.menu-toggle {
    display: block; /* Показываем кнопку на мобильных устройствах */
}

.submenu-text {
    font-size: 0.9em;
    text-shadow: 0 2px 2px #000;
}

.avatar-container {
    position: relative; /* Позволяет позиционировать дочерние элементы относительно этого контейнера */
    width: 100%; /* Задаем ширину контейнера */
    height: 400px; /* Высота контейнера */
    max-width: 30em;
}

.avatar-container img {
    width: 100%; /* Изображение занимает всю ширину контейнера */
    height: auto; /* Сохраняем пропорции изображения */
    max-width: 30em;
}

.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    /* background-color: rgba(0, 0, 0, 0.41); */
    color: #00fdc7;
    padding: 10px;
    display: grid;
    /* width: 100%; */
}

/* table */
.ship-table {
    width: 100%;
    border-collapse: collapse;
    font-size: small;
}

.ship-table th, .ship-table td {
    border: 1px solid #444; /* Темная граница */
    padding: 10px;
    text-align: left;
}

.ship-table th {
    background-color: #1e1e1e; /* Темный фон заголовков */
}

.ship-table tr:nth-child(even) {
    background-color: #222; /* Чередование фона строк */
}

/* Поддержка светлой темы */
@media (prefers-color-scheme: light) {
    .ship-table th {
        background-color: #f0f0f0; /* Светлый фон заголовков */
    }
    .ship-table tr:nth-child(even) {
        background-color: #f9f9f9; /* Чередование фона строк для светлой темы */
    }
}
/* table */

/* Видео */
.video_container_auto {
    width: 15em;
    margin: 1em 1em 1em 0em;
    border-radius: 10px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Максимальная ширина видео */
}

video {
    width: 100%; /* Ширина видео адаптивная */
}

#muteButton {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    color: white; /* Цвет иконок */
}
#muteButton i {
    font-size: 20px; /* Размер иконок */
}

.code_hello {
    font-family: Moderustic-Light;
}

.item_news img {
    width: 300px;
    border-radius: 5px;
}

.grid_ships {
    grid-template-columns: repeat(6, 1fr);
}

.grid_youtube {
    grid-template-columns: repeat(4, 1fr);
}

.item_eye_img {
    width: 165px;
    position: absolute;
    top: 2px;
    border-radius: 10px 10px 0px 0px;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        z-index: 1000;
        margin-left: -200px; /* Скрываем за пределами экрана по умолчанию */
        height: calc(100vh - 40px);
        padding-top: 60px;
        transition: margin-left 0.3s ease; /* Плавный переход для изменения margin-left */
    }
    .sidebar.visible {
        margin-left: 0; /* Когда меню активно, устанавливаем отступ в 0 */
        position: fixed;
    }

    .content {
        margin-left: 0; /* Убираем отступ слева для контента на мобильных устройствах */
        padding-top: 20px; /* Отступ сверху для контента на мобильных устройствах */
        transition: margin-left 0.3s ease;
    }

    .grid {
        /* Две колонки на мобильных устройствах */
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: repeat(1, 1fr);
    }
    .grid_ships {
        grid-template-columns: repeat(2, 1fr);
        padding: 1em;
    }
    .grid_youtube {
        grid-template-columns: repeat(1, 1fr);
        padding: 1em;
    }
}

.menu-toggle {
    display: none; /* Скрываем кнопку по умолчанию */
}


@media (max-width: 768px) {
    .content {
        margin-top: 1.9em;
        padding: inherit;
    }

    .menu-toggle {
        display: block;
        background-color: #00000073;
        color: white;
        padding: 10px;
        border: none;
        cursor: pointer;
        margin-bottom: 20px;
        font-size: 21px;
        width: 100%;
        text-align: left;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1001; /* Высокий z-index, чтобы кнопка была поверх всего остального */
    }

    .menu-toggle i {
        position: absolute;
        width: min-content;
    }

    .menu-toggle span {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .height_max {
        height: max-content;
        display: flex;
        text-align: left;
        flex-direction: column;
        justify-content: center;
    }

    .video_container_auto {
        width: 90%;
        margin: 1em 1em 1em 1em;
        border-radius: 30px;
    }

    .video-container {
        position: relative;
        width: 100%;
        max-width: 600px; /* Максимальная ширина видео */
    }

    video {
        width: 100%; /* Ширина видео адаптивная */
    }

    #muteButton {
        position: absolute;
        bottom: auto;
        left: 22px;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        cursor: pointer;
        color: white; /* Цвет иконок */
    }

    #muteButton i {
        font-size: 20px; /* Размер иконок */
    }

    .code_hello {
        font-family: Moderustic-Light;
        padding: 1em;
    }

    .item_news img {
        display: none;
    }

}

@media (max-width: 900px) {
.grid_col_8 {
    grid-template-columns: repeat(4, 1fr);
}

.item_fits {
    margin: 0;
    height: 100px;
    position: relative;
    border-radius: 10px 10px 0px 0px;
    background-color: var(--background-color-2-2025);
}

.spinner {
    width: 60px;
    height: 60px;
}

.grid {
    gap: 60px 20px;
}

.img .item_eye_img {
    width: 100px; /* Ширина изображения */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    display: block; /* Блочный элемент для центрирования */
    margin: 0 auto; /* Центрирование изображения */
    border: 2px solid #000; /* Черная рамка вокруг изображения */
    border-radius: 10px; /* Скругление углов рамки */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Тень для эффекта глубины */
}
}

@keyframes flicker {
    0%, 100% {
        background-color: #0000; /* Прозрачный фон */
        color: #fff; /* Белый текст */
        box-shadow: -100px 0px 40px #00ffc9; /* Начальное состояние тени */
    }
    10% {
        background-color: rgba(0, 255, 201, 0.5); /* Полупрозрачный фон */
        box-shadow: -100px 0px 60px #00ffc9; /* Увеличенная тень */
    }
    20% {
        background-color: rgba(0, 255, 201, 0.3); /* Более светлый фон */
        box-shadow: -100px 0px 80px #00ffc9; /* Увеличенная тень */
    }
    30% {
        background-color: rgba(0, 255, 201, 0.7); /* Яркий фон */
        box-shadow: -100px 0px 100px #00ffc9; /* Максимальная тень */
    }
    40% {
        background-color: #0000; /* Возврат к прозрачному фону */
        box-shadow: -100px 0px 40px #00ffc9; /* Возврат к начальной тени */
    }
}

.merchLampEffect {
    animation: flicker 1.5s infinite; /* Анимация мерцания */
}

@keyframes siren_code_red {
0%, 100% {
    box-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red; /* Начальное и конечное состояние */
}
50% {
    box-shadow: 0 0 20px red, 0 0 40px red, 0 0 60px red; /* Увеличение тени в середине анимации */
}
}

.siren_code_red {
position: relative;
padding: 0px;
margin: 0px;
background-color: rgba(255, 0, 0, 0.1);
color: white;
border-radius: 20px;
animation: siren_code_red 0.5s infinite;
}

.siren_code_green {
position: relative;
padding: 0px;
margin: 0em 1em 0em 1em;
}

@keyframes siren_code_red {
0%, 100% {
    box-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red; /* Начальное и конечное состояние */
}
50% {
    box-shadow: 0 0 20px red, 0 0 40px red, 0 0 60px red; /* Увеличение тени в середине анимации */
}
}

.siren_code_red {
position: relative;
padding: 0px;
/* margin: 0px; */
margin: 0em 1em 0em 1em;
background-color: rgba(255, 0, 0, 0.1);
color: white;
border-radius: 20px;
animation: siren_code_red 0.5s infinite;
z-index: 10;
}

@keyframes siren_code_orange {
0% {
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.7), 0 0 10px rgba(255, 69, 0, 0.7);
    transform: scale(1);
}
50% {
    box-shadow: 0 0 15px rgba(255, 165, 0, 1), 0 0 20px rgba(255, 69, 0, 1);
    transform: scale(1.05);
}
100% {
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.7), 0 0 10px rgba(255, 69, 0, 0.7);
    transform: scale(1);
}
}

.siren_code_orange {
position: relative;
padding: 0px;
/* margin: 0px; */
margin: 0em 1em 0em 1em;
background-color: rgba(255, 143, 0, 0.1);
color: white;
border-radius: 20px;
animation: siren_code_orange 1s infinite;
z-index: 10;
}

@keyframes siren_code_blue {
0% {
    box-shadow: inset 0 0 5px rgba(0, 219, 255, 0.7), inset 0 0 10px rgba(0, 243, 255, 0.7);
    transform: scale(1);
}
50% {
    box-shadow: inset 0 0 15px rgb(0, 243, 255), inset 0 0 20px rgb(0, 255, 255);
    transform: scale(1.05);
}
100% {
    box-shadow: inset 0 0 5px rgba(0, 243, 255, 0.7), inset 0 0 10px rgba(0, 219, 255, 0.7);
    transform: scale(1);
}
}

.siren_code_blue {
position: relative;
padding: 0px;
/* margin: 0px; */
margin: 0em 1em 0em 1em;
background-color: rgba(0, 255, 243, 0.1);
color: white;
border-radius: 20px;
animation: siren_code_blue 3s infinite;
z-index: 10;
}

@keyframes rotate_shadow {
0% {
    box-shadow: -10px 0px 50px var(--sidebar-color-2-2025); /* Начальная позиция тени */
}
25% {
    box-shadow: 0px 10px 50px var(--sidebar-color-2-2025); /* Позиция на 25% */
}
50% {
    box-shadow: 10px 0px 50px var(--sidebar-color-2-2025); /* Позиция на 50% */
}
75% {
    box-shadow: 0px -10px 50px var(--sidebar-color-2-2025); /* Позиция на 75% */
}
100% {
    box-shadow: -10px 0px 50px var(--sidebar-color-2-2025); /* Возврат к начальной позиции */
}
}

@keyframes rotate_shadow_inset {
0% {
    box-shadow: inset -10px 0px 50px #00ffc9; /* Начальная позиция тени */
}
25% {
    box-shadow: inset 0px 10px 50px #00ffc9; /* Позиция на 25% */
}
50% {
    box-shadow: inset 10px 0px 50px #00ffc9; /* Позиция на 50% */
}
75% {
    box-shadow: inset 0px -10px 50px #00ffc9; /* Позиция на 75% */
}
100% {
    box-shadow: inset -10px 0px 50px #00ffc9; /* Возврат к начальной позиции */
}
}

@keyframes code_gold {
0%, 100% {
    box-shadow: inset 0 0 0px gold, inset 0 0 1px gold, inset 0 0 2px gold;
}
50% {
    box-shadow: inset 0 0 3px gold, inset 0 0 4px gold, inset 0 0 5px gold;
}
}

.code_gold {
position: relative;
padding: 0px;
margin: 0px;
background-color: rgba(255, 0, 0, 0.1);
color: white;
border-radius: 20px;
animation: code_gold 1s infinite;
}

.rotate_shadow {
position: relative;
padding: 0px 0px; /* Внутренние отступы для элемента */
color: white; /* Цвет текста */
border-radius: 20px; /* Скругление углов */
animation: rotate_shadow 3s linear infinite; /* Анимация вращения тени */
z-index: -1;
}

.rotate_shadow_inset {
position: relative;
padding: 0px 0px; /* Внутренние отступы для элемента */
color: white; /* Цвет текста */
border-radius: 20px; /* Скругление углов */
animation: rotate_shadow_inset linear infinite; /* Анимация вращения тени */
}

.item_fits {
position: relative;
border-radius: 20px;
background-color: var(--background-color-2-2025);
height: 200px;
display: flex;
align-items: center;
justify-content: center;
color: white;
}

.author_info {
display: flex;
align-items: center;
margin-top: 5px; /* Отступ сверху */
position: absolute;
left: 5px;
bottom: 5px;
}

.avatar {
width: 30px; /* Ширина аватарки */
height: 30px; /* Высота аватарки */
border-radius: 50%; /* Округление углов для создания эффекта круга */
margin-right: 5px; /* Отступ справа от аватарки */
}

.author_nick {
font-size: 11px;
color: #00ffc966;
text-shadow: 0 2px 2px #000;
}

.gold {
color: gold;
font-size: 14px;
}

.silver {
color: silver;
font-size: 14px;
}

.bronze {
color: #923d0a;
font-size: 14px;
}

.black_hole {
margin-top: 3em;
margin-bottom: 1em;
/* height: 5px; */
text-align: center;
/* background-color: #000; */
background-color: #0000005c;
border-radius: 100%;
box-shadow: 0 0 15px #00ffc8;
color: black;
}

.youtube {
    border: 2px groove var(--item-1-2025);;
}

.youtube_i_play {
/* color: white; */
/* color: #ff0000a8; */
text-align: center;
display: block;
/* top: 48%; */
bottom: 48%;
/* left: 48%; */
right: 48%;
position: absolute;
color: #fff;
top: 36%;
left: 46%;
text-shadow: 0px 0px 4px black;
}

.JL_grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}

.JL_item_square {
position: relative;
border-radius: 20px;
background-color: var(--background-color-2-2025);
padding: 15px;
}

.JL_item_square img {
width: 100%; /* Заполняет ширину родительского блока */
/* height: 100%; */
object-fit: cover; /* Изображение будет обрезано, чтобы заполнить блок */
border-radius: 8px; /* Закругление углов */
cursor: pointer; /* Курсор при наведении */
background-color: var(--background-color-2-2025);
height: 200px;
display: flex;
align-items: center;
justify-content: center;
color: white;
box-shadow: 0px 3px 8px black;
}

.JL_item_square p {
text-align: center;
color: white; /* Цвет текста */
margin-top: -25px;
text-shadow: 0px 2px 2px black;
}

@media (max-width: 768px) {
.JL_item_square img {
    height: 400px;
}
.siren_code_green {
    margin: 0em 1em 0em 1em;
}
.siren_code_orange {
    margin: 2em;
}
.siren_code_blue {
    margin: 2em;
}
.siren_code_red {
    margin: 2em;
}

/* #sidebar nav {
    margin: 0.7em 0 0 0;
    font-size: 1.2em;
} */
}

.background-admins {
/* background: repeating-linear-gradient( -45deg, #00fdc7, #00fdc7 9px, black 10px, black 20px ); */
background: repeating-linear-gradient( -45deg, #00886b, #00886b 9px, black 10px, black 20px );
/* opacity: 0.3; */
/* box-shadow: inset 5px 0px 10px black; */
box-shadow: inset -100px 0px 40px #000;
}

.background-engineers {
/* background: repeating-linear-gradient( -45deg, #ffa700, #ffa700 9px, black 10px, black 20px ); */
background: repeating-linear-gradient( -45deg, #ab7000, #ab7000 9px, black 10px, black 20px );
/* opacity: 0.3; */
/* box-shadow: inset 5px 0px 10px black; */
box-shadow: inset -100px 0px 40px #000;
}

.background-vpn {
/* background: repeating-linear-gradient( -45deg, #ffa700, #ffa700 9px, black 10px, black 20px ); */
background: repeating-linear-gradient( -45deg, rgb(153 27 27), rgb(153 27 27) 9px, black 10px, black 20px );
/* opacity: 0.3; */
/* box-shadow: inset 5px 0px 10px black; */
box-shadow: inset -100px 0px 40px #000;
}

.background-officers {
background: repeating-linear-gradient( -45deg, #ffd700bf, #ffd700bf 9px, black 10px, black 20px );
box-shadow: inset -100px 0px 40px #000;
}

.gold {
    color: gold;
    font-size: 14px;
}

.silver {
    color: silver;
    font-size: 14px;
}

.bronze {
    color: #923d0a;
    font-size: 14px;
}

.black_hole {
    margin-top: 3em;
    margin-bottom: 1em;
    text-align: center;
    background-color: #0000005c;
    border-radius: 100%;
    box-shadow: 0 0 15px var(--main-color-text-and-elements-2025);
    color: black;
}

.black_hole_text {
    color: var(--main-color-text-and-elements-2025);
}

.black_hole_2 {
margin-top: 11px;
margin-bottom: 41px;
text-align: center;
border: 0;
height: 1px;
background: linear-gradient(to right, transparent, var(--general-background-shadow), transparent);
}

.black_hole_2_text {
color: var(--item-1-2025);
margin: 10px 0px 0px 0px;
text-shadow: 2px 2px 4px black;
}

.btn-success {
text-decoration: none; /* Убираем подчеркивание */
color: #fff;
background-color: var(--active-item, #FFF);
border-color: var(--active-item, #FFF);
box-shadow: 1px 1px 3px #000;
padding: 10px;
font-size: 15px;
width: max-content;
border-radius: 10px;
}

.btn-success:hover {color: #fff;background-color: var(--active-item, #FFF);border-color: var(--active-item, #FFF); box-shadow: inset 3px 1px 3px #000;}
.btn-success.active, .btn-success:active, .open > .dropdown-toggle.btn-success {color: #fff; background-color: var(--active-item, #FFF);border-color: var(--active-item, #FFF); border-color: #a98a51;}
.btn-success.focus, .btn-success:focus {color: #fff;background-color: var(--active-item, #FFF);border-color: var(--active-item, #FFF);}
.btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .btn-success:active:focus, .btn-success:active:hover, .open > .dropdown-toggle.btn-success.focus, .open > .dropdown-toggle.btn-success:focus, .open > .dropdown-toggle.btn-success:hover {color: #fff;background-color: var(--active-item, #FFF);border-color: var(--active-item, #FFF);}

.btn-default {color: var(--text-color, #fff);background-color: var(--active-item, #FFF);border-color: var(--menu-bg-hover, #FFF);box-shadow: 1px 1px 3px #000;}
.btn-default:hover {color: var(--text-color, #fff);background-color: var(--active-item, #FFF);border-color: var(--menu-bg-hover, #FFF);box-shadow: inset 3px 1px 3px #000;}

.snowflake {
position: absolute;
top: -10px; /* Начинаем выше элемента */
width: 5px; /* Ширина снежинки */
height: 5px; /* Высота снежинки */
background-color: white; /* Цвет снежинки */
opacity: 0.8;
border-radius: 50%; /* Делаем снежинки круглыми */
animation-name: fall;
animation-timing-function: linear;
animation-iteration-count: infinite;
}

@keyframes fall {
to {
    transform: translateY(200px); /* Падает вниз на высоту контейнера */
    opacity: 0; /* Исчезает при падении */
}
}

.short_news_green {
    position: absolute;
    left: 0;
    top: 0;
    padding: 6px;
    background-color: var(--item-3-2025);
    border-radius: 10px 0px 10px 0px;
    color: #fff;
    font-size: small;
    z-index: 1;
}

.short_news_date_green {
    position: absolute;
    right: 0;
    top: 0;
    padding: 6px;
    background-color: var(--item-3-2025);
    border-radius: 0px 10px 0px 10px;
    color: #fff;
    font-size: small;
    z-index: 1;
}

.short_news_red {
position: absolute;
left: 0;
top: 0;
padding: 6px;
background-color: red;
border-radius: 10px 0px 10px 0px;
color: black;
font-size: small;
z-index: 1;
}

.short_news_date_red {
position: absolute;
right: 0;
top: 0;
padding: 6px;
background-color: red;
border-radius: 0px 10px 0px 10px;
color: black;
font-size: small;
z-index: 1;
}

.short_news_orange {
position: absolute;
left: 0;
top: 0;
padding: 6px;
background-color: rgb(255, 131, 0);
border-radius: 10px 0px 10px 0px;
color: black;
font-size: small;
z-index: 1;
}

.short_news_date_orange {
position: absolute;
right: 0;
top: 0;
padding: 6px;
background-color: rgb(255, 131, 0);
border-radius: 0px 10px 0px 10px;
color: black;
font-size: small;
z-index: 1;
}

.short_news_blue {
position: absolute;
left: 0;
top: 0;
padding: 6px;
background-color: #00fff3;
border-radius: 10px 0px 10px 0px;
color: black;
font-size: small;
z-index: 1;
}

.short_news_date_blue {
position: absolute;
right: 0;
top: 0;
padding: 6px;
background-color: #00fff3;
border-radius: 0px 10px 0px 10px;
color: black;
font-size: small;
z-index: 1;
}

.short_news_edit_admin {
position: absolute;
right: 0;
bottom: 0;
padding: 6px;
background-color: #ffcb00;
border-radius: 10px 0px 10px 0px;
color: black;
font-size: small;
z-index: 1;
}

.author_info {
display: flex;
align-items: center;
margin-top: 5px; /* Отступ сверху */
position: absolute;
left: 5px;
bottom: 5px;
}

.eve-font {
font-family: 'eve_jade_legion', sans-serif;
font-size: 0.9em;
}

.maintenance-notice {
background: repeating-linear-gradient(
    45deg,
    #ffcc00,
    #ffcc00 20px,
    #000 20px,
    #000 40px
);
position: relative;
overflow: hidden;
padding: 24px;
text-align: center;
font-family: 'Courier New', monospace;
color: #000;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
border: 2px solid #000;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
/* Эффект "рваной" границы */
.maintenance-notice::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
z-index: -1;
clip-path: polygon(
    0% 5%, 5% 0%, 15% 5%, 20% 0%, 30% 5%, 35% 0%, 45% 5%, 50% 0%,
    60% 5%, 65% 0%, 75% 5%, 80% 0%, 90% 5%, 95% 0%, 100% 5%,
    100% 100%, 0% 100%
);
transform: scale(1.02);
}
.maintenance-content {
background: rgba(255, 255, 255, 0.92);
display: inline-block;
padding: 16px 90px;
border: 6px double #000;
border-radius: 4px;
box-shadow: inset 0 0 0 2px #000;
margin: -13px;
min-width: 280px;
}
/* Кнопка в стиле предупреждения */
.maintenance-btn {
display: inline-block;
margin-top: 16px;
padding: 8px 20px;
background: #ffcc00;
color: #000;
text-decoration: none;
font-family: 'Courier New', monospace;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
border: 3px solid #000;
border-radius: 0;
box-shadow: 0 3px 0 #000;
transition: all 0.1s ease;
position: relative;
}
.maintenance-btn:hover {
background: #ffd84d;
transform: translateY(2px);
box-shadow: 0 1px 0 #000;
}
.maintenance-btn:active {
transform: translateY(3px);
box-shadow: none;
}
@media (max-width: 768px) {
.maintenance-content {
    padding: 16px 70px;
    font-size: 0.5em;
}
}

