*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root{
 --index: calc(1vw + 1vh)
}
@font-face {
  font-family: 'MyCustomFont'; /* название шрифта, которое будете использовать */
  src: url('/fonts/anotheramericarusbylyajka.otf') format('opentype');
}
@font-face {
  font-family: 'MyCustomFont2';
  src: url('/fonts/cinzel_bold.ttf') format('truetype');
}

/* Третий шрифт, например, в WOFF */
@font-face {
  font-family: 'MyCustomFont3';
  src: url('/fonts/Impact.ttf') format('woff');
}
body{
  background-color: #010101;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'MyCustomFont', sans-serif;
  /* font-family: ; */
  line-height: 1.55;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color:  rgba(255,219,51,255);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}
.spinner_text_title{
  color: #fffffe;
  line-height: 1.1;
  font-size: calc(var(--index) * 0.8);
  font-family: 'MyCustomFont2', sans-serif;
}
.spinner_text{
  color: rgba(255,219,51,255);
  text-shadow: 0 0 15px rgba(0,0,0,255);
  font-size: calc(var(--index) * 2.5);
  letter-spacing: calc(var(--index) / 3.5);
}
.spinner_text_comment {
  font-family: 'MyCustomFont2', sans-serif;
  font-size: calc(var(--index) * 0.5);
  position: absolute;
  bottom: 10px; /* отступ снизу */
  right: 10px;  /* отступ справа */
  margin: 0; /* убираем возможные отступы */
  color: rgba(34, 33, 33, 0.715);
}

/* Определение анимации вращения */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Стили для основного контента, который изначально скрыт */
#site-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Плавное появление */
}

