body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-image: linear-gradient(0deg, #022244, #58c8da);
  margin: 0;
}

.about {
   width: 100%;
   background-color: rgba(0, 0, 0, 0.2);
   padding: 5px;
   text-align: center;
   font-size: 24px;
   color: white;
   font-family: sans-serif;
   letter-spacing: 3px;
   font-weight: 300;
   opacity: 0.5;
   bottom: 0;
   position: absolute;
} 

.ocean {
  position: relative;
  width: 100vw;
  height: 100vh;
}



.ocean::after, 
.ocean::before {
  background-color: white;
  width: 120%;
  height: 120px;
  position: absolute;
  content: '';
  top: -80px;
  left: -10%;
  border-radius: 100%;
  animation: waves 10s ease infinite;
  opacity: 0.2;
}

.ocean::before {
  top: -60px;
  animation-delay: 5s;
  opacity: 0.1;
  left: -5%;
}

    @keyframes waves {
      0%, 100% {transform: rotate(-2deg);}
      50% {transform: rotate(2deg);}
    }

.bubbles {
  width: 100%;
  height: 100vh;
  animation: bubbles 10s linear infinite;
}

    @keyframes bubbles {
      0%, 100% {transform: rotate(-5deg);}
      50% {transform: rotate(5deg);}
    }

.bubbles span {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  position: absolute;
  background-color: white;
  bottom: -10%;
  animation: bubble 10s ease-in-out infinite;
}

    @keyframes bubble {
      0% {bottom: -10%; opacity: 0;}
      100% {bottom: 150%;}
    }

.bubbles span:nth-child(1) {
  width: 50px;
  height: 50px;
  opacity: 0.5;
  left: 10%;
  animation-delay: 3s;
  animation-duration: 10s;
  opacity: 0.2;
}

.bubbles span:nth-child(2) {
  width: 30px;
  height: 30px;
  opacity: 0.5;
  left: 40%;
  animation-delay: 1s;
  animation-duration: 5s;
  opacity: 0.1;
}

.bubbles span:nth-child(3) {
  width: 10px;
  height: 10px;
  opacity: 0.5;
  left: 30%;
  animation-delay: 5s;
  animation-duration: 20s;
  opacity: 0.3;
}

.bubbles span:nth-child(4) {
  width: 35px;
  height: 35px;
  opacity: 0.5;
  left: 40%;
  animation-delay: 8s;
  animation-duration: 8s;
  opacity: 0.2;
}

.bubbles span:nth-child(5) {
  width: 45px;
  height: 45px;
  opacity: 0.5;
  left: 60%;
  animation-delay: 10s;
  animation-duration: 15s;
  opacity: 0.1;
}

.bubbles span:nth-child(6) {
  width: 40px;
  height: 40px;
  left: 80%;
  animation-delay: 3s;
  animation-duration: 30s;
  opacity: 0.4;
}

.bubbles span:nth-child(7) {
  width: 15px;
  height: 15px;
  left: 90%;
  animation-duration: 25s;
  opacity: 0.3;
}

.bubbles span:nth-child(8) {
  width: 20px;
  height: 20px;
  left: 50%;
  animation-duration: 10s;
  opacity: 0.2;
}

.fish {
  width: 160px;
  height: 120px;
  border-radius: 100%;
  background-color: orange;
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: inset 0px -6px 0px rgba(0, 0, 0, 0.1);
  animation: fish 67s linear infinite;
}

    @keyframes fish {
    0%  { left: calc(100% + 30px); top: 60%;}
    25% {top: 70%; }
    48% {left: -9%;  top: 70%; transform: scaleX( 1);}
    51% {left: -9%;  top: 70%; transform: scaleX(-1) rotate( 16deg);}
    75% {            top: 50%; transform: scaleX(-1) rotate(-16deg); }
    99% {left: calc(100% + 30px);  top: 60%; transform:scaleX(-1);}
    100%{left: calc(100% + 30px);  top: 60%;transform:scaleX(1);}
    }

