@font-face {
  font-family: "SuperWoobly";
  src: url(./public/fonts/SuperWoobly.ttf);
}

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

.hero {
  font-family: "SuperWoobly", sans-serif;
  font-size: 2rem;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  color: black;
  background-image: url(./public/images/iceberg-bg.png);
  background-size: cover;
  background-position: center bottom;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

body {
  background: #006da3;
}

.iceberg {
  position: relative;
  z-index: 1;
  margin-top: -150px;
  line-height: 0;
}

.iceberg > img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleY(1.5);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 8%,
    black 25%
  );
}

/* Bubble animation */

.bubble__section {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
  overflow: hidden;
  inset: 0;
}

.bubble__container {
  width: 100%;
  height: 100%;
}

@keyframes animateBubble {
  0% {
    transform: translateY(0%);
    opacity: 0.06;
  }
  100% {
    transform: translateY(-120vh);
  }
}

@keyframes sideway {
  0% {
    margin-left: 0px;
  }
  100% {
    margin-left: 200px;
  }
}

.bubble {
  position: absolute;
  bottom: -60px;

  width: 30px;
  height: 30px;

  border-radius: 50%;
  background: trasnparent;

  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 5px 10px 2px rgba(255, 255, 255, 1);

  animation:
    animateBubble 15s ease-in-out infinite,
    sideway 4s ease-in-out infinite alternate;
}

.bubble::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  box-shadow: inset 0 5px 10px rgba(255, 255, 255, 0.35);
}

.bubble__1 {
  left: 10%;
  animation-delay: 0.5s;
  animation-duration: 16s;
  opacity: 0.5;
}

.bubble__2 {
  width: 40px;
  height: 40px;
  left: 40%;
  animation-delay: 1s;
  animation-duration: 10s;
  opacity: 0.7;
}

.bubble__3 {
  width: 15px;
  height: 15px;
  left: 30%;
  animation-delay: 5s;
  animation-duration: 20s;
  opacity: 0.3;
}

.bubble__4 {
  width: 25px;
  height: 25px;
  left: 20%;
  animation-delay: 8s;
  animation-duration: 17s;
  opacity: 0.5;
}

.bubble__5 {
  width: 30px;
  height: 30px;
  left: 60%;
  animation-delay: 10s;
  animation-duration: 15s;
  opacity: 0.3;
}

.bubble__6 {
  width: 20px;
  height: 20px;
  left: 80%;
  animation-delay: 3s;
  animation-duration: 30s;
  opacity: 0.4;
}

.bubble__7 {
  width: 15px;
  height: 15px;
  left: 90%;
  animation-delay: -7s;
  animation-duration: 25s;
  opacity: 0.5;
}

.bubble__8 {
  width: 30px;
  height: 30px;
  left: 70%;
  animation-delay: -7s;
  animation-duration: 25s;
  opacity: 0.4;
}

.bubble__9 {
  width: 20px;
  height: 20px;
  left: 50%;
  animation-delay: -5s;
  animation-duration: 19s;
  opacity: 0.3;
}

.bubble__10 {
  width: 40px;
  height: 40px;
  left: 30%;
  animation-delay: -7s;
  animation-duration: 25s;
  opacity: 0.7;
}

.bubble__11 {
  width: 30px;
  height: 30px;
  left: 60%;
  animation-delay: -7s;
  animation-duration: 20s;
  opacity: 0.8;
}

/* Content */

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
  position: absolute;
  top: 20%;
  left: 12%;
  width: 70%;
  height: 90%;
}

.grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-grid img {
  z-index: 10;
  width: 70px;
  height: 70px;
  object-fit: contain;
}
