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; /* Добавлен стиль указывающий на возможность клика */
}

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;
}

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;
}

/* Updated styles for the new section with background image */
.background-section {
    background-image: url('files/photo/2k2f-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 18px;
    overflow: hidden;
    height: 120px; /* Adjusted height */
    margin: 20px 16%;
}

/* New styles for the added h2 text */
.background-section h2 {
    color: #ccc;
    margin-top: 6px;
    margin-left: 16px;
    font-weight: bold;
    font-size: 32px;
}

section {
    padding: 20px;
    text-align: center;
    margin: 16px 16% 16px; /* Отступ снизу на 32px */
    background-color: #222222;
    border-radius: 18px;
}

section h2 {
    color: #ccc;
}

section img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: 1400px;
    margin: 32px 0; /* Отступ перед изображением */
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

section p {
    color: #cfcfcf;
    font-size: 18px;
    margin-top: 32px;
    margin-left: 32px;
    text-align: left;
    margin-top: 0px;
    margin-right: 32px;
}

section ol {
    margin-left: 32px;
    margin-right: 64px;
}

section h3 {
    margin-left: 32px;
    color: #cfcfcf;
    font-size: 20px;
    margin-right: 32px;
}

section .ip-address {
    margin-top: 16px;
    color: #52d3fa;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
}

.ip-address:hover {
    color: #adfff1; /* цвет при наведении */
}

#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; /* затемнение цвета при наведении */
}

footer {
    background-color: #222222;
    padding: 10px;
    text-align: center;
    height: 20px; /* Adjusted height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.fa {
    display: flex;
    justify-content: space-between; /* Распределение блоков по горизонтали с промежутком между ними */
}
.con {
    background-color: #2c2c2c;
    border-radius: 18px; /* Скругление углов */
    padding: 8px;
    box-sizing: border-box;
    margin-left: 16px;
    margin-right: 16px;
}
.con:nth-child(1) {
    width: 66%; /* Первый блок должен быть на всю ширину */
}
@media only screen and (max-width: 768px) {
section,
.background-section, 
nav,
header,
.video-section {
    margin: 3%;
}
section p {
    margin-left: 16px;
    margin-right: 8px;
}
section ol {
    margin-left: 16px;
    margin-right: 8px;
}
section h3 {
    margin-left: 16px;
    margin-right: 8px;
}
nav {
    margin-left: auto;
    margin-right: 0px;
}

.fa {
    flex-direction: column; /* Изменяем направление расположения блоков на вертикальное */
    align-items: stretch; /* Вытягиваем блоки по ширине */
}
.con {
    width: calc(100% - 32px); /* Ширина блока занимает всю доступную ширину с отступами */
    margin: 16px 16px 16px 16px; /* Добавляем отступы со всех сторон */
    margin-left: 0px;
    margin-right: 0px;
}
.con:first-child {
    margin-top: 16px; /* Отступ сверху только у первого блока */
}
.con:last-child {
    margin-bottom: 0; /* Убираем отступ снизу у последнего блока */
}
.con:nth-child(1) {
    width: 100%; /* Первый блок должен быть на всю ширину */
    margin-top: 16px;
}
.con:nth-child(2) {
    width: 100%; /* Первый блок должен быть на всю ширину */
}
}