* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: typewriter;
  src: url(fonts/JMH\ Typewriter.otf);
}

@font-face {
  font-family: typewriter-fat;
  src: url(fonts/JMH\ Typewriter-Bold.otf);
}

@keyframes slideup {
  0% {
    top: 0;
  }

  100% {
    top: -100%;
  }
}

@keyframes typewriter {
  from {
    max-width: 0;
  }
  to {
    max-width: 24ch;
  }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url(IMAGES/background6.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transition: transform 2s ease;
  transform: translateY(0);
  box-shadow: 0 0 200px rgba(0, 0, 0, 0.534) inset;
}

.contentsheader{
  color: white;
}

#enterBtn {
  padding: 1em 2em;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  background-color: rgba(0, 0, 0, 0.658);
  border-radius: 5px;
  color: white;
  transition: background-color 0.3s ease;
  font-family: typewriter-fat;
  transition: 0.5s;
}
#enterBtn:hover {
  background: rgb(0, 0, 0);
  scale: 1.2;
}

#overlay.slide-down {
  transform: translateY(100%);
}

.cover {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  background-color: black;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: fixed;
  top: 0;
  left: 0;
}

.cover.start-animation {
  animation: slideup 2s forwards;
  animation-delay: 2s;
  animation-fill-mode: forwards;
}

.cover h1 {
  color: white;
  font-family: typewriter-fat;
  font-size: 100px;
  text-align: center;
  width: 100%;
  position: relative;
  border-right: none;
}

.typewriter-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  margin: 0 auto;
  transition: max-width 0s;
  box-sizing: content-box;
}

.typewriter-text.typewriter-animate {
  animation: typewriter 4s steps(24) forwards;
}

.site {
  display: grid;
  place-content: center;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  transition: background-image 5s ease-in;
  box-shadow: 0 0 200px rgba(0, 0, 0, 1) inset;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.flipbook {
  height: 700px;
  width: 1200px;
  z-index: 1;
}

.flipbook .hard {
  background-image: url(IMAGES/bookcoverback.jpg) !important;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  object-fit: cover;
  border: none;
  display: flex;
  align-items: center;
}

.flipbook .hard img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flipbook .hard h1 {
  text-align: center;
  font-size: 35px;
}

.contents {
  display: flex;
}

.video {
  width: 400px;
  height: 250px;
}

.flipbook .page {
  background-color: white;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.flipbook__contents {
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  font-family: typewriter;
  font-size: 15px;
  padding-right: 70px;
}

.flipbook__contents a {
  color: white;
  text-decoration: none;
}

.flipbook__contents__page__numbers {
  height: 500px;
  width: 5%;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  font-family: typewriter;
  font-size: 15px;
  color: white;
  text-align: center;
}

.flipbook .page h1 {
  text-align: center;
  font-size: 34px;
  font-family: typewriter-fat;
}

.flipbook__page__contents {
  width: 100%;
  height: 500px;
  padding: 50px;
  gap: 15px;
  display: flex;
  flex-direction: column;
}

.flipbook__page__contents p {
  margin-bottom: 20px;
  font-size: 20px;
  font-family: typewriter;
  text-align: justify;
}

.flipbook__header {
  margin-top: -50px;
}

.audioplayer__container {
  position: fixed;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 17px;
}

.audioplayer__container img {
  height: 50px;
  width: 50px;
  cursor: pointer;
}

#myButton img {
  transition: ease-in 0.3s;
}
#myButton img:hover {
  scale: 1.2;
}

#skipButton img {
  transition: ease-in 0.3s;
}
#skipButton img:hover {
  scale: 1.2;
}

.flipbook__contents a {
  transition: ease-in 0.3s;
}

.flipbook__contents a:hover {
  color: yellow;
}

.flipbook__page__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flipbook__page__image img {
  width: 300px;
  height: 200px;
  transition: ease-out 0.5s;
  object-fit: cover;
}
.flipbook__page__image img:hover {
  scale: 1.2;
}

.last__page__image {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  font-size: 25px;
  gap: 20px;
}

.last__page__image img {
  object-fit: cover;
  width: 500px;
  height: 550px;
}

@media only screen and (max-width: 767px) {
  .flipbook {
    width: 350px;
    height: 600px;
  }

  .flipbook .page h1 {
    text-align: center;
    font-size: 15px;
    font-family: typewriter-fat;
  }

  .flipbook .page {
    gap: 5px;
  }

  .flipbook__page__contents p {
    margin-bottom: 2px;
    font-size: 12px;
    font-family: typewriter;
    text-align: justify;
  }

  .flipbook__page__contents {
    width: 100%;
    height: 500px;
    padding: 10px;
    gap: 15px;
    display: flex;
    flex-direction: column;
  }

  .flipbook__page__image img {
    width: 150px;
    height: 150px;
    transition: ease-out 0.5s;
    object-fit: cover;
  }

  .contents {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flipbook__contents__page__numbers {
    display: none;
  }

  .flipbook__contents {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 8px;
    font-family: typewriter;
    font-size: 10px;
    text-align: center;
    padding-right: 0px;
  }

  .video {
    width: 150px;
    height: 150px;
  }

  .contentsheader {
    display: none;
  }

  body p {
    font-size: 11px;
  }

  .last__page__image img {
    object-fit: cover;
    width: 159px;
    height: 375px;
  }

  .cover h1 {
    font-size: 30px;
  }
}
