/* Мобильная адаптация */
@media (max-width: 855px) {

/* Основные стили для тела */
body {
  margin: 0;
  padding: 0;
}


/* Прокаченный стиль для футера */
footer {
  margin-top: 60px;
  text-align: center;
  padding: 10px;
  background-color: #333;
  color: white;
}

.hero-section {
  margin: 0;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  display: flex;
  background-color: #383838;
  padding: 100px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  height: 70vh;
  background-image: url('/images/night.png');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.delay {
  width: auto;
  height: 5vh;
}


.hero-section .layer {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  object-fit: cover;
}

  
.hero-section .logo {
    z-index: 12; /* Передний слой */
}

@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh); /* Снег падает до нижней части экрана */
    }
}

 
@keyframes rotate {
    0% {
      transform: rotate(0deg); /* Начальная позиция (не вращается) */
    }
    100% {
      transform: rotate(360deg); /* Вращение на 360 градусов */
    }
  }



  /* Основные стили для тела */
body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  margin: 0;
  padding: 0;
}


/* Стили для кнопки смены темы (если она есть) */
.theme-switch {
  cursor: pointer;
  padding: 6px 12px;
  background-color: #00000000;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-left: 20px;
}

/* Стили для темной и светлой темы */
body.light-theme {
  background-color: linear-gradient(180deg, rgb(255, 255, 255), rgb(247, 247, 247) 83%);;
  color: #333;
}

body.dark-theme {
  background-color: rgb(18, 18, 18);
  color: white;
}

/* Прокаченный стиль для футера */
footer {  
  margin-top: 60px;
  text-align: center;
  padding: 10px;
  background-color: #333;
  color: white;
}

/* Стили для контейнера ссылок */
.navbar .links {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px; /* Расстояние между вкладками */

  margin-top: 10px;

  position: relative;
}
/* Стили для ссылок-закладок */
.navbar .links a {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  background-color: #575757;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 2px solid transparent;
  transition: background-color 0.3s, border-bottom 0.3s
}
.links a span {
  text-indent: -9999px; /* Скрываем текст */
  display: inline-block;
}
/* Эффект при наведении на вкладку */
.navbar .links a:hover {
  background-color: #444444;
}

/* Стили для активной вкладки */
.navbar .links a.active {
  background-color: #818181;
  border-bottom: 2px solid white;
}
/* Стили для иконок */
.navbar .links a i {
  margin-right: 0px; /* Отступ для иконок */
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 0px 3px;
}

.links a {
  color: white;
  text-decoration: none;
  font-size: 2vh;
}

.links a:hover {
  color: #f0a500;
}

.active {
  font-weight: bold;
}
/* Social links styles */
.social-links, .social-link a, .social-link2  a {
  color: white;
  text-decoration: none;
  
  margin-right: 10px;
  font-size: 3vb;
}

.social-links, .social-link a:hover, .social-link2 a:hover {
  color: rgb(218, 255, 241);
}

.social-links, .social-link{
  gap:2px;
  align-items: center;
  display: none;
  flex-direction: column;
  }
  .social-link2{
    gap:10px;
    align-items: center;
    display: none;
    flex-direction: column;
  }

.layer-logo {
  max-width: 95%;
}
.log {
  width: 30px;
}


/*Styling Hamburger Icon*/
.hamburger div{
  width: 30px;
  height:3px;
  background: #f2f5f7;
  margin: 5px;
  transition: all 0.3s ease;
}

.hamburger{
      display:block;
      position: relative;
      cursor: pointer;
      top: 13px;
      transform: translate(-5%, -50%);
      z-index: 32;
      transition: all 0.7s ease;
}
  
li.fade{
      opacity: 1;
}


/*Animating Hamburger Icon on Click*/
.toggle .line1{
  transform: rotate(-45deg) translate(-5px,6px);
}
.toggle .line2{
  transition: all 0.7s ease;
  width:0;
}
.toggle .line3{
  transform: rotate(45deg) translate(-5px,-6px);
}

.lang-switcher {
  position: relative;
  display: inline-block;
}

.flags {
  display: none;
  content: ''; /* Создаем пустой контент */
  position: absolute;
  top: 40px;
  left: -6px;
  background-color: rgb(54, 54, 54);
  border: 2px solid #ffffff;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0); /* Прозрачный черный фон */
  padding: 5px;
  z-index: 1;
}
.flags::before {
  content: ''; /* Создаем пустой контент */
  position: absolute; /* Абсолютное позиционирование относительно родителя */

  overflow: hidden; /* Чтобы элементы не выходили за пределы контейнера */
  top: 0;
  left: 0;
  width: 100%;
  filter: blur(5px); /* Применяем размытие */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.274); /* Прозрачный черный фон */

  z-index: -1; /* Псевдо-элемент должен быть за содержимым */
}

.lang-switcher:hover .flags {
  display: block;
}

.flag, .flagd {
  position: relative; /* Чтобы псевдо-элемент был позиционирован относительно родителя */
  overflow: hidden; /* Чтобы элементы не выходили за пределы контейнера */
  border: 2px solid #ffffff;
  border-radius: 2px;
  width: 45px;
  height: 30px;
  margin: 5px;
  cursor: pointer;
}

.flagd img, .flag img {
  width: 100%;
  height: 100%;
}

.flag:hover, .flagd:hover {
  opacity: 0.8;
}

/* Анимация для раскрытия */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.secret {
  display: none;
}
#blox1 {
  position: absolute;
  display: none;
  bottom: 0;
  left: 0;
}
#blox2 {
  position: absolute;
  top: 0;
  display: none;
  right: 0;
}
.tl-content p{
  font-size: 0.4em;
}


.tl-content h1 {
  font-size: 1rem;
}
/* Меню по умолчанию скрыто */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 93%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  z-index: 3;
}

/* При добавлении класса 'show' меню становится видимым */
#mobile-menu.show {
  display: flex;
}

#mobile-title {
  font-size: 2em;
  font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  color: #1779cf;
  font-weight: normal;
  margin-bottom: 20px;
}

#mobile-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.mobile-date {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.1em;
}

/* Стили для мобильных устройств */
@media only screen and (max-width: 768px) {
  .tl-item {
    cursor: pointer;
  }
}
.section-title{
  font-size: 1.6rem;
}
}

