
body {
    font-family: 'Yomogi', cursive;
    background-color: beige;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative; /* Ensure relative positioning for petals */
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 10;
}

#userInput {
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background-color: transparent;
    text-align: center;
    transition: border-color 0.3s ease;
    outline: none;
}

#userInput::placeholder {
    color: #bbb;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#userInput:focus {
    border-bottom-color: #999;
}

#userInput:focus::placeholder {
    opacity: 0.5;
}

#output {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
}

#haiku {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

#haiga {
    max-width: 50%;
    height: auto;
    border-radius: 4px;
}

.hidden {
    display: none;
}

#petals-container {
    position: absolute; /* Position petals */
    top: 0; /* Align with the top */
    left: 0; /* Align with the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    pointer-events: none; /* Allow interaction with the container */
}

.petal {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    position: absolute;
    top: -10rem;
    bottom: 0;
    z-index: 150;
    opacity: 0.6; /* Slightly transparent petals */
}
body {
  background: linear-gradient(#FFD7E5, #FFC2D1, #FFB3C7);
  height:100vh;
  width:100vw;
  overflow-y:hidden;
  overflow-x:hidden;
}
.petal {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  position: absolute;
  top: -10rem;
  bottom:0;
  z-index: 150;
}
.petal .rotate {
  animation: driftyRotate 1s infinite both ease-in-out;
  perspective: 1000;
}
.petal .askew {
  background: currentColor;
  transform: skewY(10deg);
  display: block;
  width: 2rem;
  height: 2rem;
  animation: drifty 1s infinite alternate both ease-in-out;
  perspective:1000;
}

.petal {
  color: rgba(0,0,0,0);
}
.petal:nth-of-type(7n) .askew {
  animation-delay: -.6s;
  animation-duration: 2.25s;
}
.petal:nth-of-type(7n + 1) .askew {
  animation-delay: -.879s;
  animation-duration: 3.5s;
}
.petal:nth-of-type(7n + 2) .askew {
  animation-delay: -.11s;
  animation-duration: 1.95s;
}
.petal:nth-of-type(7n + 3) .askew {
  animation-delay: -.246s;
  animation-duration: .85s;
}
.petal:nth-of-type(7n + 4) .askew {
  animation-delay: -.43s;
  animation-duration: 2.5s;
}
.petal:nth-of-type(7n + 5) .askew {
  animation-delay: -.56s;
  animation-duration: 1.75s;
}
.petal:nth-of-type(7n + 6) .askew {
  animation-delay: -.76s;
  animation-duration: 1.5s;
}
  
.petal:nth-of-type(9n) .rotate {
  animation-duration: 2s;
}
.petal:nth-of-type(9n + 1) .rotate {
  animation-duration: 2.3s;
}
.petal:nth-of-type(9n + 2) .rotate {
  animation-duration: 1.1s;
}
.petal:nth-of-type(9n + 3) .rotate {
  animation-duration: .75s;
}
.petal:nth-of-type(9n + 4) .rotate {
  animation-duration: 4.3s;
}
.petal:nth-of-type(9n + 5) .rotate {
  animation-duration: 3.05s;
}
.petal:nth-of-type(9n + 6) .rotate {
  animation-duration: 2.76s;
}
.petal:nth-of-type(9n + 7) .rotate {
  animation-duration: 7.6s;
}
.petal:nth-of-type(9n + 8) .rotate {
  animation-duration: 1.78s;
}

@keyframes drifty {
  0% {
    transform: skewY(10deg) translate3d(-250%, 0, 0);
    display:block;
  }
  100% {
    transform: skewY(-12deg) translate3d(250%, 0, 0);
    display:block;
  }
}
@keyframes driftyRotate {
  0% {
    transform: rotateX(0);
    display:block;
  }
  100% {
    transform: rotateX(359deg);
    display:block;
  }
}
