html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(ellipse at center, #fffeea 0%, #fffeea 35%, #b7e8eb 100%);
  overflow: hidden;
  font-family: "Lato", sans-serif;
}

/* Ocean and Wave */
.ocean {
  height: 12%;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: #015871;
  z-index: 1;
}

.wave {
  background: url(https://cdn.kcak11.com/codepen_assets/wave_animation/wave.svg) repeat-x;
  position: absolute;
  top: -198px;
  width: 8000px;
  height: 198px;
  animation: wave 10s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
}

.wave:nth-of-type(2) {
  top: -175px;
  animation: wave 10s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite, swell 7s ease -1.25s infinite;
  opacity: 1;
}

@keyframes wave {
  0% { margin-left: 0; }
  100% { margin-left: -1600px; }
}

@keyframes swell {
  0%, 100% { transform: translate3d(0, -25px, 0); }
  50% { transform: translate3d(0, 5px, 0); }
}

.endWave {
  display: none;
}

/* Navbar */
.navbar-container {
  position: fixed;
  top: 35px;
  left: 60px;
  display: flex;
  align-items: center;
  z-index: 999;
}

.square-navbar {
  width: 80px;
  height: 80px;
  background-color: #69d9e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.square-navbar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.square-navbar img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.navbar-text {
  color: black;
  font-size: 48px;
  margin-left: 15px;
  font-weight: bold;
}

.h1 {
  margin-top: 200px;
  font-size: 45px;
  margin-left: 120px;
  z-index: 10;
  position: relative;
}

/* Button Styling */
.button {
  position: relative;
  padding: 14px 40px;
  border-radius: 6px;
  border: none;
  color: #fff;
  cursor: pointer;
  background-color: #2f879f;
  transition: all 0.2s ease;
  margin-left: 170px;
  font-size: 19px;
  z-index: 10;
  position: relative;
}

.button:active {
  transform: scale(0.96);
}

.button:before,
.button:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1000;
  background-repeat: no-repeat;
}

.button:hover:before {
  top: -70%;
  background-image: radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #0B647B 20%, transparent 30%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #0B647B 15%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
    10% 10%, 18% 18%;
  background-position: 50% 120%;
  animation: greentopBubbles 0.6s ease;
}

@keyframes greentopBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
      40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
      50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
      50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%;
  }
}

.button:hover::after {
  bottom: -70%;
  background-image: radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #0B647B 15%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%),
    radial-gradient(circle, #0B647B 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
  background-position: 50% 0%;
  animation: greenbottomBubbles 0.6s ease;
}

@keyframes greenbottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
      70% -10%, 70% 0%;
  }
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
      105% 0%;
  }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
      110% 10%;
    background-size: 0% 0%;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar-container {
    top: 20px;
    left: 20px;
  }

  .navbar-text {
    font-size: 32px;
    margin-left: 10px;
  }

  .h1 {
    margin-top: 160px;
    margin-left: 40px;
    font-size: 32px;
  }

  .button {
    margin-left: 40px;
    font-size: 16px;
    padding: 12px 32px;
  }
}
