/**** VARIABLES ****/
/**** FONTS & ANIMATIONS ****/
@font-face {
  font-family: abysso;
  src: url("../fonts/abyssopelagic.otf");
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes load-pulse {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/**** GENERAL ****/
html {
  background-color: rgb(40, 40, 80);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Comfortaa", cursive;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgb(40, 40, 80);
}

h1 {
  margin: 0;
}

#down-indicator {
  font-size: 30px;
  transform: rotateZ(180deg) translateX(50%);
  color: rgb(240, 120, 10);
}

.bounce-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  animation: bounce 3s infinite;
}

#audio-toggle {
  z-index: 400;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 40px;
  font-size: 25px;
  cursor: pointer;
}
#audio-toggle .diamond {
  z-index: 100;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  border: solid 1px rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) translateY(-50%) rotateZ(45deg);
  transition: 0.3s all;
}
#audio-toggle i {
  z-index: 150;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
#audio-toggle .a-on {
  opacity: 1;
}
#audio-toggle .a-off {
  opacity: 0;
  transform: translateX(-107%) translateY(-50%);
}

#audio-toggle.muted .a-on {
  opacity: 0 !important;
}
#audio-toggle.muted .a-off {
  opacity: 1 !important;
}

#audio-toggle:hover .diamond {
  background-color: rgba(240, 120, 10, 0.7);
  transition: 0.3s all;
}

#audio-loading {
  text-align: center;
  width: 100px;
  position: absolute;
  bottom: -50px;
  transform: translateX(-50%);
  animation: load-pulse 1s infinite;
}

#bottom-gradient {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/**** DIVER ****/
#scale {
  z-index: 400;
  width: 1cm;
  height: 1cm;
  border: solid 1px rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translateX(-50%) rotateZ(45deg);
}

.arrow {
  position: absolute;
  width: 0.5cm;
  height: 0.5cm;
  transition: 0.3s all;
  box-sizing: border-box;
  cursor: pointer;
}

.arrow:hover {
  background-color: rgba(240, 120, 10, 0.7);
  transition: 0.3s all;
}

.up-arrow {
  border-left: solid 2px rgba(255, 255, 255, 0.8);
  border-top: solid 2px rgba(255, 255, 255, 0.8);
  top: -0.5cm;
  left: -0.5cm;
}

.down-arrow {
  border-right: solid 2px rgba(255, 255, 255, 0.8);
  border-bottom: solid 2px rgba(255, 255, 255, 0.8);
  top: 1cm;
  left: 1cm;
}

/**** HUD ****/
#hud {
  font-family: abysso, "Comfortaa", sans-serif;
  letter-spacing: 6px;
  display: none;
  z-index: 300;
  position: fixed;
  width: 100vw;
  height: 100vh;
}
#hud #current-zone {
  z-index: 100;
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  text-transform: uppercase;
  font-size: 24px;
}
#hud #depth-info {
  z-index: 100;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 15%;
  font-size: 15px;
}
#hud #zone-info {
  display: none;
  font-family: "Slabo 27px", serif;
  letter-spacing: normal;
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  padding: 0 20px;
  max-width: 400px;
}

/**** DEPTH SIDEBAR ****/
#depth-scaled {
  position: fixed;
  right: 0;
  height: 100%;
  width: 40px;
}
#depth-scaled #marker {
  position: absolute;
  top: 0px;
  height: 2px;
  background-color: white;
}
#depth-scaled .event-mark {
  border-radius: 50%;
  width: 3px;
  height: 3px;
  position: absolute;
  background-color: rgb(240, 120, 10);
  cursor: pointer;
  transition: 0.3s all;
}
#depth-scaled .event-mark:hover {
  transform: scale(3, 3);
  transition: 0.3s all;
}
#depth-scaled div {
  width: 100%;
}
#depth-scaled #epi {
  height: 1.83%;
  background-color: rgb(100, 200, 220);
}
#depth-scaled #meso {
  height: 7.32%;
  background-color: rgb(100, 100, 220);
}
#depth-scaled #bathy {
  height: 27.17%;
  background-color: rgb(80, 80, 200);
}
#depth-scaled #abysso {
  height: 18.3%;
  background-color: rgb(60, 60, 150);
}
#depth-scaled #hadal {
  height: 45.38%;
  background-color: rgb(40, 40, 80);
}

/**** RULER ****/
.ruler-mark {
  z-index: 100;
  position: absolute;
  height: 5px;
  box-sizing: border-box;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.4);
}
.ruler-mark p {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  position: absolute;
  left: 110%;
  top: -16px;
}

