@import url('https://fonts.googleapis.com/css2?family=Lora:ital@1&family=Merriweather&display=swap');

* {
  padding: 0;
  margin: 0;
  user-select: none;
}

body {
  position: relative;
  /* background-image: url('bg.jpg'); */
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  /* background-color: #111;*/
  
}

.bg-img{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  /* z-index: ; */
}

.cave{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

#c2 {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
  animation: fade 3s 1s ease-out forwards;
}

@keyframes fade {

   0%{
    opacity: 1;
   }
   100%{
    opacity: 0;
   }
  
}

.filler{
  visibility: hidden;
}

p {
  /* font-family: "Lora", serif; */
  font-family: "Merriweather", serif;
}

h1 {
  color: blue;
  /* text-shadow: 3px 2px 2px  black; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 3em;
  z-index: 10;
  font-size: 2em;
}

h1 span {
  opacity: 0;
  display: inline-block;
  filter: blur(1px);
  animation: smoke 1.5s linear forwards;
}

@keyframes smoke {
  0% {
    opacity: 0;
    transform: rotateY(90deg);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: rotateY(0);
    filter: blur(0);
  }
}

.by {
  font-size: 0.5em;
  color: gold;
}

.carousel1, .carousel2, .carousel3, .carousel4,
.carousel5, .carousel6, .carousel7, .carousel8,
.carousel9, .carousel10, .carousel11, .carousel12,
 .carousel13, .carousel14, .carousel15, .carousel16,
  .carousel17, .carousel18, .carousel19, .carousel20,
  .carousel21, .carousel22, .carousel23, .carousel24,
  .carousel25, .carousel26, .carousel27, .carousel28,
  .carousel29, .carousel30, .carousel31{
  height: 100vh;
  position: relative;
  background-color: transparent;

}

span {
  cursor: pointer;
}

.pages span::after {

  content: '';
  position: absolute;
  
  justify-content: center;
  border: 3px solid transparent;
  border-color: white transparent transparent;
  opacity: .5;
 
}

span:hover {
  color: white;
}

span::before {
  content: attr(data-content);
  position: absolute;
  /*color: white;*/
  font-size: 1.3em;
  display: inline-block;
  border: 2px solid white;
  background-color: #050b45;
  top: -1px;
  border-radius: 10px 10px;
  opacity: 0;
  filter: Alpha(opacity=0);
  /*window8*/
  white-space: nowrap;
  transition-property: opacity color;
  transition-timing-function: ease-out;
  transition-duration: 1s;
  transition-delay: .2s;
  -webkit-transition: opacity color 1s ease-out;
  -moz-transition: opacity color 1s ease-out;
  -o-transition: opacity color 1s ease-out;
}

span:hover::before {
  opacity: 1;
  filter: Alpha(opacity=100);
  /*color:white;*/
  transform: translateX(-25%);
  padding: 0px 4px;
}

.lab {
  position: absolute;
  color: white;
  top: 2%;
  left: 2%;
  font-size: 0.7rem;
  opacity: 0.5;
}

.end {
  position: absolute;
  font-size: 3em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  animation: fade-in 2s forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.book-cover {
  height: calc(550px + 12vh);
  width: calc(440px + 14vw);
  /* background-color: brown; */
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  border-radius: 15px;
  border: 5px inset white;

  background-size: cover;
  overflow: hidden;

}
.chapter h4{
  font-family: "Times New Roman";
  font-size: 2rem;
  
  text-align: center;
}

.chapter h6{
    position: relative;
    font-family: "Times New Roman";
    font-size: 0.5rem;
    text-align: center;
    margin-top: auto;
    bottom: 20px;
    margin: 0;

    
}

.carousel-control-next-icon {
  width: 5vw;
  height: 5vw;
  background-color: #050b45;
  border-radius: 0% 45% 45% 0%;
 
}

.carousel-control-prev-icon {
  width: 5vw;
  height: 5vw;
  background-color: #050b45;
  border-radius: 45% 0% 0% 45%;

}

.nav-btn {
  visibility: hidden;
}

.pages {
  font-size: 1.4em;
  background-color: hsla(62.4 81.7% 93.5% / 0.9);
  /* background-image: url('assets/bg2.png'); */
  background-size: cover;
  /* background-repeat: no-repeat; */
  padding: 2em 1em;
  line-height: 2;
  /* word-spacing: 0.5em; */
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px outset white;
  border-radius: 15px;
  max-width: 550px;
  max-height: 780px;
  opacity: 1;
  text-align: justify;

  /* justify-content: space-between; */
}

.page-number {
  color: darkgray;
  position: absolute;
  font-weight: bolder;
  left: 50%;
  bottom: 1%;
  font-size: 0.7em;
}

.main-container {
  background-color: transparent;
  height: 100vh;
}

.line-indent{
  text-indent:20px;
}

.Oo {
  font-size: 50px;
  padding: 0;
  margin: 0;
  line-height: 1;
  /* font-style: oblique; */
  font-family: serif;
}

#btn-read {
  position: absolute;
  border-radius: 10px;
  border-color: #FFF;
  right: 10px;
  top: 10px;
  color: #fff;
  background-color: transparent;
}

.last-page {
  text-align: center;
  background-color: white;
}

.last-page-img {
  width: 15em;
  border-radius: 15%;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  background-color: green;
  height: 100%;
}

.vid {
  position: absolute;
  top: 0;
  left: 0;
  /* border-radius: 10px; */

  height: 100%;
  transform: translateX(-40%);
  /* width: 100%; */
  /* background-size: cover; */
}

.vid2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  /* border-radius: 10px; */
  /* height: 150%; */
  width: 100%;
}

.vid3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 130%;
  /* transform: translateX(-30%); */
}


@media (max-width: 988px) {
  .pages {
    font-size: 1.04em;
    padding: 2em 1em;
    min-width: 370px;
    word-spacing: 0.15em;
    height:69%;
  }

  h1{
    font-size: 1.2em;
  }

  .last-page-img {
    width: 10em;
  }

  .book-cover {
    height: calc(475px + 12vh);
    width: calc(375px + 7vw);
  }
}
@media (max-width: 988px) and (max-height: 1185px){
    .pages {
      font-size: 1.45em;
      padding: 1em 1em;
      min-width: 510px;
      min-height: 680px;
      word-spacing: 0.13em;
      /* height:%; */
    }

    .book-cover {
      height: calc(675px + 12vh);
      width: calc(475px + 7vw);
    }
}

@media (max-width: 770px){
  .pages {
    font-size: 1.4em;
    padding: 1em 1em;
    min-width: 530px;
    min-height: 690px;
    word-spacing: 0.13em;
    /* height:%; */
  }
}

@media(max-width: 450px){
  .pages {
    font-size: 1.2em;
    padding: 1em 1em;
    min-width: 390px;
    min-height: 650px;
    word-spacing: 0.11em;
    /* height:%; */
  }
  .book-cover {
    height: calc(675px + 12vh);
    width: calc(375px + 7vw);
  }

  #btn-read{
    top: 15px;
    right: 15px;
  }

 

}
