@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('assets/schoolBG.png');
  background-size: cover;
  background-repeat: no-repeat;
  /* background-color: #111;*/
  ;
}

p {
  /* font-family: "Lora", serif; */
  font-family:  serif;
}

h1 {
  color: lightblue;
  /* 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;
}

.chapter{
  position: absolute;

  top: 3%;
  left: 50%;
  translate: -50% -50%;
  z-index: 3;
}
.chapter h5{
  font-family: cursive, 'Times New Roman', Times, serif;
}

.carousel1, .carousel2, .carousel3, .carousel4,
.carousel5, .carousel6, .carousel7, .carousel8,
.carousel9, .carousel10, .carousel11, .carousel12,
.carousel13, .carousel14, .carousel15{
  height: 100vh;
  position: relative;
  background-color: transparent;

}

.filler{
  visibility: hidden;
}

.crystal-ball{
  position: absolute;
  background-color: black;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 8px;
  opacity: 1;
  animation: animate4 13s 2s linear forwards;
  z-index: 1;
}

@keyframes animate4{
  0%{
    opacity: 1;
  }

  100%{
    opacity: 0;
  }
}


.crystal-ball span{
  position: absolute;
  width: calc(200px + var(--i));
  height: calc(200px + var(--i));
  background-color: white;
  left: 60%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  transform-origin: 60px;
  animation: animate3 8s 2s linear infinite;
  animation-duration: calc(var(--d));
  mix-blend-mode: plus-lighter;
  filter:blur(30px);
  overflow: hidden;
}


.crystal-ball span:nth-child(even){
  animation-direction: reverse;
}

@keyframes animate3 {
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}

.ball{
  position: absolute;
  width:200px;
  height: 200px;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background-color: white;
  border-radius: 50%;
  overflow: hidden;
  filter:blur(2px);
  opacity: 1;
  z-index: 1;
  animation: animate5 10s 2s linear forwards;
}
@keyframes animate5 {
  0%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}



.ent0{
  position: relative;
  height: 50%;
  width: 100%;
  background-color: none;
  opacity: 0.7;
  overflow: hidden;
}


.ent0 img{
  position: absolute;
  width: 100%;


  /* inset: 30%; */
  /* translate: -50% -50%; */
}

.glen img{
  position: absolute;
  top:50%;
  left:50%;
  translate: -50% -50%;
  width: 100%;
  height: 100%;
  border-radius: 3%;
  opacity: 1;
  animation: glen 3s 3s ease-in-out forwards;
}
@keyframes glen {
  /* 0% {opacity: 1;}
  25%{opacity: 0.75;}
  50% {opacity: 0.5;}
  75% {opacity: 0.25;} */
  100% {opacity: 0;}

}


#canvas1 {
  position: relative;
  width: 120%;
  /* height: 60%; */

  background-color: transparent;
  z-index: 1;
}
.pronunce {
  color:inherit;
  text-decoration: inherit;
}
.pronunce span:hover{
  color: tomato;
}

.school {
  position: relative;
  opacity: 0.7;
  bottom: -15%;
  left: -0%;
  /* overflow: hidden; */
  /* translate:-50% -50%; */

}

#canvas0{
  position:absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: transparent;

}

span {
  cursor: pointer;
}

.pages span::after {

  content: '';
  position: absolute;
  /* width: .4em;
  height: .4em; */
  /* background-color:white; */
  justify-content: center;
  border: 3px solid transparent;
  border-color: white transparent transparent;
  opacity: .5;
  /* left: -1.25em; */
  /* position: relative; */
}

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(650px + 14vh);
  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{
  font-family: "Times New Roman";
  font-size: 2rem;

  text-align: center;
}

.carousel-control-next-icon {
  width: 5vw;
  height: 5vw;
  background-color: #050b45;
  border-radius: 0% 45% 45% 0%;
  /* position: absolute;
  right: 100px; */
}

.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.5em;
  /* background-color: hsla(62.4 81.7% 93.5% / 0.5); */
  /* background-color: #fff; */
  background-image: url('assets/background.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: 880px;
  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;

  text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.5),
   0 0 0.45em currentColor;
   box-shadow: 0 0 0.2em 0 #fff, 0 0 0.2em 0 #fff;
   z-index: 2;
}

