/*stop being judgemental of my css, it's all over the place I know...
Is YOUR house clean all the time when no one is there?*/
/*
.preloader {
  align-items: center;
  background: rgb(2, 0, 36);
  background: linear-gradient(180deg, rgba(2, 0, 36, 1) 0%, rgba(58, 41, 58, 1) 38%, rgba(232, 128, 135, 1) 100%);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.2s linear;
  width: 100%;
  z-index: 9998;
  transform: opacity 1s linear;
}
*/
/* page onload */
body {
  opacity: 0;
  transition: opacity 3s;
}

a:link {
  color: #FFDABF;
}

a:hover {
  color: #FA9B9B;
}

a:visited {
  color: #FFDABF;
}

@keyframes spin {
  from {
    transform: rotate(180deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes glitter {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  25% {
    transform: scale(1.6);
    opacity: 1;
  }

  50% {
    transform: scale(0.8);
    opacity: 0;
  }

  75% {
    transform: scale(1.6);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-image: url("./images/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

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

#space {
  position: absolute;
  height: 400vh;
  width: 400vw;
  left: -150vw;
  top: -150vh;
  overflow: hidden;
  transform-origin: 50% 50%;
  animation: spin 500s linear 0s infinite normal;
  -moz-animation: spin 500s linear 0s infinite normal;
  -ms-animation: spin 500s linear 0s infinite normal;
  -o-animation: spin 500s linear 0s infinite normal;
  -webkit-animation: spin 500s linear 0s infinite normal;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #FFF;
  opacity: 0;
  animation: glitter 8s ease-in 0s infinite normal;
  -moz-animation: glitter 8s ease-in 0s infinite normal;
  -ms-animation: glitter 8s ease-in 0s infinite normal;
  -o-animation: glitter 8s ease-in 0s infinite normal;
  -webkit-animation: glitter 8s ease-in 0s infinite normal;
}

.front-iceberg {
  position: absolute;
  top: 5%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 60%;
  padding: 2em;
  z-index: 3;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.bounce-2 {
  animation-name: bounce-2;
  animation-timing-function: ease;
}

@keyframes bounce-2 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

/*back iceberg */

.back-iceberg {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 60%;
  padding: 2em;
  z-index: 2;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}

.bounce-3 {
  animation-name: bounce-3;
  animation-timing-function: ease;
}

@keyframes bounce-3 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}


/*fishy */

#whale,
#canvas {
  top: 50%;
  left: 15%;
}

/* Fish Animation */
.whale {
  overflow: visible;
}

@-webkit-keyframes swim {
  0% {
    margin-left: 100%
  }

  90% {
    margin-left: -200px;
  }

  100% {
    margin-left: -200px;
  }
}

@keyframes swim {
  0% {
    margin-left: 100%
  }

  70% {
    margin-left: -200px;
  }

  100% {
    margin-left: -200px;
  }
}

.whale {
  max-width: 100px;
  max-height: 30.88px;
  margin-left: -100;
  position: absolute;
  animation: swim 30s;
  -webkit-animation: swim 30s;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  animation-timing-function: linear;
  -webkit-animation-timing-function: linear;
}

/**/
@-moz-keyframes bounce {

  0%,
  50%,
  100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }

  25% {
    -moz-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  75% {
    -moz-transform: translateY(-3px);
    transform: translateY(-3px);
  }
}

@-webkit-keyframes bounce {

  0%,
  50%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  25% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  75% {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
  }
}

@keyframes bounce {

  0%,
  50%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  25% {
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  75% {
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
  }
}

/*END Fish Animation*/

#animation_container {
  margin: 25%;

}

#animation_container>* {
  max-width: 100px;
  max-height: 33.8px;
}

/* cranes */

#large-crane,
#small-crane {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  animation: boxAnimation 5s cubic-bezier(0.02, 0.01, 0.31, 1) infinite;
}

#small-crane {
  animation: boxAnimation 6s cubic-bezier(0.02, 0.01, 0.31, 1) infinite;
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

#large-crane {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

#large-crane::after,
#small-crane::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 100%;
  animation: spanAnimation 5s cubic-bezier(0.3, 0.27, 0.07, 1.64) infinite;
  box-shadow: rgba(255, 255, 255, 1) 0 0 20px 2px;
}

@keyframes boxAnimation {
  50% {
    transform: translateY(-150px);
  }
}

@keyframes spanAnimation {
  50% {
    transform: translateX(-150px)
  }
}

#heaven {
  position: absolute;
  z-index: 9995;
  width: 100%;
  height: 40%;
  mix-blend-mode: multiply;
}

