@charset "utf-8";

/* 언더라인 */
.underline {
  display: inline;                           /* inline도 되고 inline-block도 됩니다 */
  text-decoration-line: underline;
  text-decoration-color: #ffeb3b;
  text-decoration-thickness: 0.5em;         /* 선 두께 */
  text-underline-offset: -0.3em;                /* 0으로 하면 글자 바로 밑에 붙습니다 */
  /* 또는 더 내려붙이고 싶으면 음수: text-underline-offset: -0.05em; */
}



/* 모달 백드롭 */
.wrapper .page {
  position: relative;
}
.wrapper .page > main::before {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}
body.modal-open .wrapper .page > main::before {
  display: block;
}
.modal.modal-bottom .modal-dialog {
  z-index: 1050;
}

/* 1) 숨겨진 상태: 기본 display:none 유지 */
.wrapper .page > main #dialogModal.modal {
  display: none !important;
}

/* 2) .show 일 때 공통 표시 */
.wrapper .page > main #dialogModal.modal.show {
  position: fixed !important;  /* 뷰포트 기준 */
  inset: 0 !important;         /* top:0; right:0; bottom:0; left:0; */
  display: flex !important;
  align-items: center !important;    /* 수직 중앙정렬 */
  justify-content: center !important;/* 수평 중앙정렬 */
  z-index: 1050 !important;
}

/* 3) 실제 대화 상자는 따로 pointer-events 허용 */
.wrapper .page > main #dialogModal.modal.show .modal-dialog {
  pointer-events: all !important;
  margin: 0 !important;
  max-width: 271px;
}



/* FAB 버튼 */
#fab {
  position: fixed;
  bottom: 60px;
  /* right 대신 left 를 JS 로 세팅 */
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  
  /* 테두리 추가 */
  border: 2px solid rgba(0, 0, 0, 0.15);
  
  /* 그림자 조금 진하게 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .3s, visibility .3s, border-color .3s;
  z-index: 1000;
}
#fab.hidden {
  opacity: 0;
  visibility: hidden;
}



/* toast */
.page > #toast {
  position: fixed;
  top: 50%;                    /* 뷰포트 세로 50% 지점 */

  /* ↓ padding, border-radius, box-shadow 조정 */
  display: inline-block;            /* 너비가 내용에 맞춰지고 중앙 정렬 가능 */
  padding: 10px 20px;                /* 상하 8px, 좌우 20px */
  background: rgba(0, 0, 0, 0.7);  /* 좀 더 진한 반투명 배경 */
  color: #fff;
  font-size: 16px;
  line-height: 2;
  text-align: center;               /* 내용 가운데 정렬 */
  white-space: pre-line;


  /* pill 모양 */
  border-radius: 15px;              /* 높이의 절반 이상으로 주면 pill 형태 */
  
  /* 약간 그림자 추가 (옵션) */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 99999;
}
.page > #toast.show {
  opacity: 1;
}


.infoText{
  color:#374151;
  font-size:12px;
  line-height:15px;
  display: none;
  white-space: normal;
  word-break: break-all;
}


/* 네비바 더블클릭 확대 축소 방지 */
#header {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}



/* 앱설치 배너 기본 스타일 */
#install-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  padding: 12px;
  font-size: 14px;
  text-align: center;
  z-index: 1000;
}
#install-banner.show { display: block; }
#install-banner button {
  margin: 0 8px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: #3367D6;
  color: #fff;
  font-size: 14px;
}
#install-banner .close-btn {
  background: transparent;
  color: #333;
  font-weight: bold;
}
#install-banner img { vertical-align: middle; width: 20px; margin: 0 4px; }



/* SIDE 컨텐츠 */
.side .logo{
	display:flex;
	align-items: center;
}
.side .logo img{
	width: 80px;
}
.side .logo .big{
	font-family:'PhotoStudio';
	margin-left: 10px;
    color: #FF7E7E;
    font-size: 65px;
	letter-spacing: 10px;
    font-weight: 600;
}
.side .title{
	margin-top:0px;
}
.side .title .small{
    color: #8BBDFF;
    font-size: 35px;
    font-weight: 600;
	font-family:'PhotoStudio';
}
.side .sub2{
	margin-top: 80px;
	font-size: 18px;
	margin-bottom: 80px;
}
.side .sub2 .depth{
	height: 45px;
}
.side .sub2 .text{
	margin-left: 5px;
    font-weight: 400;
	font-family:'PhotoStudio';
}
.side .sub2 img{
	width: 25px;
}
.side .bottom .description{
	font-size: 22px;
	line-height: 2;
	font-family:'PhotoStudio';
    font-weight: 500;
	text-shadow: 3px 3px 5px rgba(211, 211, 211, 0.8);
}
.side .bottom .blue{
	color: #489CFF;
    font-weight: 600;
}
.side .bottom .red{
	color: #FF0000;
    font-weight: 600;
}
.side .footer .affiliate{
	margin-top:100px;
	height: 100px;
    width: 250px;
	font-size: 20px;
	margin-bottom: 60px;
	font-family:'PhotoStudio';
}
.side .footer .affiliate .title{
	color: #FF9090;
    font-weight: 600;
}
.side .footer .affiliate .email{
    color: #8BBDFF;
    font-weight: 600;
}
.side .footer .affiliate .text{
    color: #7E7E7E;
	font-size: 16px;
}



/* 심리테스트 */
.option-item {
	position: relative; background: #fff;
	border: 1px solid #E0E0E0; border-radius: 12px;
	padding: 16px; margin-bottom: 12px; cursor: pointer;
	transition: all .2s;
	font-size: 1rem;
	line-height: 1.4;
	transition: transform 0.1s ease-out, background-color 0.1s ease-out;
	word-break: break-all;
}
.option-item:active {
  transform: scale(0.96);
  background-color: #f5f5f5;
}
.option-item.selected {
	border-color: #3366FF; background: #E6F0FF;
}
.option-item .bi-check-lg {
	display: none;
	position: absolute; right: 16px; top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem; color: #3366FF;
}
.option-item.selected .bi-check-lg {
	display: block;
}
#question-text {
  font-size: 1.25rem;   /* .fs-5 */
  line-height: 1.4;
  min-height: 5.25rem;  /* 3줄 높이 확보 */
  display: flex;
  align-items: center;
  word-break: break-all;
}
.group-shadow-br-thin {
  -webkit-text-stroke: 0.1px rgba(0,0,0,0.2);   /* 0.1px 얇은 외곽선 */
  text-shadow: 0.1px 0.1px 1px rgba(0,0,0,0.25); /* 오른쪽 아래에만 미세 그림자 */
}
#result-screen .detail-item{
  word-break: break-all;
}



.detail-home {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  opacity: 1;
  visibility: visible;
  z-index: 1000;
  transform: translateY(0);
  border: 24px solid #fff !important;
}

.detail-home.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}



/* 패스백 쿠팡 */
#coupangBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  pointer-events: auto;
}

#coupangBanner {
  position: fixed;
  inset: 0;                    /* top/left/right/bottom:0 */
  display: flex;
  align-items: center;         /* 세로 중앙 */
  justify-content: center;     /* 가로 중앙 */
  z-index: 9999;
  pointer-events: none;        /* 바깥 클릭 무시 */
}

#coupangBanner .coupang-banner-wrapper {
  pointer-events: auto;
}
/* -------------------
   스크롤 잠금용 CSS
   ------------------- */
.no-scroll {
  overflow: hidden;     /* 스크롤바 제거 */
  height: 100vh;        /* 모바일 터치 스크롤 방지 */
  touch-action: none;   /* 터치 스크롤 무력화 */
}