@font-face {
  font-family: "Gulim";
  src: url("./img/Sewer.woff2") format("woff2"),
    url("./img/Sewer.woff") format("woff");
}

html {
  -webkit-text-size-adjust: none;
}

body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

a {
  color: blue;
  text-decoration: underline;
}

/* toggling links*/

@-webkit-keyframes activate {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes activate {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.activateContainer {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  -webkit-animation: activate 0.01s 1;
  animation: activate 0.01s 1;
  animation-fill-mode: forwards;
  animation-play-state: paused;
  cursor: pointer;
  z-index: 40;
}

#activateButton {
  font-size: 0.8em;
  color: blue;
  text-decoration: underline;
  font-family: Gulim, sans-serif;
  text-align: center;
  margin: 5px;
}

/* Scaling mara lago*/

.lagoContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
}

@-webkit-keyframes zoom {
  0% {
    transform: scale(0.0001);
  }
  42.5% {
    transform: scale(1);
  }
  85% {
    transform: scale(0.0001);
  }
  100% {
    transform: scale(0.0001);
  }
}
@keyframes zoom {
  0% {
    transform: scale(0.0001);
  }
  42.5% {
    transform: scale(1);
  }
  85% {
    transform: scale(0.0001);
  }
  100% {
    transform: scale(0.0001);
  }
}

.lago {
  position: fixed;
  width: 4000px;
  transform: scale(0.0001);
  -webkit-animation: zoom 265s infinite; /* Chrome, Safari, Opera */
  animation: zoom 265s infinite;
  animation-play-state: paused;
  animation-delay: 11s;
  transition-timing-function: cubic-bezier(1, 0.01, 0.94, 0.36);
}

#slides {
  width: 60%;
  font-size: 0.8em;
  bottom: 140px;
  left: 40%;
  display: flex;
  justify-content: center;
  font-family: Gulim, sans-serif;
  text-align: center;
  position: fixed;
  padding: 0px;
  margin: 0px;
  list-style-type: none;
  z-index: 9;
}

.slide {
  height: 20px;
  width: 230px;
  position: absolute;
  opacity: 0;
  z-index: 11;
}

.showing {
  opacity: 1;
  z-index: 12;
}

/*moving video*/

#masterMovingVideoContainer {
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.movingVideoContainer {
  top: 44%;
  left: 7px;
  width: 290px;
  height: 164px;
  position: fixed;
  left: 0.5%;
  pointer-events: none;
}

.movingVideo {
  width: 290px;
  height: 164px;
  pointer-events: none;
}

/*panorama*/

