html {
    scrollbar-color: #858585 #464646;
    scrollbar-width: thin;
}
/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: #858585;
}

::-webkit-scrollbar-track {
    background-color: #464646;
    scrollbar-width: thin;
}

/* Firefox */
* {
    scrollbar-color: #858585 #464646;
    scrollbar-width: thin;
}

/* Microsoft Edge and IE */
*::-ms-scrollbar {
    width: 12px;
}

*::-ms-scrollbar-thumb {
    background-color: #858585;
}

*::-ms-scrollbar-track {
    background-color: #464646;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2c2c2c;
    color: #ccc;
    -ms-user-select: none; 
    -moz-user-select: none; 
    -webkit-user-select: none; 
    user-select: none;
}

header {
    background-color: #222222;
    padding: 10px;
    display: flex;
    align-items: center;
    margin: 20px 16%;
    border-radius: 18px;
    cursor: pointer; /* Добавлен стиль указывающий на возможность клика */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

img {
    height: 35px;
    margin-right: 5px;
    margin-left: 10px;
}

h1 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    height: 1px;
    line-height: 1px;
}

h1 span {
    font-weight: 900;
    transition: text-shadow 0.3s, filter 0.3s;
}

h1 span:hover {
    text-shadow: 0 0 10px #52d3fa, 0 0 20px #52d3fa, 0 0 30px #52d3fa;
    filter: brightness(1.2);
}

h1 span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #52d3fa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: particleEffect 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes particleEffect {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

nav {
    display: flex;
    margin-left: auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-right: 10px;
    position: relative;
}

nav a {
    color: #c5c3c3;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #fff;
}

.contact-list {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    padding: 10px;
    display: none;
    flex-direction: column;
    border-radius: 8px;
}

.contact-list a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
}

nav li:hover .contact-list {
    display: flex;
}

section {
    padding: 20px;
    text-align: center;
    margin: 16px 16% 16px; /* Отступ снизу на 32px */
    background-color: #222222;
    border-radius: 18px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

section h2 {
    color: #eeeeee;
    font-size: 30px;
}

section h3 {
    margin-left: 32px;
    margin-right: 32px;
    color: #eeeeee;
}

section img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: 1400px;
    margin: 32px 0; /* Отступ перед изображением */
    display: block;
    object-fit: cover;
    border-radius: 18px;
}
.img-main {
    max-width: calc(100% - 64px);
    height: auto;
    max-height: 500px;
    width: 1400px;
    margin: 32px 32px; /* Отступ перед изображением */
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

section p {
    color: #c5c5c5;
    font-size: 18px;
    margin-top: 32px;
    margin-left: 32px;
    text-align: left;
    margin-right: 32px;
}

section ul {
    margin-left: 32px;
    font-size: 17px;
}

section .ip-address {
    color: #52d3fa;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    text-align: right; margin-top: -38px; margin-bottom: -12px; margin-right: 24px;
}

.ip-address:hover {
    color: #adfff1; /* цвет при наведении */
}

.ip-sign {
    background-color: #424242;
    border-radius: 16px;
    padding: 4px; margin-top: 16px;
    margin-left: 16px;
    margin-right: 16px;
    position: relative;
    bottom: -16px;
    margin-bottom: 8px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#popup {
    background-color: #333333fb; /* темный цвет фона */
    color: #fff; /* цвет текста */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#closeButton {
    margin-top: 0px;
    padding: 7px;
    border: 0px solid #007BFF; /* синий цвет */
    border-radius: 5px;
    cursor: pointer;
    color: #fff; /* белый цвет текста */
    background-color: #0984aa; /* синий цвет кнопки */
    transition: background-color 0.3s ease; /* плавное изменение цвета при наведении */
}

#closeButton:hover {
    background-color: #68a8d8; /* затемнение цвета при наведении */
}

#online-status {
    font-size: 18px;
    font-weight: bold;
}

#online-status span {
    color: #52d3fa; /* Светло-синий цвет */
}

/* Discord Widget Styles */
.discord-widget {
    text-align: center;
    margin: 32px 16%;
}

footer {
    background-color: #222222;
    padding: 10px;
    text-align: center;
    height: 20px; /* Adjusted height */
    display: flex;
    justify-content: center;
    align-items: center;
}

nav li:nth-child(1) a,
nav li:nth-child(2) a,
nav li:nth-child(3) a {
    font-size: 16px;
}

/* New Section Styles */
.video-section {
    padding: 20px;
    text-align: center;
    background-color: #222222;
    border-radius: 18px;
    margin: 16px 16%;
    align-items: center;
    justify-content: center;
}

iframe {
    width: 1200px; /* Decreased width */
    height: 600px; /* Decreased height */
    max-width: 100%;
    border-radius: 18px;
}
/* carousel start */
.carousel {
    display: flex;
    position: relative;
    overflow: hidden;
    margin-right: 32px;
    margin-left: 32px;
}

.carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.5s;
}