.heaven {
  background-image: url(./images/heaven.svg);
  background-position: top left;
  background-repeat: repeat-x;
  background-size: cover;
  filter: blur(4px);
  position: absolute;
  z-index: 9995;
  mix-blend-mode: multiply;
  opacity: .5;
}

.heaven-text {
  font-family: 'Suez One', serif;
  text-align: center;
  color: #FFF;
  font-size: 2em;
  position: absolute;
  z-index: 9997;
  width: 100%;
  text-shadow: 0px 2px 2px rgba(4, 18, 43, 0.8);
}

.heaven-wrapper {
  position: absolute;
  z-index: 9994;
  top: 30%;
  width: 100%;
  height: 80%;
}

.family {
  position: absolute;
  top: 100px;
  left: 100px;
  opacity: .75;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  z-index: 9998;
}

.family:hover {
  -webkit-box-shadow:0px 0px 70px 30px rgba(255,218,191,0.9);
  -moz-box-shadow: 0px 0px 70px 30px rgba(255,218,191,0.9);
  box-shadow: 0px 0px 70px 30px rgba(255,218,191,0.9);
}

.family-glow-1 {
  overflow: hidden;
  transform-origin: 50% 50%;
  -moz-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -ms-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -o-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -webkit-animation: bounce-family 8s ease-in-out 2s infinite normal;
  animation: bounce-family 8s ease-in-out 2s infinite normal;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.family-glow-2 {
  overflow: hidden;
  transform-origin: 50% 50%;
  -moz-animation:  bounce-family 8s ease-in-out 2s infinite normal;
  -ms-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -o-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -webkit-animation: bounce-family 8s ease-in-out 2s infinite normal;
  animation: bounce-family 8s ease-in-out 2s infinite normal;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.family-glow-3 {
  overflow: hidden;
  transform-origin: 50% 50%;
  -moz-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -ms-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -o-animation: bounce-family 8s ease-in-out 2s infinite normal;
  -webkit-animation: bounce-family 8s ease-in-out 2s infinite normal;
  animation: bounce-family 8s ease-in-out 2s infinite normal;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

@keyframes glow {

  from,
  to {
    filter: blur(0px);
  }

  30% {
    filter: blur(1px);
  }
}

.bounce-family {
  animation-name: bounce-family;
  animation-timing-function: ease-out;
}

@keyframes bounce-family {
  0% {
    transform: translateX(0);
    transform: translateY(0);
  }

  50% {
    transform: translateX(-100px);
    transform: translateY(-40px);
  }

  100% {
    transform: translateX(0);
    transform: translateY(0);
  }
}

@media (max-width: 799px) {
  p {
    font-size: .5em;
  }
}

@media (min-width: 800px) {
  p {
    font-size: 1;
  }
}

/* amache */

#amache-wrapper {
  position: absolute;
  z-index: 9994;
  width: 20%;
  padding: 20px;
  left: 40%;
  height: 100%;
}

.amache-background {
  background-image: url(./images/lecture.svg);
  background-repeat: repeat-y;
  background-size: 100%;
  position: absolute;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  z-index: 9995;
  background-position: top left;
  filter: blur(4px);
  opacity: .5;
  mix-blend-mode: multiply;
}

.water-tower {
  position: absolute;
  z-index: 9996;
  width: 100%;
  height: 100%;
  color: #FFF;
  padding: 10px;
  font-family: 'Suez One', serif;
  text-shadow: 0px 2px 2px rgba(4, 18, 43, 0.8);
  text-align: center;
  font-size: 1.2em;
}

.wrappers {
  display: none;
}

#work-wrapper {
  position: absolute;
  z-index: 9994;
  width: 25%;
  padding: 20px;
  left: 10%;
  height: 100%;
}

.work-background {
  background-image: url(./images/sofaraway.svg);
  background-repeat: repeat-y;
  background-size: 100%;
  position: absolute;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  z-index: 9995;
  background-position: top left;
  filter: blur(4px);
  opacity: .5;
  mix-blend-mode: multiply;
}

.work-text {
  position: absolute;
  z-index: 9996;
  width: 100%;
  height: 100%;
  color: #FFF;
  padding: 20px;
  font-family: 'Suez One', serif;
  text-shadow: 0px 2px 2px rgba(4, 18, 43, 0.8);
  text-align: center;
  font-size: 1.5em;
  top: 30%;
}

#family-wrapper {
  position: absolute;
  z-index: 9994;
  width: 100%;
  padding: 20px;
  top: 20%;
  left: 0;
  height: 30%;
}

