body,
html {
  min-height: calc(100% + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  margin: 0;
  height: 100%;
  position: relative;
  background-color: #6F8FA5;
}


#scubaDiver {
  position: absolute;
  left: 25%;
  /* transform: translateX(-50%); */
  /* width: 300px;
  height: 300px; */
  /* background: url('../images/diver1.webp') no-repeat center center; */
  /* background-size: contain; */
  z-index: 1;
  width: 0px;
}

#scubaDiver>img {
  transform-origin: center;
  height: auto;
  width: 250px;
}


#sky {
  background: url('../images/sky.avif') no-repeat center center;
  background-size: cover;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  /* Horizontal centering */
  align-items: center;
  /* Vertical centering */
  overflow: hidden;
}

#sky>h1 {
  position: absolute;
  top: 0px;
  font-family: 'Georgia', serif;
  font-size: 1.75em;
  font-weight: bold;
  color: #000080;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}


#ocean {
  position: relative;
  display: flex;
  justify-content: center;
  /* This centers the child horizontally */
  align-items: start;
  /* This aligns children to the top, you can adjust this as needed */
  height: 3250px;
  /* Adjust height as needed */
  background: linear-gradient(#6F8FA5, darkblue);
  /* Example gradient */
  overflow: hidden;
}

.fish {
  position: absolute;
  width: 100px;
  /* Example size, adjust as needed */
  height: 50px;
  /* Example size, adjust as needed */
  background-size: contain;
  background-repeat: no-repeat;
}

.rightToLeft {
  right: -100px;
  /* Start off-screen to the right */
  /* Other styling similar to the left to right fish */
}


#photo1Trigger {
  position: absolute;
  top: 600px;
}

#photo2Trigger {
  position: absolute;
  top: 800px;
}

#photo3Trigger {
  position: absolute;
  top: 1000px;
}

#photo4Trigger {
  position: absolute;
  top: 1200px;
}

#photo5Trigger {
  position: absolute;
  top: 1400px;
}

#photo6Trigger {
  position: absolute;
  top: 1600px;
}

#photo7Trigger {
  position: absolute;
  top: 1800px;
}

#photo8Trigger {
  position: absolute;
  top: 2000px;
}

#photo9Trigger {
  position: absolute;
  top: 2200px;
}

#photo10Trigger {
  position: absolute;
  top: 2400px;
}

#floatingBubble1 {
  top: 600px;
  left: 30%;
}

#floatingBubble2 {
  top: 800px;
  left: 80%;
}

#floatingBubble3 {
  top: 1000px;
  left: 10%;
}

#floatingBubble4 {
  top: 1200px;
  left: 75%;
}

#floatingBubble5 {
  top: 1400px;
  left: 44%;
}

#floatingBubble6 {
  top: 1600px;
  left: 20%;
}

#floatingBubble7 {
  top: 1800px;
  left: 26%;
}

#floatingBubble8 {
  top: 2000px;
  left: 60%;
}

#floatingBubble9 {
  top: 2200px;
  left: 55%;
}

#floatingBubble10 {
  top: 2200px;
  left: 55%;
}


.bubble {
  width: 100px;
  /* Bubble size */
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  transform: translate(-50%, 50%);
  opacity: 0;
  /* Start with bubble hidden */
  transition: opacity 0.3s;
  background: rgba(255, 255, 255, 0.6);
  /* Semi-transparent white, adjust as needed */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@keyframes sway {

  0%,
  100% {
    transform: rotate(-1deg);
  }

  50% {
    transform: rotate(1deg);
  }
}

#poemPaper {
  position: absolute;
  top: 2500px;
  background: rgba(255, 255, 255, 0.8);
  /* Semi-transparent paper */
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  font-family: 'Times New Roman', serif;
  color: #000;
  text-align: left;
  /* animation: sway 6s ease-in-out infinite; */
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#poemPaper.visible {
  visibility: visible;
  opacity: 1;
}

#poemPaper p {
  font-size: 25px;
  text-align: center;
  line-height: 1.6;
}