/* Index page styles */

/* Consolidated media queries */

/* Update these background-related classes */
.background_image,
.background-light-off,
.background-light-on,
.background-about,
.background-abou-crop {
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  /* Use viewport height */
  min-height: 700px;
  /* Set a minimum height */
  object-position: center;
  /* Center the image */
}

/* For mobile screens */
@media screen and (max-width: 767px) {

  .background_image,
  .background-light-off,
  .background-light-on,
  .background-about,
  .background-abou-crop {
    object-fit: cover;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    /* Use viewport height */
    min-height: 700px;
    /* Set a minimum height */
    object-position: center;
    /* Center the image */
  }
}





#music-control {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#music-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

#music-control img {
  width: 30px;
  height: 30px;
}



@media (max-width:991px) {


  .background-about {
    display: block !important;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .grid_container {
    display: none;
  }

  .about_stickers_grid {
    display: grid;
  }
}

/* Background styles for about page */
.background_image,
.background-light-off,
.background-light-on,
.background-about,
.background-abou-crop {
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  object-position: center;
}

/* Mobile styles for about page */
@media screen and (max-width: 767px) {

  .background_image,
  .background-light-off,
  .background-light-on,
  .background-about,
  .background-abou-crop {
    object-fit: cover;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    object-position: center;
  }
}

/* Text and content styles */
.about_text_block {
  max-width: 800px;
  margin: 0 auto;
}

.paragraph-2 {
  margin-bottom: 2rem;
}

/* .additional_info {
  padding: 1.5rem;
  margin: 2rem 0;
} */

.text-block {
  margin-bottom: 1rem;
}

.text-block:last-child {
  margin-bottom: 0;
}


/* Cast page styles */



/* Character cards */


.character {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  flex: 1 1 200px;
  max-width: 200px;



}

.character:hover {
  transform: translateY(-5px);
}

.character:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.character .hotaku {
  transition: all 0.3s ease;
}

.character:hover .hotaku {
  transform: scale(1.05);
}

.avatar-active,
.avatar-inactive {
  transition: opacity 0.3s ease;
}

.character:hover .avatar-inactive {
  opacity: 0;
}

.character:hover .avatar-active {
  opacity: 1;
}

/* Text styles */
/* .character-name {
  margin: 1rem 0;
  font-size: 1.5rem;
  line-height: 1.4;
} */

.text_block_cast {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Layout */
/* .characters-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
} */



.spacer {
  height: 4rem;
}





/* Social links hover effects */
.social-links a {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}





/* Mobile responsiveness for credits page */
@media (max-width: 767px) {
  .person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}



/* Support section styles */
.support-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

.red-hearts {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.red-hearts:hover {
  transform: scale(1.05);
}

.image-support {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.image-support:hover {
  transform: scale(1.02);
}

/* Text styles */
.paragraph {
  margin: 2rem 0;
  font-size: 1.1rem;
}

/* Button styles */
.red-button:hover {
  background-color: red !important;
  transform: translateY(-2px);
}

.white-button:hover {
  background-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

.white-button:active {
  transform: translateY(0);
}

.white-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}



/* Read page styles */

/* Media queries for read page */
@media (min-width:992px) {
  html.w-mod-js:not(.w-mod-ix) [data-w-id="bbeec990-f3f2-2de1-b41a-8c1aff54a83e"] {
    display: none;
    opacity: 0;
  }

  /* html.w-mod-js:not(.w-mod-ix) [data-w-id^="9aa9c979-0490-7b0d-91a8-91901e574d0"],
  html.w-mod-js:not(.w-mod-ix) [data-w-id="b0195eb7-e2a7-dd26-7a52-5dd7d4ee9908"] {
    filter: blur(5px);
    transition: filter 0.2s ease;
  }

  html.w-mod-js:not(.w-mod-ix) [data-w-id^="9aa9c979-0490-7b0d-91a8-91901e574d0"]:hover,
  html.w-mod-js:not(.w-mod-ix) [data-w-id="b0195eb7-e2a7-dd26-7a52-5dd7d4ee9908"]:hover {
    filter: none;
  } */

  html.w-mod-js:not(.w-mod-ix) [data-w-id^="9aa9c979-0490-7b0d-91a8-91901e574d0"],
  html.w-mod-js:not(.w-mod-ix) [data-w-id="b0195eb7-e2a7-dd26-7a52-5dd7d4ee9908"] {
    filter: blur(5px);
  }
}

@media (max-width:991px) {
  html.w-mod-js:not(.w-mod-ix) [data-w-id="8703fc41-a132-8fc5-f554-c47114625b09"] {
    transform: translate3d(-100%, 0, 0) scale3d(1, 1, 1);
  }

  html.w-mod-js:not(.w-mod-ix) [data-w-id="9aa9c979-0490-7b0d-91a8-91901e574d0b"] {
    opacity: 0;
    transform: translate3d(-50px, 0, 0) scale3d(1, 1, 1);
  }
}

/* Act links styling */
.act_link:hover {
  transform: translateY(-2px);
}



/* Text styles */
.act_link[aria-disabled="true"] {
  filter: blur(4px);
  pointer-events: none;
}

.text-block-6 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Layout styles */
.logo-block {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.acts_links {
  width: 100%;
}

/* Mobile responsiveness */


/* Acts page styles */

/* Media queries for acts page */
@media (min-width:992px) {
  html.w-mod-js:not(.w-mod-ix) [data-w-id="bbeec990-f3f2-2de1-b41a-8c1aff54a83e"] {
    display: none;
    opacity: 0;
  }

  html.w-mod-js:not(.w-mod-ix) [data-w-id^="b17466d4-b0a9-4f59-ef3f-ce73b65bfe0"] {
    filter: blur(5px);
  }
}

@media (max-width:991px) {
  html.w-mod-js:not(.w-mod-ix) [data-w-id="8703fc41-a132-8fc5-f554-c47114625b09"] {
    transform: translate3d(-100%, 0, 0) scale3d(1, 1, 1);
  }

  html.w-mod-js:not(.w-mod-ix) [data-w-id="b17466d4-b0a9-4f59-ef3f-ce73b65bfe07"] {
    opacity: 0;
    transform: translate3d(-50px, 0, 0) scale3d(1, 1, 1);
  }
}

/* Scene cards styling */
.scene-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scene-card:hover {
  transform: translateY(-5px);
}

.scene-card:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}



/* Text styles */
.act-text-block {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.scene-text-block {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.date-text-block {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Layout styles */
.scenes-cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.scene-card {
  flex: 1 1 200px;
  max-width: 200px;
}

.scene-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.logo-block {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }


  .scene-card {
    width: 100%;
    max-width: 200px;
  }

  .scene-card img {
    max-width: 200px;
  }

  .act-text-block {
    font-size: 1.1rem;
  }

  .scene-text-block {
    font-size: 0.9rem;
  }

  .date-text-block {
    font-size: 0.8rem;
  }
  .text-block-6 {
    font-size: 1rem;
  }
  .characters-cards {
    flex-direction: column;
    align-items: center;
  }

  .character {
    width: 100%;
    max-width: 200px;
    flex: auto;
    /* margin-left: auto;
    margin-right: auto; */

    
  }
}

/*  page styles */
/* ACT-I styles */

/* --- Begin Act Slider Styles (Shared between act-one and act-two) --- */

/* Base slider styles */
.slider-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.slider-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Glide slider core styles */
.glide__track {
  overflow: visible;
  width: 100%;
}

.glide__slide {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.glide__slide img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 0;
}


/* Controls and buttons */
.controls-container {
  text-align: center;
  margin: 20px 0;
}

.fullscreen-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.fullscreen-btn:active {
  transform: translateY(0);
}

.fullscreen-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Fullscreen mode */
.slider-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background: black;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* Each slide height and width */
.slider-container.fullscreen .glide__slide img {
  max-height: 100vh;
  max-width: 100%;
}

.slider-container.fullscreen+.controls-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
}

/* Image pair layout */
.image-pair {
  display: flex;
  width: auto;
  gap: 0;
  font-size: 0;
  line-height: 0;
  justify-content: center;
}

/* Responsive styles */
@media (max-width: 991px) {

  /* Each slide height and width */
  .slider-container.fullscreen .glide__slide img {
    max-height: 100%;
    max-width: 100%;
  }

  .slider-block {
    padding: 1.5rem;
    max-width: 900px;
  }

  /* 
  .glide__slide img {
    max-height: 600px;
  } */

  .glide__arrow {
    max-width: 150px;
    padding: 6px 9px;
  }



  /* Mobile slider behavior */
  .slider-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 100px);
  }


  .glide {
    display: block;
  }

  .glide__track {
    overflow: visible;
  }

  .glide__slides {
    display: block !important;
    transform: none !important;
  }

  .glide__slide {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .glide__slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    display: block;
  }

  /* .glide__slides img {
    display: block;
    margin-bottom: 5px;
  } */

  .glide__arrows {
    display: none;
  }

  .controls-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  }
}

@media (max-width: 767px) {
  .slider-block {
    padding: 1rem;
    max-width: 700px;
  }

  /* .glide__slide img {
    max-height: 500px;
  } */

  .glide__arrow {
    max-width: 100px;
    padding: 4px 6px;
  }

  .controls-container {
    margin: 15px 0;
  }



}

@media (max-width: 479px) {
  .slider-block {
    padding: 0.5rem;
    max-width: 100%;
  }

  /* .glide__slide img {
    max-height: 400px;
  } */

  .glide__arrow {
    max-width: 80px;
    padding: 3px 4px;
  }

  .controls-container {
    margin: 10px 0;
  }

  .slider-container.fullscreen+.controls-container {
    bottom: 10px;
  }



  .fullscreen-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* --- End Act Slider Styles --- */

/* ACT-II styles */
/* --- Begin act-two.html slider and responsive styles --- */
@media (min-width:992px) {



  /* .navbar {
    display: none;
  } */

  body.act-one .navbar {
    display: none;
  }

  body.act-two .navbar {
    display: none;
  }
}



/* --- End act-two.html slider and responsive styles --- */

/* --- Burger Menu Styles --- */
.menu {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1101;
  background: none;
  border: none;
  position: relative;
  display: none;
}

.burger-line {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.menu.active .burger-line:nth-child(1) {
  transform: translateY(15px) rotate(45deg);
}

.menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.menu.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1100;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto; /* Позволяет скроллить оверлей */
  }

  .overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    max-height: 100vh; /* Ограничивает высоту меню */
    overflow-y: auto;  /* Включает вертикальный скролл */
  }

  .menu-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-bg {
    display: none;
  }

  .menu {
    display: flex;
  }
}

/* Popup styles */
.slider-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.slider-popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #1a1a1a;
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  color: white;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.slider-popup.show .popup-content {
  transform: scale(1);
}

.popup-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ff0000;
  font-weight: bold;
}

.popup-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.popup-arrow {
  font-size: 32px;
  color: #ff0000;
  margin: 10px 0;
}

.popup-button {
  background: #ff0000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-button:hover {
  background: #cc0000;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #ff0000;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #cc0000;
}

/* Arrow Navigation Animation */
.glide__arrow img {
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.glide__arrow--left img {
  transform: translate(-50%, -50%) ;
}

.glide__arrow--right img {
  transform: translate(-50%, -50%) scaleX(-1);
}

.glide__arrow:hover img {
  opacity: 1;
}