* {
  margin: 0;
  padding: 0;
  font-family: "Roboto Mono", monospace;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  min-height: 100vh;
}

.image-hang {
  position: relative;
  transform-origin: top center;
  animation: hangFlutter 4s ease-in-out infinite;
  will-change: transform;
}
.image-hang img {
  object-fit: cover;
  display: block;
  transform-origin: top center;
  width: 220px;
  height: 165px;
  object-fit: cover;
}
.images {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.image-hang:nth-child(odd) {
  animation-delay: -1s;
}
.image-hang:nth-child(2n) {
  animation-delay: -2s;
}
.image-hang:nth-child(3n) {
  animation-delay: -3s;
}

.laundry-wrapper {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 120px;
  align-items: center;
}

.clothesline {
  position: relative;
  width: 100%;
}

.line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw; /* 화면 전체 너비 */
  transform: translateX(-50%);
  border-top: 1px solid black;
}

/* 태블릿 */
@media (max-width: 1024px) {
  .image-hang img {
    width: 180px;
    height: 135px;
  }
}

/* 모바일 */
@media (max-width: 768px) {
  .image-hang {
    flex: 0 0 30%;
    animation-duration: 3s;
  }
  .image-hang img {
    width: 35vw;
    height: auto;
    margin: 0;
  }

  .images {
    gap: 40px;
  }
}

@keyframes hangFlutter {
  0% {
    transform: rotateX(0deg);
  }
  25% {
    transform: rotateX(30deg);
  }
  50% {
    transform: rotateX(0deg);
  }
  75% {
    transform: rotateX(20deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}