/**** SKY ****/
#sky {
  height: 90vh;
  position: relative;
  background: radial-gradient(circle at bottom left, rgb(240, 120, 10) 20%, rgb(180, 20, 220) 70%, rgb(40, 40, 80) 100%);
}
#sky #sun {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  bottom: -100px;
  width: 200px;
  height: 200px;
  background-color: rgb(240, 120, 10);
  background: linear-gradient(to bottom right, rgb(240, 120, 10), rgb(255, 60, 20));
  border-radius: 50%;
  border: solid 1px rgb(240, 120, 10);
}
#sky .title {
  padding: 10px;
  font-family: abysso, "Comfortaa", cursive;
  text-align: center;
  text-transform: uppercase;
  position: absolute;
  top: 45%;
  left: 50%;
  width: 90%;
  transform: translateX(-50%) translateY(-50%);
}
#sky .title h1 {
  letter-spacing: 16px;
  font-size: 100px;
  background: -webkit-linear-gradient(rgb(100, 200, 220), white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#sky .title h1 span {
  display: block;
  font-size: 30px;
  letter-spacing: 8px;
}

/**** ZONES ****/
#all-zones {
  position: relative;
}

#particles-canvas {
  z-index: 90;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 90%;
  left: 0;
}

.zone-container {
  position: relative;
}
.zone-container > h1 {
  display: none;
  font-size: 10px;
}
.zone-container > div {
  display: none;
}

.zone-container::before {
  z-index: 100;
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(0, 0, 0, 0.1);
}

#hadalpelagic::before {
  display: none;
}

.global-container {
  height: 100vh;
}
.global-container #epipelagic {
  border-top: solid 2px rgb(100, 100, 220);
  height: 100cm;
  background-color: rgb(100, 200, 220);
  background: linear-gradient(rgb(100, 200, 220), rgb(100, 100, 220));
}
.global-container #mesopelagic {
  height: 400cm;
  background-color: rgb(100, 100, 220);
  background: linear-gradient(rgb(100, 100, 220), rgb(80, 80, 200));
}
.global-container #bathypelagic {
  height: 1500cm;
  background-color: rgb(80, 80, 200);
  background: linear-gradient(rgb(80, 80, 200), rgb(60, 60, 150));
}
.global-container #abyssopelagic {
  height: 1000cm;
  background-color: rgb(60, 60, 150);
  background: linear-gradient(rgb(60, 60, 150), rgb(40, 40, 80));
}
.global-container #hadalpelagic {
  height: 2497cm;
  background-color: rgb(40, 40, 80);
  background: linear-gradient(rgb(40, 40, 80), rgb(20, 20, 40));
}

/**** EVENTS ****/
.event-container {
  z-index: 200;
  font-family: "Slabo 27px", serif;
  position: absolute;
  width: 500px;
}
.event-container h2 {
  position: relative;
  text-align: center;
  margin: 0;
  font-size: 18px;
  transform: translateY(-50%);
}
.event-container p::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: solid 1px rgb(240, 120, 10);
  background-color: rgb(240, 120, 10);
  box-shadow: 5px -5px rgba(40, 40, 80, 0.8);
  transform: rotateZ(45deg) translateX(-50%);
}
.event-container P {
  opacity: 1;
  font-size: 16px;
  max-width: 400px;
  padding: 10px;
  margin: 15px auto;
  border-top: solid 1px rgba(255, 255, 255, 0.8);
  border-bottom: solid 1px rgba(255, 255, 255, 0.8);
  transform: translateY(0px);
  transition: 0.5s all;
}
.event-container .img-box {
  z-index: 400;
  position: absolute;
  top: -250px;
  left: 50%;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border: solid 2px rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  transform: translateX(-50%) rotateZ(45deg);
  transition: 0.5s all;
  box-shadow: 10px -10px rgba(40, 40, 80, 0.8);
}
.event-container .img-box .img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotateZ(-45deg);
  z-index: 300;
  width: 145%;
  height: 145%;
  background-size: cover;
  background-position: center center;
}

.event-container.hidden .img-box {
  top: -150px;
  width: 20px;
  height: 20px;
  transition: 0.5s all;
}
.event-container.hidden p {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.5s all;
}

@media (max-width: 1400px) {
  #scale {
    top: 30%;
  }
}
@media (max-width: 1000px) {
  #sky .title h1 {
    font-size: 80px;
  }
  .event-container {
    left: 50% !important;
    transform: translateX(-50%);
  }
  .event-container p {
    margin: 5px auto;
  }
  .event-container .img-box {
    top: -150px;
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 750px) {
  #sky .title h1 {
    font-size: 60px;
  }
  .event-container {
    width: 300px;
  }
  .event-container p {
    font-size: 14px;
  }
  #depth-scaled {
    width: 20px;
  }
  #hud #zone-info {
    padding: 0 30px 0 60px;
    width: calc(100% - 90px);
    top: auto;
    bottom: 20px;
  }
}
@media (max-width: 450px) {
  .event-container {
    left: 54% !important;
    width: calc(100% - 80px);
  }
}

/*# sourceMappingURL=main.css.map */