/* Класс, который убирает прелоадер и показывает контент */
.loaded #preloader {
    display: none;
}
.loaded #site-content {
    opacity: 1;
}
.main_header{
  position: relative;
  z-index: 0;
}
.main_header::after{
  content: '';
  position: absolute;
  z-index: 100;
  pointer-events: none;
  width: 100%;
  height: calc(var(--index) * 9);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  bottom: calc(var(--index) * -5.5);
  filter: blur(20px) hue-rotate(317deg) brightness(0.3);
  background-color: rgb(7, 7, 240);
  opacity: 0.6;  
}
 .layers {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.layer{
  height: 100%;
  width: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.layers_base{
  transform: translate3d(0, calc(var(--scrollTop)/1.6), 0);
  z-index: 0;
}
.layers_middle{
  transform: translate3d(0, calc(var(--scrollTop)/3.5), 0);
}
.layers_front{
  transform: translate3d(0, calc(var(--scrollTop)/7.7), 0);
  z-index: 2;
}
.layers_header{
  position: relative;
  z-index: 101;
  transform: translate3d(0, calc(var(--scrollTop)/2), 0);
  will-change: transform;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255,219,51,255);
}
.layers_title{
  font-size: calc(var(--index) * 2.7);
  letter-spacing: calc(var(--index) / 2.25);
  text-shadow: 10px 10px 14px rgb(0, 0, 0);
}
.layers_caption{
  font-size: calc(var(--index) * 3.2);
  letter-spacing: calc(var(--index) / 3.5);
  margin-top: calc(var(--index) * .75);
  text-shadow: 10px 10px 14px rgb(0, 0, 0);
}
.layers_caption_book{
  width: calc(var(--index) * 23);
  margin: 0 auto 0 auto;
  color: #fffffe;
  line-height: 1.1;
  font-size: calc(var(--index) * 1.6);
  font-family: 'MyCustomFont2', sans-serif;
  text-shadow: 0px 0px 15px rgba(0,0,0,255);
  -webkit-text-stroke: 3px rgba(29, 29, 29, 0.104);
  /* background: #353d4d;
  background:  radial-gradient(circle,rgba(53, 61, 77, 0.71) 7%, rgba(167, 179, 196, 0.48) 100%); */
  background: #242429;
  background: radial-gradient(circle,rgba(36, 36, 41, 0.87) 5%, rgba(189, 191, 199, 0.4) 100%);
  mask-image: radial-gradient(circle, rgb(0, 0, 0) 90%, rgba(0, 0, 0, 0) 100%);
}
.caption_web_button{
  display: flex;
  justify-content: center;
  position: relative;
  /* width: 300px; */
  z-index: 102;
  margin: 0 auto 0 auto;
}
.caption_web_img{
  width: 120px;
  margin-left: -90px;

}
.caption_web{
  width: 250px;
  height: 50px;
  margin: auto 0 auto 0;
  border-radius: 12px;
  background: #080547;
  background: linear-gradient(90deg,rgba(8, 5, 71, 1) 0%, rgba(9, 9, 121, 0.89) 35%, rgba(0, 136, 255, 0.46) 100%);
  /* background: #353d4d;
  background:  radial-gradient(circle,rgba(53, 61, 77, 0.71) 7%, rgba(167, 179, 196, 0.48) 100%); */
  text-transform: uppercase;
  font-size: 30px;
  padding: 10px 0px 10px 30px;
  text-decoration: none;
  display: table;
  border: none;
  cursor: pointer;
  font-family: 'MyCustomFont2', sans-serif;
  text-align: left;
  color: #fff;
  
}
.caption_web:hover {
  background: #706a15;
  background: linear-gradient(90deg, rgba(255,219,51,255) 0%, rgba(255,255,0,255) 35%, rgba(255, 255, 0, 0.46) 100%);
  /* background: linear-gradient(180deg, rgba(255,219,51,255) 45%, rgba(255,255,0,255) 100%); */
  color: black;
}
.main_article{
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}
.main_article_content_img{
  width: 400px;
  height: 300px;
  object-fit: cover; 
  margin: 10px auto 0 auto;
  text-align: center;
}
.main_article_header{
  /* background: #353d4d;
  background:  radial-gradient(circle,rgba(53, 61, 77, 0.71) 7%, rgba(167, 179, 196, 0.48) 100%); */
  text-transform: uppercase;
  font-size: calc(var(--index) * 2.2);
  font-family: 'MyCustomFont3', sans-serif;
  letter-spacing: calc(var(--index) / 9);
  text-align: center;
  /* width: ; */
  width: 70%;
  margin: 0 auto 170px auto;
  padding: 30px 40px 10px 40px;
  color: rgba(255,219,51,255);
  text-shadow: 0 0 15px rgba(0,0,0,255);
  background: #242429;
  background: radial-gradient(circle,rgba(36, 36, 41, 0.87) 5%, rgba(189, 191, 199, 0.4) 100%);
  mask-image: radial-gradient(circle, rgb(0, 0, 0) 87%, rgba(0, 0, 0, 0) 100%);
}
.main_article_header_text{
  margin-bottom: 50px;
  line-height: 1.2;
}
.main_article_hero_blok{
  align-items: center;
  text-align: center;
}
.main_article_hero_blok_left{
  margin: auto -130px auto 0;
}
.main_article_hero_blok_left_he{
  margin: auto -180px auto 0;
}
.main_article_hero_blok_left_masha{
  margin: auto -230px auto 0;

}
.main_article_hero_blok_right{
  margin: auto 0px auto -60px;
}
.main_article_hero_blok_right_goose{
  margin: auto 0px auto -160px;
}
.main_article_hero{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 500px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  margin-top: calc(var(--index) * 10);
}
.main_article_hero.visible {
  opacity: 1;
  transform: translateY(0);
}
.mask-image{
  width: calc(var(--index) * 34);
  height: auto; /* сохраняет пропорции */
  object-fit: cover;
  pointer-events: none;
}
.heWithe{
    width: calc(var(--index) * 37);
  mask-image: radial-gradient(circle, rgb(0, 0, 0) 18%, rgba(0, 0, 0, 0) 70%);
}
.loraWithe{
  width: calc(var(--index) * 27);
  mask-image: 
      linear-gradient(to left, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(to bottom, rgb(0, 0, 0) 1%, rgba(0, 0, 0, 0) 100%);
  }
.mashaWithe{
  width: calc(var(--index) * 35);
  mask-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgb(0, 0, 0) 1%, rgba(0, 0, 0, 0) 100%);
}
.gooseWithe{
  mask-image: radial-gradient(circle, rgb(0, 0, 0) 19%, rgba(0, 0, 0, 0) 60%);
}
.main_article_hero_text{
  text-transform: uppercase;
  font-size: calc(var(--index) * 1.85);
  letter-spacing: calc(var(--index) / 7.5);
  text-align: center;
  padding: 10px;
  position: relative; 
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  font-family: 'MyCustomFont3', sans-serif;
}
.main_article_botton{
  width: 200px;
  border-radius: 12px;
  background: rgb(24, 23, 23);
  background: linear-gradient(180deg, rgba(0,143,255,1) 45%, rgba(0,207,255,1) 100%);
  text-transform: uppercase;
  font-size: 30px;
  padding: 25px;
  text-decoration: none;
  display: table;
  border: none;
  margin: 30px auto 10px auto;
  cursor: pointer;
  font-family: 'MyCustomFont2', sans-serif;
  text-align: center;
}
.main_article_botton:hover {
  background: linear-gradient(180deg, rgba(255,219,51,255) 45%, rgba(255,255,0,255) 100%);
  color: black;
}
.animation{
  display: flex;
  width: 100%;
  justify-content: center;
}
.left{
  flex: 1;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}
.main_article_hero.visible .left {
  opacity:1;
  transform: translateX(0);
}
.right{
  flex: 1;
  opacity:0;
  transform: translateX(50px);
  transition: opacity 1s ease;
  transform:1s ease;
}
.main_article_hero.visible .right {
   opacity:1;
   transform: translateX(0);
} 
.slider-wrapper {
  overflow: hidden; /* скрываем лишнее */
  position: relative;
  margin: 30px;
}
#textSlider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%; /* каждый слайд занимает всю ширину */
  padding: 20px;
  box-sizing: border-box;
  background-color: #898d9899;
  opacity: 0.85;
  border-radius: 8px;
  margin: 20px auto 20px auto;
  align-self: center;
}
.button_slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: none;
  font-size: 24px;
  color: white;
}
.prev-button {
  left: 10px;
}
.next-button {
  right: 10px;
}