/* fish tail */
.fish::after, .fish::before {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: inherit;
  content: '';
  position: absolute;
  top: 30%;
  right: -20px;
  transform: rotate(-20deg);
  z-index: -1;
  animation: tail 2s ease infinite;
}

.fish::before {
  top: 42%;
  transform: rotate(20deg);
}

    @keyframes tail {
    0%, 100% {right: -20px;}
    50% {right: -10px;}
    }

/* rest of the fish */

.fish span {
  content: '';
  position: absolute;
}

/* eyes - white part */
.fish span:nth-child(1), 
.fish span:nth-child(2) {
  border-radius: 100%;
  width: 30px;
  height: 30px;
  background-color: white;
  box-shadow: inset 0px -5px 0px rgba(0, 0, 0, 0.1);
  top: 15px;
  left:-5px;
  z-index: -2;
  border: 1px solid rgba(155, 155, 255, 0.9);
}

.fish span:nth-child(2) {
  z-index: 0;
  left: 16px;
  top: 25px;
}

/* eyes - black part */
.fish span:nth-child(1)::after, 
.fish span:nth-child(2)::after {
  border-radius: 100%;
  width: 10px;
  height: 10px;
  background-color: #2a2a2a;
  content: '';
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  box-shadow: inset 0px 2px 0px rgba(255, 255, 255, 0.5);
  animation: eyes 14s ease infinite;
}

    @keyframes eyes {
      0%, 100% { top: 4px;}
      50% { top: 10px;}
    }

/* mouth */
.fish span:nth-child(3) {
  border-radius: 100%;
  width: 25px;
  height: 15px;
  background-color: brown;
  box-shadow: inset 0px -5px 0px rgba(0, 0, 0, 0.3);
  top: 50px;
  left: -5px;
  z-index: 1;
  transform: rotate(5deg);
  border: solid 5px orange;
  animation: mouth 4s ease infinite;
}

    @keyframes mouth {
      0%, 100% { height: 25px; width: 15px;}
      50% { height: 15px; width: 8px;}
    }

/* fish bubbles */
.fish span:nth-child(4), 
.fish span:nth-child(5),
.fish span:nth-child(6) {
  border-radius: 100%;
  width: 30px;
  height: 30px;
  background-color: white;
  box-shadow: inset 0px 5px 0px rgba(0, 0, 0, 0.3);
  top: 20px;
  left: -30px;
  z-index: -2;
  opacity: 0.3;
  animation: fishbubbles 4s ease infinite;
  z-index: 2;
}

.fish span:nth-child(5) {
  animation-delay: 0.5s;
  width: 20px;
  height: 20px;
}

.fish span:nth-child(6) {
  animation-delay: 1s;
  width: 10px;
  height: 10px;
}

    @keyframes fishbubbles {
      0% { 
        width: 0;
        height: 0;
        top: 70px;
        left: 2px;
      }

      50% {left: -20px;}

      100% {
        top: -80px;
        opacity: 0;
      }
    }

    
    
  /* seaweed */   

.seaweed-wrapper {
  bottom: 0;

  width: 100px;
  height: 40px;
  position: absolute;
  
  left: 100px;
}

.seaweed {
  position: absolute;
  width: 20px;
  height: 40px;
  background: #529e7c;
  box-shadow: 6px 0px 0px #1b6e46 inset;
  border-radius: 0px 120px 0px 120px;
  z-index: 5;
}

.seaweed.one {
  transform: rotate(20deg);
  -webkit-transform: rotate(20deg);
}

.seaweed.two {
  top: -38px;
  left: -2px;
  transform: rotateZ(180deg) rotateY(20deg) rotateX(-30deg);
  -webkit-transform: rotateZ(180deg) rotateY(20deg) rotateX(-30deg);
}

.seaweed.three {
  top: -78px;
  left: -4px;
  transform: rotate(35deg);
  -webkit-transform: rotate(35deg);
}

