/* 전체 레이아웃 */
body {
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #aee1f9, #c7d6f4);
  text-align: center;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* 시작 배너 이미지 */
.banner {
  max-width: 100%;
  width: 500px;
  margin-bottom: 20px;
  border-radius: 10px;
}

/* 질문 이미지 */
.question-img {
  max-width: 100%;
  width: 500px;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
}

/* 결과 이미지 */
.result-img,
.result-main-img {
  max-width: 100%;
  width: 500px;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
}

/* 상품 이미지 */
.product-img {
  max-width: 100%;
  width: 400px;
  height: auto;
  margin: 10px auto;
  border-radius: 10px;
}

/* Lazy Loading 효과 */
img.lazy {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

img.lazy.loaded {
  filter: blur(0);
}

/* 질문 선택 버튼 */
.options button {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #ff7b54;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.options button:hover {
  background: #ff5722;
}

/* 공통 버튼 스타일 */
.btn,
#start-btn,
#retry-btn,
.product-btn,
.share-section button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff7b54;
  color: white;
  border: none;
  padding: 12px 20px;
  margin: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn img {
  width: 20px;
  height: 20px;
}

.btn:hover,
#start-btn:hover,
#retry-btn:hover,
.product-btn:hover,
.share-section button:hover {
  background: #ff5722;
}

/* 버튼 그룹 정렬 */
.button-group,
.share-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* 버튼 그룹이 다른 요소 위에 오도록 설정 */
.button-group,
.share-section {
  position: relative;
  z-index: 10;
}

/* 혹시 이미지가 클릭을 막는 경우 방지 */
.result-img,
.result-main-img,
.product-img {
  position: relative;
  z-index: 1;
  pointer-events: none;
  /* 이미지 클릭 방지 */
}

/* 결과 설명 */
.result-description,
.result-desc {
  font-size: 16px;
  color: #555;
  margin: 15px 0;
  line-height: 1.5;
}

/* 추천 상품 섹션 */
.product-section {
  margin: 20px 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    width: 95%;
    margin: 10px auto;
    padding: 15px;
  }

  .banner,
  .question-img,
  .result-img,
  .result-main-img {
    width: 100%;
  }

  .product-img {
    width: 90%;
  }

  .options button {
    font-size: 16px;
    padding: 12px;
  }

  .btn,
  #start-btn,
  #retry-btn,
  .product-btn,
  .share-section button {
    font-size: 14px;
    padding: 10px 16px;
  }
}