@charset "utf-8";

/* 차트 */
#myChart{
  width: 100% !important;
  height: 100% !important;
}



/* 언더라인 */
.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; */
}




/* 메인 슬라이더 */
#banner .mainSwiper {
  border-radius: 12px;
  overflow: hidden;
}
#banner .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 5px;
  text-align: center;
}
#banner .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #ccc;
  opacity: 1;
}
#banner .swiper-pagination .swiper-pagination-bullet-active {
  background: #333;
}



/* 모달 백드롭 */
.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) .show 없으면 숨김 */
.wrapper .page > main #dialogModal.modal:not(.show) {
  display: none !important;
}

/* 2) .show 일 때 공통 표시 */
.wrapper .page > main #dialogModal.modal.show {
  display: flex !important;
  position: fixed !important;
  top: 150px !important;           /* 모바일 기본 위치 */
  left: 0; right: 0;
  align-items: flex-start !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 1050 !important;
  transform: none !important;      /* transform 초기화 */
}

/* 3) 대화상자만 클릭 허용 */
.wrapper .page > main #dialogModal.modal.show .modal-dialog {
  pointer-events: all !important;
  margin: 0 auto !important;
  max-width: 271px;
}




/* 메인 아이콘 슬라이더 */
#main .img-list-wrap.swiper {
  overflow: hidden !important;
}
#main .img-list.swiper-wrapper {
  display: flex !important;
  gap: 0;
  white-space: normal;
}
#main .img-list .swiper-slide {
  width: auto !important;
  flex-shrink: 0 !important;
}
#main .img-list .swiper-slide a {
  pointer-events: auto;
}
#main .icon-list2-wrap.swiper {
  overflow: hidden !important;
}
#main .icon-list2.swiper-wrapper {
  display: flex !important;
  gap: 0;
  white-space: normal;
}
#main .icon-list2 .swiper-slide {
  width: auto !important;
  flex-shrink: 0 !important;
}
#main .icon-list2 .swiper-slide a {
  pointer-events: auto;
}



/* 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;
}



/* 홈버튼 바로가기 */
.detail-home {
  position: fixed;
  left: 0;
  right: 0;
  #bottom: 20px;
  bottom: 0;
  width: 100%;
  #width: calc(100% - 40px);
  max-width: 480px;
  margin: 0 auto;
  opacity: 1;
  visibility: visible;
  z-index: 1000;
  transform: translateY(0);
}

.detail-home.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}



/* 타로카드 탭 */
.tarot-tab {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: none;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  margin-top: 5px;
}

.tarot-tab .tab-item {
  position: relative;
}

.tarot-tab .tab-link {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;    
  line-height: 1.2;
}

.tarot-tab .tab-link.active {
  color: #000;
  font-weight: 600;
}
/* 활성 탭 언더바 */
.tarot-tab .tab-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #000;
}



/* 사주정보 입력창 쿠키 span 기본값 */
.cookie{
  display: none;
}



.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;
}



/* 포춘쿠키 */
#fortune-cookie-container{
  max-width: 480px;
}

#fortune-cookie {
  cursor: pointer;
  display: block;
  margin: 0 auto;
  width: 80%;
  transition: none;
}

#fortune-cookie-last{
  display: block;
  margin: 0 auto;
  width: 80%;
}

.cookie_head_text{
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5em;
  color: #FF7E7E;
  text-align: center;
}

.cookie_head_open{
 color: #8BBDFF;
}

.cookie_head_bottom{
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5em;
  color: #C5C2C4;
  text-align: center;
}

.resultText{
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2em;
  text-align: center;
}

.card.result-card{
  background-color:#eff6ff;
}



/* 심리테스트 */
.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;
}
.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;
}