.seaweed.four {
  top: -116px;
  left: -3px;
  transform: rotateZ(180deg) rotateY(-20deg) rotateX(30deg);
  -webkit-transform: rotateZ(180deg) rotateY(-20deg) rotateX(30deg);
  background: #85c0a4;
}    
    
    
    
    
    
    
    
 
 
 /* seaweed 
 
  
 
 sea weeds
 https://codepen.io/p71six7/pen/ybwEXb
*/
 
 
 
 .seaweed2, .seaweed2-bed {
  align-items: flex-end;
  animation: seaweed-animation 23s ease-in-out infinite alternate;
  bottom: 0;
  display: flex;
  position: absolute;
  width: 110vw;
}
.seaweed2 div, .seaweed2-bed div {
  background: #1E824C;
  box-shadow: 0 0 7px 1px #1E824C;
  bottom: 0;
  height: 100%;
  margin-left: 1vw;
  width: 1px;
}
.seaweed2 div:nth-child(even), .seaweed2-bed div:nth-child(even) {
  height: 90%;
  margin-left: 2.6vw;
}
.seaweed2 div:nth-child(3n+0), .seaweed2-bed div:nth-child(3n+0) {
  height: 70%;
  margin-left: 1.5vw;
}
.seaweed2 div:nth-child(7n+0), .seaweed2-bed div:nth-child(7n+0) {
  height: 60%;
  margin-left: 0.5vw;
}
.seaweed2 div:nth-child(9n+0), .seaweed2-bed div:nth-child(9n+0) {
  height: 66%;
  margin-left: 1vw;
}
.seaweed2 div:nth-child(11n+0), .seaweed-bed2 div:nth-child(11n+0) {
  height: 79%;
  margin-left: 1.1vw;
}
.seaweed2 div:nth-child(12n+0), .seaweed-bed2 div:nth-child(12n+0) {
  height: 83%;
  margin-left: 0.8vw;
}

.seaweed2-bed {
  animation: seaweed-bed-animation 17s ease-in-out infinite alternate;
}

@keyframes seaweed-animation {
  0% {
    height: 30vh;
    left: -0vw;
    opacity: 0.4;
    transform:skewX(-1deg);
  }
  50% {
    left: 0vw;
    height: 32vh;
    opacity: 0.4;
    transform:skewX(-1.50deg);
  }
  100% {
    height: 30vh;
    left: 0vw;
    opacity: 0.4;
    transform:skewX(-2deg);
  }
}
@keyframes seaweed-bed-animation {
  0% {
    height: 31vh;
    opacity: 0.3;
    transform:skewX(1deg);
  }
  50% {
    height: 31.6vh;
    opacity: 0.3;
    transform:skewX(-0deg);

  }
  100% {
    height: 31vh;
    opacity: 0.3;
    transform:skewX(-1deg);
  }
}
 
 
 
 
 
 
 
 /* https://codepen.io/Sarah_Elle/pen/wPXzqa*/
 
.lights {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  animation: lights-animation 13s ease-in-out infinite alternate;
  
}

