/*
#007065
#00a79d
#ACE1DD
#f5c181
#ffeecf
font-family: 'Dancing Script', cursive;
  font-family: 'Josefin Slab', serif;
font-family: 'Livvic', sans-serif; maybe Josefin Sans
*/

body {
  background-color: #ace1dd;
}

* {
  font-family: 'Josefin Sans', sans-serif;
  margin: 0;
  padding: 0;
  transition: right 1s ease-in-out, left 1s ease-in-out, top 1s ease-in-out, bottom 1s ease-in-out, width 1s ease-in-out,
    height 1s ease-in-out;
}

.intro {
  height: calc(75vh - 70px);
  width: 100%;
  overflow: hidden;
  padding-top: 80px;
  position: relative;
  text-align: center;
}

.intro-heading {
  color: white;
}

.title {
  font-family: 'Dancing Script', cursive;
  font-size: 4em;
  margin-bottom: 15px;
}

.caption {
  font-family: 'Josefin Slab', serif;
  font-size: 2em;
}

.sun {
  position: absolute;
  z-index: -2;
  background-color: #ffe882;
  border-radius: 50%;
  transition: inherit;
  border: 1px solid #fff0ad;

  box-shadow: 0 0 0 8px #ffed9b80, 0 0 0 16px #ffed9b40, 0 0 0 24px #ffed9b10;

  animation: rays 2s infinite linear;

  top: 30px;
  right: 20px;
  width: 100px;
  height: 100px;
}

@keyframes rays {
  0% {
    box-shadow: 0 0 0 0px #ffed9b80, 0 0 0 8px #ffed9b80, 0 0 0 16px #ffed9b40;
  }
  100% {
    box-shadow: 0 0 0 8px #ffed9b80, 0 0 0 16px #ffed9b40, 0 0 0 24px #ffed9b10;
  }
}

.birds {
  position: absolute;
  z-index: -1;
  transition: inherit;
  width: 150px;
  top: 250px;
  left: 40px;
}

.island {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 30px;
  transition: inherit;
}

.palmtree {
  animation: rotatetree 20s infinite linear;
  bottom: 12vw;
  height: 320px;
  right: 2%;
  position: absolute;
  transform-box: fill-box;
  transform-origin: bottom center;
  width: 240px;
  z-index: 1;
}

.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.body {
  color: #fff;
}

.ocean {
  position: relative;
  background: linear-gradient(180deg, #00a79d, #003b35);
  min-height: 1000px;
  overflow: hidden;
}

.content {
  display: flex;
}

.section {
  text-align: center;
}

.content-heading {
  font-family: 'Josefin Slab', cursive;
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 12px;
}

.paragraph {
  font-size: 1.3em;
}

.ground {
  bottom: 0px;
  left: 0;
  right: 0;
  max-height: 400px;
  position: absolute;
  width: 100%;
}

.copyright {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.island-waves {
  position: absolute;
  width: 100%;
  bottom: 0;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-size: 1280px 160px;
  z-index: 2;
}

.wave.wave1 {
  background-image: url(/assets/wave1.svg);
  animation: animate1 70s infinite linear;
}
.wave.wave2 {
  background-image: url(/assets/wave2.svg);
  animation: animate2 90s infinite linear;
  animation-delay: 2s;
}
.wave.wave3 {
  background-image: url(/assets/wave3.svg);
  animation: animate1 110s infinite linear;
  animation-delay: 4s;
}

#leaf-t {
  animation: leaf2 5s infinite alternate-reverse;
  transform-box: fill-box;
  transform-origin: bottom center;
}

#leaf-tr {
  animation: leaf1 8s infinite alternate;
  transform-box: fill-box;
  transform-origin: bottom left;
}

#leaf-tl {
  animation: leaf2 8s infinite alternate;
  transform-box: fill-box;
  transform-origin: bottom right;
}

#leaf-bl {
  animation: leaf1 4s infinite ease;
  transform-box: fill-box;
  transform-origin: top right;
}

#leaf-br {
  animation: leaf1 6s infinite linear;
  transform-box: fill-box;
  transform-origin: top left;
}

.fish-container {
  animation: swimming 240s infinite linear;
  position: absolute;
  right: 30px;
  bottom: 50px;
}

.inner-fish-container {
  animation: updown 10s infinite alternate;
}

.lamp-light {
  animation: lamp-light 10s infinite alternate;
  background-color: #fff;
  box-shadow: 0 0 20px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 30px #fff, 0 0 40px #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: absolute;
  top: -8px;
  left: 0px;
}

.sea-devil {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.bubble {
  background-color: #fff3;
  border-radius: 50%;
  border-top: 1px solid #fff6;
  border-left: 1px solid #fff6;
  position: absolute;
  top: 65px;
  left: 20px;
}

#b1 {
  animation: bubble1 3s infinite linear;
  width: 20px;
  height: 20px;
  z-index: 2;
}
#b2 {
  animation: bubble2 4s infinite linear;
  width: 15px;
  height: 15px;
}
#b3 {
  animation: bubble1 5s infinite linear;
  width: 10px;
  height: 10px;
  z-index: 2;
}
#b4 {
  animation: bubble2 3.5s infinite linear;
  width: 23px;
  height: 23px;
}
#b5 {
  animation: bubble1 4.5s infinite linear;
  width: 18px;
  height: 18px;
  z-index: 2;
}
#b6 {
  animation: bubble2 5.5s infinite linear;
  width: 13px;
  height: 13px;
}

