@media screen and (max-width: 699px) {
  body .poem-container.poem-container {
    z-index: 500;
    position: absolute;
    top: 80px; /* Adjusted as needed */
    left: 50%; /* Start halfway across the parent */
    transform: translateX(-50%); /* Shift back by own half width */
    display: flex;
    flex-direction: column; /* Ensure lines wrap vertically */
    align-items: center; /* This will center the text horizontally within the flex container */
    justify-content: center;
    overflow-x: hidden;
    padding: 10px; /* Add some padding to prevent the lines from going too close to the edges */
    text-align: center; /* Center the text horizontally */
    overflow-y: hidden; /* Hide vertical scrollbar */
  }
}


.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    overflow-y: scroll;*/
}

/*.empty-space {
    position: relative; 
    height: 60000px; 
}*/

.scene1-firstbg-color {
  background-color: #56FFF9;
  display: block;
  overflow: hidden;
  z-index: 2;
}

.scene1-bg-first {
  float: right;
  width: 60%;
  margin-right: -50px;
  z-index: 3;
}

@keyframes sway {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(3deg);
  }
}



#hearts {
  opacity: 0;
  width: 25%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column; /* Ensure lines wrap vertically */
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  transform: translateX(-50%) scale(1);
  z-index: -1;
  animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1); /* Adjust scaling factor as needed */
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}



.poem-container {
  z-index: 500;
  position: absolute;
  top: 150px;
  left: 320px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column; /* Ensure lines wrap vertically */
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 10px; /* Add some padding to prevent the lines from going too close to the edges */
  text-align: center; /* Center the text horizontally */
  overflow-y: hidden; /* Hide vertical scrollbar */
  overflow-x: hidden; /* Hide horizontal scrollbar */
}


.poem_line {
  z-index: 500;
  font-family: 'Nunito Sans', sans-serif;
  color: #402d2d;
  font-weight: 800;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0;
  padding: 0;
  animation-name: floating;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  word-wrap: break-word; /* Add this line to prevent words from breaking apart */
}


.poem_line .letter {
  z-index: 500;
  display: inline-block;
  line-height: 1em;
}

.word {
  white-space: nowrap;
}

@keyframes floating {
  0% { transform: translate(0, 0px); }
  50% { transform: translate(0, 15px); }
  100% { transform: translate(0, -0px); }
}

.cloud {
  position: fixed;
  top: 60px;
  left: 0;
  width: 400px;
  z-index: 1;
  animation: moveCloud 30s linear infinite;
}

@keyframes moveCloud {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 100px));
  }
}