@-webkit-keyframes panoramaMovement {
  0% {
    left: -300px;
  }
  60% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes panoramaMovement {
  0% {
    left: -300px;
  }
  60% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.panoramaContainer {
  height: 120px;
  width: 213px;
  overflow: hidden;
  position: fixed;
  bottom: 0em;
  left: -300px;
  z-index: 10;
  -webkit-animation: panoramaMovement 90s infinite;
  animation: panoramaMovement 90s infinite;
  animation-timing-function: linear;
  animation-delay: 45s;
  animation-play-state: paused;
  pointer-events: none;
}

/* paper installation start*/

@-webkit-keyframes paperAnimation {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  22% {
    opacity: 1;
  }
  37% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes paperAnimation {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  22% {
    opacity: 1;
  }
  37% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.paperContainer {
  background: url(./img/IP_art_keenkeen0094.png) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  width: 100%;
  height: 100%;
  opacity: 0;
  position: fixed;
  -webkit-animation: paperAnimation 150s infinite;
  animation: paperAnimation 150s infinite;
  animation-play-state: paused;
  animation-delay: 74s;
  pointer-events: none;
  z-index: 20;
}

@-webkit-keyframes paperFade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  65.0001% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes paperFade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  65.0001% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.paperFillContainer {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  z-index: 11;
  pointer-events: none;
}

.paperFill {
  right: 5%;
  height: 100vh;
  width: 56.25vh;
  position: absolute;
  opacity: 1;
  -webkit-animation: paperFade 100s infinite;
  animation: paperFade 100s infinite;
  animation-timing-function: linear;
  animation-timing-function: ease;
  pointer-events: none;
  z-index: 11;
}

.paperFill iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  pointer-events: none;
}

/* watermills */

@-webkit-keyframes waterPie {
  0% {
    clip: rect(0px, 210px, 650px, 210px);
  }
  17.5% {
    clip: rect(0px, 210px, 650px, 0px);
  }
  33% {
    clip: rect(0px, 0px, 650px, 0px);
  }
  100% {
    clip: rect(0px, 0px, 650px, 0px);
  }
}

@keyframes waterPie {
  0% {
    clip: rect(0px, 210px, 650px, 210px);
  }
  17.5% {
    clip: rect(0px, 210px, 650px, 0px);
  }
  33% {
    clip: rect(0px, 0px, 650px, 0px);
  }
  100% {
    clip: rect(0px, 0px, 650px, 0px);
  }
}

.waterMillPie {
  width: 210px;
  top: 14%;
  right: 0%;
  opacity: 100%;
  position: fixed;
  clip: rect(0px, 450px, 650px, 450px);
  -webkit-animation: waterPie 145s infinite;
  animation: waterPie 145s infinite;
  animation-timing-function: linear;
  animation-delay: 33s;
  animation-play-state: paused;
  z-index: 6;
}

@-webkit-keyframes waterChair {
  0% {
    clip: rect(0px, 180px, 650px, 180px);
  }
  38% {
    clip: rect(0px, 180px, 650px, 180px);
  }
  56.5% {
    clip: rect(0px, 180px, 650px, 0px);
  }
  71% {
    clip: rect(0px, 0px, 650px, 0px);
  }
  100% {
    clip: rect(0px, 0px, 650px, 0px);
  }
}

@keyframes waterChair {
  0% {
    clip: rect(0px, 180px, 650px, 180px);
  }
  38% {
    clip: rect(0px, 180px, 650px, 180px);
  }
  56.5% {
    clip: rect(0px, 180px, 650px, 0px);
  }
  71% {
    clip: rect(0px, 0px, 650px, 0px);
  }
  100% {
    clip: rect(0px, 0px, 650px, 0px);
  }
}

.waterMillChair {
  width: 180px;
  position: fixed;
  bottom: 14%;
  left: 0%;
  opacity: 100%;
  clip: rect(0px, 180px, 650px, 180px);
  -webkit-animation: waterChair 145s infinite;
  animation: waterChair 145s infinite;
  animation-timing-function: linear;
  animation-delay: 33s;
  animation-play-state: paused;
  z-index: 6;
}

.jacob {
  position: fixed;
  bottom: 3px;
  left: 5%;
  font-family: Gulim, sans-serif;
  font-size: 0.27em;
  z-index: 0;
}

.depthText {
  width: 95%;
  top: 7px;
  left: 2.5%;
  margin: 0;
  position: fixed;
  text-align: justify;
  font-size: 0.8em;
  font-family: Gulim, sans-serif;
  line-height: 1.25em;
  color: white;
  list-style-type: none;
  z-index: 5;
}

.depthText + .depthText {
  opacity: 0;
}

/* random position image */

#main {
  width: 90%;
  height: 80%;
  position: absolute;
  z-index: 7;
}

@keyframes wiggleVideoFadeIn {
  0% {
    opacity: 0;
  }
  99.999% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.wigglerContainer {
  height: 90px;
  width: 46px;
  position: fixed;
  -webkit-animation: wiggleVideoFadeIn 8s 1;
  animation: wiggleVideoFadeIn 8s 1;
  animation-fill-mode: forwards;
  pointer-events: none;
  animation-play-state: paused;
  z-index: 4;
}

.wigglerVideo {
  height: 90px;
  width: 46px;
  position: absolute;
  opacity: 1;
  z-index: 4;
}

/* bigger elements */

@media screen and (min-width: 600px) {
  #activateButton {
    font-size: 0.91em;
    color: black;
    text-decoration: none;
  }

  #slides {
    width: 40%;
    font-size: 0.91em;
    bottom: 40%;
    left: auto;
    right: 0%;
  }
  .slide {
    width: 350px;
  }

  .movingVideoContainer {
    width: 800px;
    height: 452px;
    left: 7px;
    top: auto;
    bottom: 5%;
  }

  .movingVideo {
    width: 800px;
    height: 452px;
  }

  .panoramaContainer {
    height: 140px;
    width: 248px;
  }

  .paperContainer {
    background: url(./img/IP_art_keenkeen0093.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    width: 100%;
    height: 100%;
  }

  .paperFill {
    right: 14%;
  }

  /* watermills */

  @-webkit-keyframes waterPie {
    0% {
      /* opacity: 1; */
      clip: rect(0px, 450px, 650px, 450px);
    }
    17.5% {
      /* opacity: 0; */
      clip: rect(0px, 450px, 650px, 0px);
    }
    33% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
    100% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
  }

  @keyframes waterPie {
    0% {
      /* opacity: 1; */
      clip: rect(0px, 450px, 650px, 450px);
    }
    22.5% {
      /* opacity: 0; */
      clip: rect(0px, 450px, 650px, 0px);
    }
    43% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
    100% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
  }

  .waterMillPie {
    width: 450px;
  }

  @-webkit-keyframes waterChair {
    0% {
      /* opacity: 1; */
      clip: rect(0px, 400px, 650px, 400px);
    }
    51% {
      /* opacity: 1; */
      clip: rect(0px, 400px, 650px, 400px);
    }
    74.5% {
      /* opacity: 0; */
      clip: rect(0px, 400px, 650px, 0px);
    }
    94% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
    100% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
  }

  @keyframes waterChair {
    0% {
      /* opacity: 1; */
      clip: rect(0px, 400px, 650px, 400px);
    }
    51% {
      /* opacity: 1; */
      clip: rect(0px, 400px, 650px, 400px);
    }
    74.5% {
      /* opacity: 0; */
      clip: rect(0px, 400px, 650px, 0px);
    }
    94% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
    100% {
      /* opacity: 1; */
      clip: rect(0px, 0px, 650px, 0px);
    }
  }

  .waterMillChair {
    width: 400px;
    clip: rect(0px, 400px, 650px, 400px);
  }

  .jacob {
    font-size: 0.3em;
    left: auto;
    right: 25%;
  }

  .depthText {
    font-size: 0.91em;
    width: 450px;
    top: 15px;
    left: 20%;
  }

  .wigglerContainer {
    height: 130px;
    width: 67px;
  }

  .wigglerVideo {
    height: 130px;
    width: 67px;
  }
}