#fin {
  animation: fin 4s infinite alternate;
  transform-box: fill-box;
  transform-origin: center left;
}

#rod {
  animation: rod 10s infinite alternate;
  transform-box: fill-box;
  transform-origin: bottom right;
}

@media (min-width: 500px) {
  .palmtree {
    right: 15%;
  }
}

@media (min-width: 900px) {
  .intro {
    height: calc(100vh - 70px);
  }
  .sun {
    top: 50px;
    right: 150px;
    width: 150px;
    height: 150px;
    border-width: 2px;
    box-shadow: 0 0 0 15px #ffed9b80, 0 0 0 30px #ffed9b40, 0 0 0 45px #ffed9b10;
  }

  .birds {
    width: 200px;
    top: 150px;
    left: 100px;
  }

  .island {
    width: 65%;
    left: 15%;
    bottom: 0;
  }

  .palmtree {
    bottom: calc(7vw - 20px);
    height: 400px;
    right: 30%;
    width: 300px;
  }

  .fish-container {
    right: 60px;
    bottom: 100px;
  }

  .ground {
    bottom: -60px;
  }

  .copyright {
    bottom: 30px;
  }

  @keyframes rays {
    0% {
      box-shadow: 0 0 0 0px #ffed9b80, 0 0 0 15px #ffed9b80, 0 0 0 30px #ffed9b40;
    }
    100% {
      box-shadow: 0 0 0 15px #ffed9b80, 0 0 0 30px #ffed9b40, 0 0 0 45px #ffed9b10;
    }
  }
}

@keyframes animate1 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1280px;
  }
}

@keyframes animate2 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -1280px;
  }
}

@keyframes leaf1 {
  0% {
    transform: rotate(0deg) scaleY(1) scaleX(1);
  }
  20% {
    transform: rotate(2deg) scaleY(0.98);
  }
  40% {
    transform: rotate(1deg) scaleY(0.95) scaleX(0.98);
  }
  70% {
    transform: rotate(-2deg) scaleY(0.97);
  }
  100% {
    transform: rotate(0deg) scaleY(1) scaleX(1);
  }
}
@keyframes leaf2 {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes rotatetree {
  0% {
    transform: rotate(15deg);
  }
  30% {
    transform: rotate(17deg);
  }
  50% {
    transform: rotate(15deg);
  }
  70% {
    transform: rotate(13deg);
  }
  100% {
    transform: rotate(15deg);
  }
}

@keyframes bubble1 {
  0% {
    transform: translate3d(0, 0, 0) scale(0);
  }
  33% {
    transform: translate3d(2.8vw, -60px, 0) scale(0.6);
  }
  66% {
    transform: translate3d(6.3vw, -120px, 0) scale(0.8);
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate3d(8.8vw, -180px, 0) scale(1);
    opacity: 0;
  }
}

@keyframes bubble2 {
  0% {
    transform: translate3d(0, 0, 0) scale(0);
  }
  33% {
    transform: translate3d(3.4vw, -70px, 0) scale(0.6);
  }
  66% {
    transform: translate3d(7vw, -140px, 0) scale(0.8);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate3d(10vw, -210px, 0) scale(1);
    opacity: 0;
  }
}

@keyframes updown {
  0% {
    transform: translateY(0) rotate(-10deg);
  }
  20% {
    transform: translateY(10px) rotate(-12deg);
  }
  33% {
    transform: translateY(20px) rotate(-13deg);
  }
  66% {
    transform: translateY(-20px) rotate(-6deg);
  }
  80% {
    transform: translateY(-10px) rotate(-9deg);
  }
  100% {
    transform: translateY(0) rotate(-10deg);
  }
}

@keyframes swimming {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-150vw);
  }
  26% {
    transform: translateX(-150vw) rotateY(180deg);
  }
  50% {
    transform: translateX(0) rotateY(180deg);
  }
  75% {
    transform: translateX(150vw);
  }
  76% {
    transform: translateX(150vw) rotateY(0);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes fin {
  0% {
    transform: translateY(0) scale(1) rotate(0);
  }
  33% {
    transform: translateY(-3px) scale(0.96) rotate(10deg);
  }
  66% {
    transform: translateY(3px) scale(1.03) rotate(-10deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes rod {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(6deg);
  }
  33% {
    transform: rotate(7deg);
  }
  66% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes lamp-light {
  0% {
    filter: blur(20px);
    transform: translate3d(0, 0, 0);
  }
  10% {
    filter: blur(18px);
  }
  20% {
    filter: blur(22px);
    transform: translate3d(7px, -6px, 0);
  }
  33% {
    filter: blur(17px);
    transform: translate3d(6px, -7px, 0);
  }
  40% {
    filter: blur(23px);
  }
  50% {
    filter: blur(19px);
  }
  66% {
    filter: blur(21px);
    transform: translate3d(-3px, 4px, 0);
  }
  70% {
    filter: blur(18px);
  }
  80% {
    filter: blur(22px);
    transform: translate3d(-5px, 5px, 0);
  }
  90% {
    filter: blur(17px);
    transform: translate3d(-5px, 5px, 0);
  }
  100% {
    filter: blur(20px);
    transform: translate3d(0, 0, 0);
  }
}