.ray-1 {
  position: absolute;
  width: 20%;
  height: 155%;
  background: linear-gradient(to bottom left, transparent 0%, #FFFEFF);
  transform: rotate(30deg);
  border-radius: 5% 5% 0 0;
  background-blend-mode: multiply;
  top: -5%;
  left: 0;
  filter: blur(15px);
  opacity: 0.2;
}

.ray-2 {
  position: absolute;
  width: 10%;
  height: 125%;
  background: linear-gradient(to bottom left, transparent 0%, #F9FCFE);
  transform: rotate(25deg);
  border-radius: 5% 5% 0 0;
  background-blend-mode: multiply;
  top: -5%;
  left: 35%;
  filter: blur(10px);
  opacity: 0.2;
}
.ray-2:nth-child(4) {
  left: 53%;
  transform: rotate(20deg);
  opacity: 0.2;
}

.ray-3 {
  position: absolute;
  width: 22%;
  height: 125%;
  background: linear-gradient(to bottom left, transparent 0%, #82FFFD);
  transform: rotate(10deg);
  border-radius: 5% 5% 0 0;
  background-blend-mode: multiply;
  top: -5%;
  left: 68%;
  filter: blur(25px);
  opacity: 0.2;
}
/*    
@keyframes lights-animation {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.5;
  }
}    
    
*/    
    
    
    
    
/* jellyfish */   
    
    .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

.jellyfish,
.leg1,
.leg2,
.leg3,
.leg4,
.leg-cap1,
.leg-cap2,
.leg-cap3,
.leg-cap4,
.features,
.head-left,
.head-right,
.cheeks,
.collar {
   backface-visibility: hidden;
}

.jellyfish {
  position: relative;
  z-index: 3;
  animation: moveRight 15s infinite alternate ease-in-out;
  transform-origin: center center;
}

.jellyfish:nth-of-type(2) {
  position: relative;
  top: 100px;
  left: -80px;
}

// Legs
.leg1,
.leg-cap1 {
  animation: waveLeft 1.6s infinite alternate ease-in-out;
  transform-origin: center center;
}

.leg4,
.leg-cap4 {
  animation: waveRight 1.6s infinite alternate ease-in-out;
  transform-origin: center center;
}

.leg3,
.leg-cap3 {
  animation: flowRight 1.8s infinite alternate ease-in-out;
  transform-origin: center center;
}

.leg2,
.leg-cap2 {
  animation: flowLeft 1.8s infinite alternate ease-in-out;
  transform-origin: center center;
}

// Head
.head-left,
.head-right,
.cheeks,
.collar {
  animation: morph 1.8s infinite alternate-reverse ease-in-out;
  transform-origin: center center;
}

.features {
  animation: scaleDown 1.8s infinite alternate-reverse ease-in-out;
  transform-origin: center center;
}

// Keyframes
@keyframes waveLeft {
  0% {
    tranform: translateY(0px) translateX(0px) rotate(0deg) skew(0) translateZ(0);
  }
  60% {
    tranform: translateY(8px) translateX(2px) rotate(5deg) translateZ(0);
  }
  100% {
    transform: translateY(35px) translateX(12px) rotate(12deg) skew(8deg, 12deg) translateZ(0);
  }
}

@keyframes waveRight {
  0% {
    tranform: translateY(0px) translateX(0px) rotate(0deg) skew(0) translateZ(0);
  }
  60% {
    tranform: translateY(8px) translateX(-2px) rotate(-5deg) translateZ(0);
  }
  100% {
    transform: translateY(35px) translateX(-12px) rotate(-12deg)
      skew(-8deg, -12deg) translateZ(0);
  }
}

@keyframes flowRight {
  0% {
    tranform: translateY(0px) translateX(0) rotate(0deg) skew(-2deg, -5deg) translateZ(0);
  }
  60% {
    tranform: translateY(2px) translateX(2px) rotate(2deg) translateZ(0);
  }
  100% {
    transform: translateY(10px) translateX(3px) rotate(-3deg) skew(1deg, 4deg) translateZ(0);
  }
}

@keyframes flowLeft {
  0% {
    tranform: translateY(0px) translateX(0) rotate(0deg) skew(2deg, 5deg) translateZ(0);
  }
  60% {
    tranform: translateY(2px) translateX(-2px) rotate(-2deg) translateZ(0);
  }
  100% {
    transform: translateY(10px) translateX(3px) rotate(3deg) skew(1deg, 4deg) translateZ(0);
  }
}

@keyframes morph {
  0% {
    transform: skew(0) scale(1) translateZ(0);
  }
  100% {
    transform: skew(-2deg) scale(0.9) translateZ(0);
  }
}

@keyframes scaleDown {
  0% {
    transform: skew(0) scale(1) translateZ(0);
    fill: currentColor;
  }
  100% {
    transform: skew(6deg) scale(0.8) translateZ(0);
    fill: #292a2f !important;
  }
}

@keyframes moveRight {
  0% {
    transform: translateY(0) translateX(0) rotate(0) translateZ(0);
  }
  100% {
    transform: translateY(-80px) translateX(60px) rotate(18deg) translateZ(0);
  }
}

@keyframes showBackground {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.8;
    z-index: 1;
  }
}