#btn-read::before{
  pointer-events: none;
  content:"";
  position: absolute;
  background: white;
  top: 120%;
  height: 100%;
  left: 0;
  width: 100%;

  transform: perspective(1em) rotateX(40deg)
  scale(1, 0.35);
  filter: blur(1.5em);
  opacity: 0.7;
}
#btn-read::after{
content: "";
position: absolute;
top: 0;
bottom: 0;
left:0;
right:0;

box-shadow: 0 0 2em #fff;
opacity: 0;
}

#btn-read:hover::after{
  opacity: 1;
}
#btn-read:hover::before{
  opacity: 1;
}

#btn-read:hover{
  background: #fff;
  color: #111;
  text-shadow: none;
}

.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%;
}

.intro-one{

  position: absolute;
  top: 100px;
  left: 0;
  color: white;
  /* display: flex; */
}
ul{
  font-size: 1.2em;
  font-family:cursive;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 3px;
}

ul li{

  list-style: none;
  word-spacing: 3px;
  filter: blur(0px);
  animation: animate 3s 2s linear  forwards;
}

@keyframes animate {
  0%{
    transform: rotate(0deg) translateY(0px);
    opacity: 1;
    filter: blur(1px);
  }
  100%{
    transform: rotate(45deg) translateY(-200px);
    opacity: 0;
    filter: blur(20px);
  }

}
.intro-two{

  position: absolute;
  top: 120px;
  left: 0;
  color: white;
  /* display: flex; */
}


.intro-two ul li{

  list-style: none;
  word-spacing: 3px;
  filter: blur(0px);
  opacity: 0;
  animation: animate1 4s 2s ease-in forwards;
}

@keyframes animate1 {
  0%{
    transform: rotate(0deg) translateY(0px);
    opacity: 1;
    filter: blur(0px);
  }
  50% {
    transform: rotate(0deg) translateY(0px);
    opacity: 1;
    filter: blur(1px);
  }
  100%{
    transform: rotate(-45deg) translateY(-200px);
    opacity: 0;
    filter: blur(20px);
  }

}

.vanish{
  opacity :0;
  -webkit-filter: blur(20px);
  filter: blur(20px);
  animation: vanishing 25s 1s ease-in forwards;
}

@keyframes vanishing {
  0% {
    opacity: 0;
    filter: blur(20px);
  }

  100%{
    opacity: 1;
    filter: blur(0);
  }
}
.vanish1{
  opacity:0;
  -webkit-filter: blur(20px);
  filter: blur(20px);
  animation: vanishing1 2s  linear forwards;
}

@keyframes vanishing1 {
  0% {
    opacity: 0;
    filter: blur(20px);
  }

  100%{
    opacity: 1;
    filter: blur(0);
  }
}



.vid {
  position: absolute;
  top: 50%;
  left: 50%;
  /* border-radius: 10px; */

  height: 100%;
  transform: translate(-50%, -50%);
  /* 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.3em;
    padding: 2em 1em;
    min-width: 370px;
    word-spacing: 0.15em;
    height:62%;
  }

  h1{
    font-size: 1.2em;
  }

  .last-page-img {
    width: 10em;
  }

  .book-cover {
    height: calc(525px + 12vh);
    width: calc(375px + 7vw);
  }



  .ent0 img{
    height: 95%;
    position: absolute;
    top:50%;
    left:50%;
    translate: -50% -50%;
  }
  .school {
    position: relative;
    bottom: -6%;
    left: 50%;
    translate:-50% -50%;
  }
  #canvas1 {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
  }

  ul{
    font-size: 1em;
    font-family:cursive;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3px;
  }

}


@media (max-width: 988px) and (max-height: 800px){
  .pages {
    font-size: 1.2em;
    padding: 2em 1em;
    min-width: 390px;
    min-height: 560px;
    word-spacing: 0.13em;
    height:70%;
  }

}



@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;
  }
}

@media (min-width: 900px) and  (max-height: 1370px) {
  .pages {
    font-size: 1.5em;
    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(675px + 12vh);
    width: calc(430px + 7vw);
  }
}