.comment{
  margin: 10px 40px 10px 40px;
}
.comment_name_time{
 display: flex;
 font-family: 'MyCustomFont2', sans-serif;
}
.comment_name{
  color: #bcbccb;
  margin-right: 10px;
  font-weight: 500;
  font-size: 13px;

}
.comment_time{
  color: #bcbccb;
  font-weight: 300;
  font-size: 13px;

}
.comment_text{
  font-family: 'MyCustomFont2', sans-serif;
  /* letter-spacing: calc(var(--index) / 10); */
  color: #dde1ee;
  font-weight: 500;
  overflow-wrap: break-word;
  margin: 7px 0 7px 0;
  font-size: 18px;
  max-height: 100px; /* или другая нужная высота */
  overflow-y: auto;  /* появляется вертикальная полоса прокрутки при переполнении */
  padding-right: 10px; /* чтобы не было обрезки полосы прокрутки */
}
.comment_like{
  color: #bcbccb;
  font-weight: 700;
  font-size: 16px;
}
.book{
  width: 600px;
  height: 600px;
  margin: 70px auto 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card {
  width: 600px;
  height: 600px;
  /* background-image: url(/img/); */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* bottom: calc(var(--index)* -4.5); */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 36px;
  perspective: 2500px;
}
.cover-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 600px;
  /* height: 500px; */
  /* object-fit: cover; */
}
.wrapper {
  height: 600px;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}
.card:hover .wrapper {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}
.wrapper::before,
.wrapper::after {
  content: "";
  opacity: 0;
  width: 100%;
  height: 50px;
  transition: all 0.5s;
  position: absolute;
  left: 0;
}
.wrapper::before {
  /* top: 80px;
  width: 300px;
  height: 400px; */
  background-image: linear-gradient(
    to top,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
  );
}
.wrapper::after {
  bottom: 0;
  opacity: 1;
  background-image: linear-gradient(
    to bottom,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
  );
}

.card:hover .wrapper::before,
.wrapper::after {
  opacity: 1;
}