.carousel-item {
    flex: 0 0 auto;
    text-align: center;
    width: 100%; /* Изменено на 100%, чтобы элемент занимал всю доступную ширину */
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: auto; /* Изменено, чтобы изображение подстраивалось под высоту */
    max-width: 100%; /* Добавлено, чтобы избежать растягивания изображения */
    object-fit: cover;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #aaa;
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: #fff;
}
/* carousel end */

.connect {
    display: flex;
    justify-content: space-between; /* Распределение блоков по горизонтали с промежутком между ними */
}
.block {
    width: calc(50% - 16px); /* Ширина блока (50% ширины родительского элемента минус половина отступа между блоками) */
    background-color: #2c2c2c; /* Светло-серый цвет фона */
    border-radius: 18px; /* Скругление углов */
    padding: 20px; /* Добавляем внутренний отступ для контента */
    box-sizing: border-box; /* Учитываем внутренний отступ в общей ширине блока */
}
.block:last-child {
    margin-left: auto; /* Отступ последнего блока от правого края родительского элемента */
}
.connect-p {
    font-size: 18px;
    text-align: left;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 16px;
    margin-bottom: 0px;
}

.info {
    display: flex;
    justify-content: space-between;
}
.pol {
    width: calc(50% - 16px);
    background-color: #2c2c2c;
    border-radius: 16px;
    box-sizing: border-box;
}
.pol-p {
    margin-top: 16px;
    margin-left: 32px;
    margin-right: 20px;
    margin-bottom: 16px;
}

.answer {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
    margin-top: 0px;
    margin-left: 52px;
}

.answer.active {
    display: block;
    opacity: 1;
    max-height: 1000px;
}

.arrow {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.question.active .arrow {
    transform: rotate(90deg);
}

.title {
    text-align: left;
    margin-left: 32px;
    font-size: 18px;
}

.question:hover .title {
    text-decoration: underline;
    font-weight: bold;
}

.links {
    display: flex;
    justify-content: space-between;
}
.ss {
    width: calc(50% - 16px);
    background-color: #2c2c2c;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
}
.ss:last-child {
    margin-left: auto;
}
.links-p {
    font-size: 18px;
    text-align: left;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.discord {
    width: 100%;
    height: 320px;
    justify-content: center;
    align-items: center;
}

.ds {
    margin: 0px 16%;
    margin-bottom: 12px;
}

.theme-toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.link {
    color: #52d3fa;
    text-decoration: none;
}
.link:hover {
    text-decoration: underline;
}

#online-status .link {
    color: #52d3fa;
}

.li-text {
    margin-left: 32px;
    margin-right: 32px;
}

.ol-text {
    margin-left: 16px;
    margin-right: 16px;
}
.img-f {
    justify-self: center;
    align-items: center;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin-right: 10px;
    width: 68%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 18px;
}


@media only screen and (max-width: 768px) {
section,
nav,
header,
.video-section {
    margin: 3%;
}
section ul {
    margin-left: 16px;
    margin-right: 8px;
}
section li {
    margin-left: 16px;
    margin-right: 16px;
}
section p {
    margin-left: 16px;
    margin-right: 16px;
}
section h2 {
    margin-left: 16px;
    margin-right: 16px;
}
section h3 {
    margin-left: 16px;
    margin-right: 16px;
}
section iframe {
    width: 700px;
    height: 240px;
    max-width: 100%;
    border-radius: 18px;
}
nav {
    margin-left: auto;
    margin-right: 0px;
}
.carousel {
    margin-left: 8px;
    margin-right: 8px;
}
.connect {
    flex-direction: column;
    align-items: stretch;
}
.block {
    width: 100%;
    margin-bottom: 16px;
}
.block:last-child {
    margin-bottom: 0;
}

.info {
    flex-direction: column;
    align-items: stretch;
}
.pol {
    width: 96%;
    margin: 2%;
}

.links {
    flex-direction: column;
    align-items: stretch;
    margin-left: -8px;
}
.ss {
    width: 100%;
    margin-bottom: 16px;
}
.ss:last-child {
    margin-bottom: 0;
}
.li-text {
    margin-left: 16px;
    margin-right: 16px;
}
.ol-text {
    margin-left: -16px;
    margin-right: 0px;
}
.faq {
    margin-left: -16px;
}
.discord {
    width: 100%;
    height: 320px;
    justify-content: center;
    align-items: center;
}
.ds {
    margin: 0px 4%;
    margin-bottom: 12px;
}
.ip-sign {
    margin-bottom: 8px;
}
.ip-address{
    display: contents;
}
.img-f {
    justify-self: center;
    align-items: center;
    max-width: calc(100% - 6%);
    height: auto;
    max-height: 400px;
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 18px;
}
.img-main {
    max-width: calc(100% - 32px);
    height: auto;
    max-height: 500px;
    width: 1400px;
    margin: 32px 16px; /* Отступ перед изображением */
    display: block;
    object-fit: cover;
    border-radius: 18px;
}
.head-2fa {
    display: none;
}
.head-map {
    display: none;
}
}