body {
  margin: 0;
  padding: 0;
  text-align: center;
  background: url('https://mblogthumb-phinf.pstatic.net/MjAyNTAyMTFfMjMw/MDAxNzM5MjY3MDkxNDY3.OI1OxUBOr4ObwZpbFBTagLt14Wq2Mo6up7Vvb6_-7Ewg.lvW_lAuioU-00sLfsb043UBXw3y_0_irI830LxHp3l8g.JPEG/IMG_1022.jpg?type=w800')
    no-repeat center center fixed;
  background-size: cover;
  -webkit-background-size: cover;
  color: #333;
  font-family: sans-serif;
}
.container {
  width: 90%;
  max-width: 600px;
  padding: 20px;
  background: transparent;
  border-radius: 10px;
  margin: 20px auto;
}
h1, h2, p, button, label, input {
  font-family: sans-serif;
}
.title-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-bottom: 30px;
}
.start-button {
  width: 100%;
  max-width: 300px;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s;
}
.start-button:hover {
  opacity: 0.8;
}
.page {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
#start-page {
  display: flex;
}
.question-container {
  width: 100%;
  margin: auto;
  text-align: center;
}
.question {
  display: none;
}
.question.active {
  display: block;
}
.question label {
  display: block;
  margin: 10px 0;
  font-size: 16px;
  cursor: pointer;
}
#result-text {
  text-align: center;
  word-break: keep-all;
}
.result-title {
  font-size: 20px;
  font-weight: bold;
}
.result-detail {
  font-size: 16px;
  font-weight: normal;
}
button {
  background-color: #a785c7;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s;
  margin-top: 20px;
}
button:hover {
  background-color: #8d69b3;
}
#result-page {
  background: none;
}

/* 모든 이미지에 적용 */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* 시작 페이지, 결과 페이지 이미지 크기 조절 */
.title-image {
  max-width: 80vw; /* 화면 너비의 80%로 제한 */
  height: auto;
}

.start-button {
  max-width: 50vw; /* 화면 너비의 50%로 제한 */
}

/* 결과 텍스트 내 이미지 크기 조절 */
.result-text img {
  max-width: 100%;
  height: auto;
}

/* 모바일 화면에서 폰트 크기와 컨테이너 조정 */
@media screen and (max-width: 768px) {
  .container {
    width: 95%;
    padding: 10px;
  }
  .title-image {
    max-width: 90vw; /* 더 작은 화면에서는 크기 조절 */
  }
  .start-button {
    max-width: 60vw;
  }
}
