/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Courier Prime', serif;
  background-color: #f5f0e6;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 봉투 전체 영역 */
.envelope-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* 배경 편지 봉투 이미지 */
.envelope-image {
  width: 100%;
  height: 100%;
}

/* 도장 이미지 */
#stamp-wrapper {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
}
#stamp-image {
  width: 20vw;
  max-width: 300px;
  height: auto;
  transition: transform 0.2s ease;
}
#stamp-image:hover {
  transform: scale(1.05);
}

/* 하단 텍스트 */
#bottomTextImage {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 2;
  pointer-events: none;
}

/* 모달 */
#info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#info-modal.hidden {
  display: none;
}

#modal-content {
  background-image: url('./assets/01_index/intro-box1.png'); /* 🖼 이미지 파일명 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  width: 80vw;
  max-width: 600px;
  aspect-ratio: 1 / 1; /* 925x925 비율 유지 */
  position: relative;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

#modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  cursor: pointer;
}

#startDrawingBtn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

#close-img {
  width: 15px;
}

#startDrawingBtn img {
  width: 200px;
  height: auto;
  transition: transform 0.2s ease;
}

/* 반응형 보정 */
@media screen and (max-width: 768px) {
  #stamp-image {
    width: 32vw;
  }
  #modal-content {
    width: 90%;
    padding: 20px;
  }
}
