/* Animating Ko hou  Poem  */
.poem-container {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.animated-poem {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.animated-poem.show {
  opacity: 1;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  font-size: 18px;
  font-weight: inherit;
}

@keyframes disperseParticle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.3);
  }
}

.particle.disperse {
  animation: disperseParticle 1s ease-out forwards;
}
