* {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-weight: normal;
  box-sizing: border-box;
}

body {
  padding: 20px;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 20px;
  line-height: 1.7;
  word-break: keep-all;
  background-color: #fdfdfd;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.document {
  padding: 40px;
  max-width: 800px;
  background-color: white;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.letter p {
  color: #111;
  margin: 20px;
  margin-top : 20px;
}

.signature {
  margin-top: 60px;
  text-align: right;
  color: #444;
}

/* ✿ 눈 이펙트 */
.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snow span {
  position: absolute;
  color: #ffb6c1;
  font-size: 16px;
  animation: fall 10s linear infinite;
  opacity: 0.6;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(30px) rotate(360deg);
    opacity: 0;
  }
}

.snow span:nth-child(n) {
  animation-delay: calc(var(--i) * 0.5s);
  animation-duration: calc(9s + var(--i) * 0.5s);
}

/* 각각 다른 위치와 애니메이션 시간 부여 */
.snow span:nth-child(1)  { left: 5%; animation-delay: 0s; animation-duration: 9s; }
.snow span:nth-child(2)  { left: 10%; animation-delay: 2s; animation-duration: 12s; }
.snow span:nth-child(3)  { left: 15%; animation-delay: 4s; animation-duration: 11s; }
.snow span:nth-child(4)  { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.snow span:nth-child(5)  { left: 25%; animation-delay: 3s; animation-duration: 13s; }
.snow span:nth-child(6)  { left: 30%; animation-delay: 2.5s; animation-duration: 9s; }
.snow span:nth-child(7)  { left: 35%; animation-delay: 1.5s; animation-duration: 14s; }
.snow span:nth-child(8)  { left: 40%; animation-delay: 0.5s; animation-duration: 10s; }
.snow span:nth-child(9)  { left: 45%; animation-delay: 1s; animation-duration: 12s; }
.snow span:nth-child(10) { left: 50%; animation-delay: 3.5s; animation-duration: 11s; }
.snow span:nth-child(11) { left: 55%; animation-delay: 0s; animation-duration: 10s; }
.snow span:nth-child(12) { left: 60%; animation-delay: 2s; animation-duration: 9s; }
.snow span:nth-child(13) { left: 65%; animation-delay: 4s; animation-duration: 13s; }
.snow span:nth-child(14) { left: 70%; animation-delay: 3s; animation-duration: 12s; }
.snow span:nth-child(15) { left: 75%; animation-delay: 1s; animation-duration: 10s; }
.snow span:nth-child(16) { left: 80%; animation-delay: 1.5s; animation-duration: 14s; }
.snow span:nth-child(17) { left: 85%; animation-delay: 0.5s; animation-duration: 10s; }
.snow span:nth-child(18) { left: 90%; animation-delay: 2.5s; animation-duration: 11s; }
.snow span:nth-child(19) { left: 95%; animation-delay: 3.5s; animation-duration: 12s; }
.snow span:nth-child(20) { left: 98%; animation-delay: 1.2s; animation-duration: 13s; }

/* 📸 갤러리 기울기 효과 */
.gallery img:nth-child(odd) {
  transform: rotate(-2.5deg);
}

.gallery img:nth-child(even) {
  transform: rotate(2.5deg);
}

.gallery img {
  margin-bottom: 20px;
  border: 2px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