.family-background {
  background-image: url(./images/fixyou.svg);
  background-position: top left;
  background-repeat: repeat-x;
  background-size: cover;
  position: absolute;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  z-index: 9995;
  background-position: top left;
  filter: blur(4px);
  opacity: .5;
  mix-blend-mode: multiply;
}

.family-text {
  position: absolute;
  z-index: 9996;
  width: 100%;
  top:30%;
  color: #FFF;
  padding: 30px;
  font-family: 'Suez One', serif;
  text-shadow: 0px 2px 2px rgba(4, 18, 43, 0.8);
  text-align: center;
  font-size: 1.5em;
}

/* Loader Styles start here */
.loader-wrapper {
  --line-width: 5px;
  --curtain-color: linear-gradient(180deg, rgba(2, 0, 36, 1) 0%, rgba(58, 41, 58, 1) 38%, rgba(232, 128, 135, 1) 100%);
  --outer-line-color: #000;
  --middle-line-color: rgb(2, 0, 36);
  --inner-line-color: rgb(2, 0, 36);
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:9998;
}

.loader {
  display:block;
  position: relative;
  top:50%;
  left:50%;
/*   transform: translate(-50%, -50%); */
  width:150px;
  height:150px;
  margin:-75px 0 0 -75px;
  border:var(--line-width) solid transparent;
  border-top-color: var(--outer-line-color);
  border-radius:100%;
  -webkit-animation: spin 2s linear infinite;
          animation: spin 2s linear infinite;
  z-index:9999;
}

.loader:before {
  content:"";
  position: absolute;
  top:4px;
  left:4px;
  right:4px;
  bottom:4px;
  border:var(--line-width) solid transparent;
  border-top-color: var(--inner-line-color);
  border-radius:100%;
  -webkit-animation: spin 3s linear infinite;
          animation: spin 3s linear infinite;
}

.loader:after {
  content:"";
  position: absolute;
  top:14px;
  left:14px;
  right:14px;
  bottom:14px;
  border:var(--line-width) solid transparent;
  border-top-color: var(--middle-line-color);
  border-radius:100%;
  -webkit-animation: spin 1.5s linear infinite;
          animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
  0%   { 
    transform: rotate(0deg);
  }
  100% { 
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0%   { 
    transform: rotate(0deg);
  }
  100% { 
    transform: rotate(360deg);
  }
}

.loader-wrapper .loader-section {
  position:fixed;
  top:0;
  background:var(--curtain-color);
  width:51%;
  height:100%;
  z-index:9998;
}

.loader-wrapper .loader-section.section-left {
  left:0
}
.loader-wrapper .loader-section.section-right {
  right:0;
}

/* Loaded Styles */ 
.loaded .loader-wrapper .loader-section.section-left {
  transform: translateX(-100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645,0.045,0.355,1.000);
}
.loaded .loader-wrapper .loader-section.section-right {
  transform: translateX(100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645,0.045,0.355,1.000);
}
.loaded .loader {
  opacity: 0;
  transition: all 0.3s ease-out;
}
.loaded .loader-wrapper {
  visibility: hidden;
  transform:translateY(-100%);
  transition: all .3s 1s ease-out;
}