.card:hover .wrapper::after {
  height: 600px
}
.title {
  position: relative;
  top: 69px;
  height: 400px;
  /* width: 100%; */
  transition: transform 0.5s;
}
.card:hover .title {
  transform: translate3d(0%, -10px, 100px);
}
.character {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* width: 500px; */
  height: 600px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}
.card:hover .character {
  opacity: 1;
  transform: translate3d(0%, -10%, 100px);
}
.botton{
  width: 200px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,143,255,1) 45%, rgba(0,207,255,1) 100%);
  text-transform: uppercase;
  font-size: 30px;
  padding: 25px;
  text-decoration: none;
  display: table;
  border: none;
  margin: 70px auto 10px auto;
  cursor: pointer;
  font-family: 'MyCustomFont2', sans-serif;
  text-align: center;
}
.botton:hover {
  background: linear-gradient(180deg, rgba(255,219,51,255) 45%, rgba(255,255,0,255) 100%);
  color: black;
}
.Web{
  width: 300px;
  display: flex;
  margin: 0px auto 30px auto;
  justify-content: center;
  align-self: center;
  flex-direction: column;
}
.Web_tg{
  width: 80px;
  height: 60px;
  margin: 30px auto 10px auto;
}
.Telegram{
   margin: 0px auto 0px auto;
}
.copy{
  opacity: 0.45;
  font-family: 'MyCustomFont2', sans-serif;
  text-align: center;
  margin: 0 auto 0 auto;
  font-size: 12px;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .spinner_text_comment {
    font-size: calc(var(--index) * 0.6);
    color: rgba(61, 59, 59, 0.684);
  }
  .caption_web_img{
    width: 80px;
    margin-left: -50px;
  }
  .caption_web{
    width: 150px;
    height: 29px;
    font-size: 18px;
    padding: 6px 0px 6px 15px;
  }
  .main_article_content_img{
    margin: 0px auto 0 auto;
    width: 280px;
    height: 150px;
  }
  .main_article_header{
    font-size: calc(var(--index) * 2.5);
    padding: 30px 8px 10px 8px;
    mask-image: radial-gradient(circle, rgb(0, 0, 0) 87%, rgba(0, 0, 0, 0) 100%);
  }
  .main_article_hero{
    margin-top: calc(var(--index) * 2);
  }
  /* .mask-image{
    width: 60%;
  } */
  .heWithe{
    width: calc(var(--index) * 27);
    mask-image: radial-gradient(circle, rgb(0, 0, 0) 18%, rgba(0, 0, 0, 0) 70%);
    /* -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.757) 1%, black 10%); */
  }
  .loraWithe{
    width: calc(var(--index) * 18);
    /* mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 95%, rgba(0,0,0,0) 100%); */
    mask-image: 
    linear-gradient(to left, rgba(0, 0, 0, 0.161) 10%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgb(0, 0, 0) 1%, rgba(0, 0, 0, 0) 100%);
  }
  .mashaWithe{
    width: calc(var(--index) * 31);
  }
   .gooseWithe{
    width: calc(var(--index) * 25);
    mask-image: radial-gradient(circle, rgb(0, 0, 0) 19%, rgba(0, 0, 0, 0) 60%);
   }
  .main_article_hero_text{
    font-size: calc(var(--index) * 1.55);
  }
  .main_article_botton{
    width: 100px;
    font-size: 18px;
    padding: 15px;
  }
  .slider-wrapper {
    margin: 0px;
  }
  .book {
    height: auto;
    flex-direction: column;
  }
  .book{
    width: 300px;
    margin: 0px auto 50px auto;
  }
  .card {
    width: 300px;
    height: 400px;
   margin-top: 70px;
  }
  .wrapper {
    height: 400px;
    margin-top: 70px;
  }
  .cover-image {
    height: 400px;
  }
  .character {
    height: 400px;
  }
  .title {
    top: 69px;
    height: 278px;
  }
  .Web{
    margin: 0px auto 0px auto;
  }
  .botton{
    width: 180px;
    font-size: 25px;
  }
  .Web_tg{
    width: 80px;
    height: 60px;
    margin: 0px auto 0px auto;
  }
  .comment_text{
    font-size: 12px;
  }
  .copy{
    font-size: 8px;
    padding: 5px;
    margin-bottom: 10px;
  }
}