/* page-factory.css */
@import url("notosans-cjk-kr.css");
@import url("common.css");
@import url("animate.css");
@import url("effects.css");
@import url("../vendor/slick/slick.css");
@import url("../vendor/slick/slick-theme.css");
@import url("layout.css");
@import url("comps.css");
@import url("modal.css");
@import url("sub.css");

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap');

.unicode-text {
    font-family: 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif,'Arial Unicode MS';
}



html,
.container {
	background-color: #f4f5fb;
}

.chart-box {
	display: flex;
	padding-bottom: 30px;
}

.container.wholesale .chart-box {
	justify-content: center;
}

.chart-box .chart-item {
	position: relative;
	flex-basis: calc(50% - 10px);
	min-height: 255px;
	padding-top: 24px;
}

.chart-box .chart-item:first-child {
	margin-right: 20px;
}

.container.wholesale .chart-box .chart-item:first-child  {
	flex-basis: 100%;
	margin-right: 0;
}

.chart-box .chart-item .chart-title {
	margin-bottom: 12px;
}

.chart-box .chart-item .chart-title p {
	padding-left: 25px;
	background: transparent url('../img/icons/ico-symbol-pound-bk.png') 0 50%/ 17px 17px no-repeat;
	font: 500 16px/1.4 'noto';
	color: #142331;
}

.chart-box .chart-item .chart-area {
	max-width: 100%;
	margin: 0 auto;
}

.chart-box .chart-item .chart-outer {
	position: relative;
	min-height: 197px;
	padding: 20px 10px 10px 10px;
	border: 1px solid #e5e6ec;
	border-radius: 15px;
	background-color: #fff;
	box-shadow: 0px 0px 20px 1px rgb(0 0 0 / 15%);
}

.reco-box {
	border-bottom: 2px solid #edeef3;
}

.reco-box > .title {
	text-align: center;
}

.reco-box > .title > p {
	font: oblique 500 15px/1.4 'noto';
	color: #777;
}

.reco-area {
	position: relative;
}


.reco-area .reco-list {
	position: relative;
	width: calc(100% - 50px);
	margin: 0 25px;
	padding: 16px 0;
}

.reco-area .reco-item {
	display: inline-block;
	position: relative;
	width: calc(20% - 20px);
	margin: 0 5px;
	background-color:  #fff;
    border-radius: 20px;
	border: 2px solid #e1e1e1;
	cursor: pointer;
}

.reco-area .reco-item:hover {
	border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff),  linear-gradient(145deg, rgba(67,162,255,1) 0%, rgba(36,213,115,1) 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.reco-area .reco-item > .inner {
	position: relative;
	padding: 8px 8px 8px 10px;
}

.reco-area .reco-img-list .reco-item > .inner {
	padding: 0 0 8px 0;
}


.reco-area .reco-item .img-area {
	border-top-left-radius: 17px;
	border-top-right-radius: 17px;
}

.reco-area .reco-item .img {
	padding-bottom: 65%;
}

.reco-area .reco-item .label {
	float: right;
	min-width: 40px;
	padding: 2px 6px;
	background-color: #142331;
	border-radius: 10px;
	font: 500 10px/1 'noto';
	color: #fff;
	text-align: center;
}

.reco-area .reco-img-list .reco-item .label {
	z-index: 10;
	position: absolute;
	float: none;
	right: 6px;
	top: 6px;
}

.reco-area .reco-item .title {
	width: 100%;
	margin: 20px 0 14px 0;
	font: 700 17px/1.5 'noto';
	color: #333;
	text-align: center;
}

.reco-area .reco-img-list .reco-item .title {
	width: calc(100% - 16px);
	margin: 12px 8px 10px 8px;
}

.reco-area .reco-item .pd-title {
	height: 3em;
	font: 500 14px/1.5 'noto';
	color: #666;
}

.reco-area .reco-item .pd-title {
	width: calc(100% - 16px);
	margin: 0 8px;
}

.reco-ctl > * {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 13px;
	height: 22px;
	cursor: pointer;
}

.reco-ctl > .prev {
	left: 8px;
	background: transparent url('../img/icons/ico-acc-left-3-gray.png') 50% 50%/100% 100% no-repeat;
}

.reco-ctl > .next {
	right: 8px;
	background: transparent url('../img/icons/ico-acc-right-3-gray.png') 50% 50%/100% 100% no-repeat;
}

.search-box {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 60px;
	padding: 5px 8px 5px 0;
	margin-top: 40px;
	background-color: #fff;
	border-radius: 5px;
    box-shadow: 0px 0px 20px 1px rgb(0 0 0 / 15%);
}

.search-box .disp-category {
	position: relative;
	width: 90px;
	height: 100%;
}

.search-box .disp-category > .disp-item {
	position: relative;
	display: block;
	width: 34px;
	height: 100%;
	margin: 0 auto;
	background: 50% 50%/34px 34px no-repeat;
}

.search-box .disp-category > .disp-item.disp-00 {
	background-image: url('../img/icons/ico-site-category-00-grad.png');
}
.search-box .disp-category > .disp-item.disp-01 {
	background-image: url('../img/icons/ico-reco-03-wh.png');
}
.search-box .disp-category > .disp-item.disp-02 {
	background-image: url('../img/icons/ico-site-category-02-grad.png');
}
.search-box .disp-category > .disp-item.disp-03 {
	background-image: url('../img/icons/ico-site-category-03-grad.png');
}
.search-box .disp-category > .disp-item.disp-04 {
	background-image: url('../img/icons/ico-site-category-04-grad.png');
}

.search-box .drop-category {
	display: none;
	z-index: 100;
	position: absolute;
	left: 0;
	top:  70px;
	width: 180px;
	border-radius: 15px;
	overflow: hidden;
}

.search-box .drop-category .drop-item {
	display: flex;
	align-items: center;
	width: 100%;
	height: 50px;
	padding-left: 24px;
	padding-right: 24px;
	background-color: #fff;
	cursor: pointer;
}

.search-box .drop-category .drop-item:first-child {
	height: 62px;
	padding-top: 12px;
}

.search-box .drop-category .drop-item:last-child {
	height: 62px;
	padding-bottom: 12px;
}

.search-box .drop-category .drop-item.drop-item-01 p {
	background: transparent url('../img/icons/ico-site-category-01-grad.png') 0 50%/34px 34px no-repeat;
}
.search-box .drop-category .drop-item.drop-item-02 p {
	background: transparent url('../img/icons/ico-site-category-02-grad.png') 0 50%/34px 34px no-repeat;
}
.search-box .drop-category .drop-item.drop-item-03 p {
	background: transparent url('../img/icons/ico-site-category-03-grad.png') 0 50%/34px 34px no-repeat;
}
.search-box .drop-category .drop-item.drop-item-04 p {
	background: transparent url('../img/icons/ico-site-category-04-grad.png') 0 50%/34px 34px no-repeat;
}

.search-box .drop-category .drop-item p {
	height: 50px;
	padding: 11px 0 10px 45px;
	font: 400 16px/1.6 'noto';
	color: #616161;
}

.search-box .drop-category .drop-item:hover {
	background-color: #ebebeb;
}

.search-box .drop-category .drop-item:hover p {
	font: 500 16px/1.6 'noto';
	color: #121212;
}

.search-box .btn-detail {
	position: relative;
	padding-left: 18px;
	padding-right: 3px;
	margin-right: 30px;
	font: 500 14px/1 'noto';
	color: #43a2ff;
}

.search-box .btn-detail::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	width: 11px;
	height: 9px;
	background: transparent url('../img/icons/ico-detail-bl.png') 50% 50%/100% 100% no-repeat;
}

.search-box .btn-search {
	position: relative;
	width: 100px;
	height: 45px;
	background-color: #dd1156;
	border-radius: 5px;
	font: 500 18px/1 'noto';
	color: #fff;
}


.list-box {
	margin-top: 45px;
	padding-bottom: 40px;
}

.list-box .table-area {
	padding: 0 18px;
	margin-bottom: 30px;
	background-color: #fff;
}

.list-box .table-area table thead,
.list-box .table-area table tbody {
	text-align: center;
}

.list-box .table-area table tbody {
	border-top: 1px solid #41a4f8;
}

.list-box .table-area table tbody tr:hover {
	background-color: #f4f5f5;
}

.list-box .table-area table tr {
	border-bottom: 1px solid #ccd0d4;
}
.list-box .table-area table th{
	padding: 18px 2px;
	font: 600 16px/1.4 'noto';
}

.list-box .table-area table td {
	padding: 18px 2px;
	font: 400 16px/1.4 'noto';
}

.list-box .table-area table th {
	color: #666;
}

.list-box .table-area table td {
	color: #111;
}

.list-box-filter{
	margin-top: 35px;
}

.list-box-filter.textarea{
	display: flex;
    justify-content: center;
}

.list-box-filter button{
	width: 190px;
    position: relative;
    height: 45px;
    background-color:#43a2ff;
    border-radius: 5px;
    font: 500 18px / 1 'noto';
    color: #fff;
	width: 210px;
}



/* 하단 설명 */
.cnt-panel {
    width: 100%;
    height: 100%;
    padding: 20px 10px 16px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    vertical-align: middle;
    overflow: hidden;
}

/* 하단 메뉴 설명 */
.cnt-panel.info{
    padding: 30px;
    line-height: 25px;
	background: #136c82;
    color: #fff;
}

.cnt-panel.info .title {
    font-weight: bold;
    font-size: 25px;
	line-height: 33px;
	margin-bottom: 10px;
    border-bottom: 2px solid #e0e0e0; /* 타이틀 아래 라인 */
    padding-bottom: 25px;
}

.cnt-panel.info .title2 {
    font-weight: bold;
    font-size: 20px;
	margin-bottom: 10px;    
}

.cnt-panel.info .content {
	margin-top: 25px;
}

.cnt-panel.info .content2 {
	margin-top: 20px;
}

.label-container{
	display: flex;
    gap: 13px;
    list-style: none;
	padding: 0px 20px;
    margin: 0;
    flex-wrap: wrap;
}

.label-container li{
	padding: 10px 16px;
    border: 2px solid #286fb6;
    border-radius: 20px;
    background-color: #fff;
    color: #4d4949;
    font-weight: 500;
    cursor: pointer;
}

.label-container li.active{
	background-color: #43a2ff;
    color: #fff;
    border-color: #286fb6;
}

.label-container li:hover{
	background-color: #43a2ff;
    color: #ffffff;
    border-color: #286fb6;
    transition: 0.3s;
}

.contents-container{
	display: flex;
    gap: 7px;
    list-style: none;
	padding: 0px 20px;
    margin: 0;
    flex-wrap: wrap;
}
.contents-container li{
	padding: 10px 16px;
    border: 1px solid #a79d9f;
    border-radius: 5px;
    background-color: #fff;
    color: #4d4949;
    font-weight: 500;
    cursor: pointer;
}

.contents-container li.active{
	background-color: #ff4e6c;
    color: #fff;
    border-color: #ff4e6c;
}

.contents-container li:hover{
	background-color: #f1f0f0;
    border-color: #aaa6a6;
    transition: 0.3s;
}


.btn-modify-request {
	padding-left: 18px;
	background: transparent url('../img/icons/ico-pencle-bl.png') 0 50%/13px 13px no-repeat;
	font: 500 14px/1 'noto';
	color: #43a2ff;
}

/********* detail ********/
.factory-name-box {

}

.factory-name-box > .factory-name {
	font: 500 24px/1 'noto';
	color: #0b1018;
}


.detail-top {
	position: relative;
	padding: 60px 0;
}

.detail-col-2 {
	display: flex;
	align-items: flex-start;
}

.detail-col-2 > * {
	flex-basis: calc(50% - 45px);
}

.detail-col-2 > *:nth-of-type(1) {
	margin-right: 45px;
}

.detail-col-2 > *:nth-of-type(2) {
	margin-left: 45px;
}

.slide .no-img {
	background-image: url('../img/dummy/no-img.png');
}

.slide .img {
	padding-bottom: 65%;
}

.data-item {
	display: flex;
	align-items: flex-start;
}

.data-th,
.data-td {
	font: 500 16px/1.4 'noto';
	color: #666;
}

.data-th {
	position: relative;
	padding: 5px 0 5px 12px;
	width: 120px;
}

.data-th::before {
	content: '\00B7';
	position: absolute;
	left: 0;
	top: 5px;
}

.data-td {
	width: calc(100% - 120px);
	padding: 5px 0;
}

.data-td.link > a {
	position: relative;
	padding-right: 26px;
}
	
.data-td.link > a::before,
.data-td.link > a::after {
	content: '';
	position: absolute;
}

.data-td.link > a::before {
	top: 2px;
	right: -3px;
	width: 12px;
	height: 12px;
	background: transparent url('../img/icons/ico-link-arrow-gray.png') 50% 50%/100% 100% no-repeat;
}

.data-td.link > a::after {
	top: 5px;
	right: 0;
	width: 17px;
	height: 17px;
	background: transparent url('../img/icons/ico-link-box-gray.png') 50% 50%/100% 100% no-repeat;
}

.data-label {
	display: flex;
	margin-top: 10px;
}

.data-label > li {
	padding: 6px 8px;
	margin: 0 5px;
	border-radius: 15px;
	background-color: #fff;
	font: 500 14px/1 'noto';
}

.data-label > li:first-child {
	margin-left: 0;
}

.data-label > li:last-child {
	margin-right: 0;
}

.data-label > li.label-stock {
	border: 1px solid #00817f;
	color: #00817f;
}
.data-label > li.label-charge {
	border: 1px solid #0055d5;
	color: #0055d5;
}
.data-label > li.label-shipping {
	border: 1px solid #6704ac;
	color: #6704ac;
}
.data-label > li.label-img {
	border: 1px solid #815500;
	color: #815500;
}



.detail-container {
	position: relative;
	padding-bottom: 45px;
	background-color: #fff;
}

.detail-title {
	padding: 40px 0 30px 0;
}

.detail-title.pd-0 {
	padding-bottom: 0;
}

.detail-title.pd-15 {
	padding-bottom: 15px;
}

.detail-title > p {
	position: relative;
	padding-left: 26px;
	font: 500 20px/1 'noto';
	color: #142331;
}

.detail-title > p::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
	height: 17px;
	background: transparent url('../img/icons/ico-site-category-00-bk.png') 50% 50%/100% 100% no-repeat;
}

#sub_data {
	display: flex;
	flex-wrap: wrap;
}

#sub_data > * {
	flex-basis: 50%;
}

#sub_data .data-td {
	padding-right: 10px;
}

.detail-map-text {
	margin-bottom: 15px;
	font: 400 16px/1 'noto';
    color: #142331;
}

#detail_map {
	position: relative;
	width: 100%;
	height: 330px;
}


/* 인스타라인 텍스트 에러리어 */
.center-container {
    display: flex;
    justify-content: center;  /* 가로 중앙 정렬 */
    align-items: center;      /* 세로 중앙 정렬 (필요 시) */
    height: 100vh;            /* 전체 높이 기준으로 중앙 정렬 */
    background-color: #f7f7f7; /* 배경색 추가 (선택사항) */
}

.textarea-container {
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 100%;
    max-width: 800px;  /* 최대 너비 설정 */
    transition: border 0.3s ease;
}

.textarea-container:hover {
    border: 2px solid #2587e7;  /* 호버 시 분홍색 테두리 */
}

.textarea-container textarea {
    width: 100%;
    height: 270px;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: transparent;
}

.textarea-footer {
    text-align: right;
    color: #9e9e9e;
    font-size: 12px;
    margin-top: 5px;
}


.panel-container {
    display: flex;
    align-items: center;
    width: 800px;
    border-radius: 12px;
    background-color: #f9f6f7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #2685e3;
}

.panel-icon {
    background-color: #2685e3;   /* 왼쪽 배경 파란색 */
    color: #ffffff;              /* 아이콘 색상 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;                /* 왼쪽 아이콘 영역 크기 */
    height: 100px;               /* 높이 설정 */
}

.panel-icon i {
    font-size: 40px;             /* 아이콘 크기 */
}

.panel-content {
    padding: 30px 30px;
    flex-grow: 1;
    line-height: 15px;
    font-size: 18px;
    font-weight: 500;
}

.panel-content span{
    font-size: 25px;
    font-weight: 700;
}

.panel-content strong{
    color: #3f3636;
}


#generator_text div::before {
    content: "•";
    color: #4A90E2; /* 블릿 색상 */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 0.5em;
}

.panel-content .title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
}

.panel-content .description {
    font-size: 15px;
    color: #777;
    padding-top: 10px;
}

.panel-content .highlight {
    color: #00A9FF;             /* 강조 색상 */
    font-weight: bold;
}

/* 타로 */
body {
    background-image: url('../img/tarot/bg_tarot_01.jpg'); /* 배경 이미지 경로 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 16px; 
}
.tarot-container {
    max-width: 800px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 35px;
    padding-top: 0px;
    margin: 0 auto;

    /* ✨ 배경에 별 패턴 이미지 적용 */
    background-image: url('../img/tarot/start_bg_pt.png'); /* 두 번째 이미지 경로 */
    background-repeat: repeat;
    background-size: cover;
    background-position: center;

    border-radius: 16px;
    backdrop-filter: blur(40px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* 타이틀 이미지 스타일 */
.tarot-title-img {
    display: block;
    max-width: 45%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.tarot-title-wa-img {
    display: block;
    width: 220px;
    margin: 0 auto;
}

/* 설명패널 */
.tarot-panel {
    max-width: 720px;
    margin: 2px auto;
    padding: 2px;
    background: linear-gradient(to bottom right, #bba86e, #5f4b24); /* 테두리 장식 느낌 */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  
  .tarot-panel-inner {
    background-color: #0c0513;
    border-radius: 10px;
    padding: 24px;
    color: #e0e0e0;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    /* height: 117px; */
  }
  
  .tarot-panel-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #f4e2b2;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .tarot-panel-content {
    line-height: 1.6;
    font-size: 15px;
    color: #d5d0c5;
  }
  
  /* 패널 타이핑 효과 */
  #typing-text {
    font-size: 15px;
    line-height: 1.6;
    color: #d5d0c5;
    white-space: pre-line;
    display: inline-block;
    border-right: 2px solid #f0e6c4;
    animation: blink 0.8s infinite;
 }
  
  @keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #f0e6c4; }
 }

 /* 하단 입력 필드 */
 .tarot-form {
    margin-top: 30px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #a187e4;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(180, 160, 255, 0.3);
    color: #fff;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.tarot-form-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

.tarot-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* 모바일용 셀렉트 기본 숨김 */
.tarot-category-mobile {
    display: none;
    margin: 20px 0;
}
  
.select-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}
  
.select-wrapper select {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #7f5ae6;
    appearance: none;
    background-color: #2d1b4a;
    color: #fff;
    font-size: 15px;
    padding-right: 40px;
}
  
.custom-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #fff;
    font-size: 14px;
}


.category-btn {
    background: #2d1b4a;
    color: #fff;
    border: 1px solid #7f5ae6;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.category-btn:hover,
.category-btn.active {
    background: #7f5ae6;
    color: #fff;
}

.tarot-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    outline: none;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    color: #333;
}

.tarot-start-btn {
    width: 100%;
    background: linear-gradient(to right, #7f5ae6, #b178f5);
    color: #fff;
    padding: 14px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(127, 90, 230, 0.6);
    transition: 0.2s;
}
.tarot-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(127, 90, 230, 0.8);
}


/* 카드셔플 */
/* 카드 전체 컨테이너 */
.tarot-cards {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* ← 이거 꼭 줘보자 */
  }
  
  /* 카드 공통 스타일 */
  .tarot-card {
    width: 190px;
    height: 285px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    perspective: 1000px;
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.5s ease;
  }
  
  /* 카드 내부 구조 */
  .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
  }
  
  /* 카드 앞/뒷면 */
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  .card-front img,
  .card-back img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
  }
  
  /* 뒷면 회전 */
  .card-back {
    transform: rotateY(180deg);
  }
  
  /* 뒤집힘 상태 */
  .tarot-card.flipped .card-inner {
    transform: rotateY(180deg);
  }
  
  /* 선택된 카드 (중앙 확대) */
  .tarot-card.selected {
    z-index: 999;
    transform: translate(-50%, -50%) scale(1.8);
    pointer-events: none;
}
  

/* @keyframes shuffleCard {
    0% {
      transform: translateY(100px) rotate(0deg);
      opacity: 0;
    }
    30% {
      transform: translateX(-20px) rotate(-15deg);
      opacity: 1;
    }
    60% {
      transform: translateX(20px) rotate(15deg);
    }
    100% {
      transform: translateY(0px) rotate(0deg);
    }
  } */
  .tarot-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .tarot-buttons button {
    background-color: #482c8a;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
  }
  .tarot-buttons button:hover {
    background-color: #6a41bd;
  }
  .card-front,
.card-back {
  backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

.tarot-card.flipped .card-inner {
  transform: rotateY(180deg);
}
 
  
/* 부드러운 빛나는 애니메이션 */
/* @keyframes glow {
    0%, 100% {
      text-shadow: 0 0 10px rgba(255,255,255,0.3),
                   0 0 20px rgba(173, 216, 230, 0.5),
                   0 0 40px rgba(186, 85, 211, 0.4);
    }
    50% {
      text-shadow: 0 0 15px rgba(255,255,255,0.6),
                   0 0 30px rgba(173, 216, 230, 0.8),
                   0 0 60px rgba(186, 85, 211, 0.7);
    }
} */

.tarot-input:disabled{
  background-color: #eee;   /* 연한 회색 배경 */
  color: #888;              /* 회색 텍스트 */
  cursor: not-allowed;      /* 마우스 커서도 바뀜 */
  opacity: 0.6;             /* 살짝 투명하게 */
}

.category-btn.active {
    background-color: #6f4eff;
    color: #fff;
    border: 2px solid #b5aaff;
  }


  /*모달  */
.tarot-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-inner {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.modal-spinner {
    margin: 20px auto;
    border: 6px solid #eee;
    border-top: 6px solid #d33;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
  
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ad-btn {
    font-size: 15px;
    padding: 20px 10px;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer; /* ✅ 커서 손모양 */
    color: #333;
    transition: all 0.2s ease;
}  
.ad-btn:hover {
    text-decoration: underline; /* ✅ 호버 시 밑줄 */
    background-color: #f5f5f5;   /* 선택사항: 호버 배경 */
}

.tarot-modal .modal-inner {
    max-width: 360px;
    width: 90%;
    margin: 60px auto;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;         /* 조금 더 크게 */
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    z-index: 10;             /* 겹침 방지 */
  }

.modal-ad-slot {
    margin-top: 20px;
    font-size: 14px;
    color: #666;

    /* 추가: 광고 영역 보장 */
    min-height: 100px;       /* 광고가 들어갈 최소 높이 확보 */
    display: block;
    width: 100%;             /* 너비도 충분히 확보 */
    text-align: center;      /* 광고 중앙 정렬 */   
}

.tarot-result-btn {
    width: 25%;
    background: linear-gradient(to right, #7f5ae6, #b178f5);
    color: #fff;
    padding: 14px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(127, 90, 230, 0.6);
    transition: 0.2s;
}
.tarot-result-btn:hover {
    background: linear-gradient(to right, #542fbb, #7f5ae6);
}

.tarot-reload-btn {
    width: 25%;
    background: linear-gradient(to right, #7f5ae6, #b178f5);
    color: #fff;
    padding: 14px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(127, 90, 230, 0.6);
    transition: 0.2s;
}
.tarot-reload-btn:hover {
    background: linear-gradient(to right, #542fbb, #7f5ae6);
}


/* 타고 결과 패널 */
.tarot-answer-box {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    color: #222;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.tarot-answer-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
  
.tarot-answer-text {
    white-space: pre-line;
}  

/* 답변패널 */
.tarot-answer-inner {
    display: flex;
    flex-direction: row;
    gap: 35px;
    align-items: center; /* ✅ 세로 가운데 정렬 */
    padding: 12px 0;
}
  
.tarot-answer-image-wrapper img {
    width: 145px;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(138, 43, 226, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarot-answer-image-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(138, 43, 226, 0.8);
}
  
.tarot-answer-text-wrapper {
    flex: 1;
}

/* 역방향 */
.tarot-card.reversed img {
    transform: rotate(180deg);
}

/* 타로홈 */
.tarot-home{
    padding: 11px; 
    margin: 10px; 
    padding-left: 15px; 
    padding-top: 15px;
}
.tarot-home a{
    text-decoration: none;
    color: #fff;
}

.sweet-home{
    text-align: center;
}
.sweet-home-logo{
    width: 6%;
}

.crystal-ball-container {
    position: relative;
    /* display: inline-block; */
  }
  
  .crystal-ball {
    display: block;
    width: 350px; /* 너비 고정 (예: 원본 이미지 크기) */
  }
  
  /* ✨ 반짝이 효과 위치 조정 */
.sparkle-overlay {
    position: absolute;
    top: 186px;
    left: 350px;
    width: 100px;
    height: 100px;
    pointer-events: none;
    background: radial-gradient(white, transparent 55%);
    border-radius: 50%;
    animation: sparkle 1.5s infinite ease-in-out;
    opacity: 0.7;
    filter: blur(1px);
}
  
@keyframes sparkle {
    0%, 100% {
      transform: scale(0.9) rotate(0deg);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.3) rotate(180deg);
      opacity: 1;
    }
}

@media (max-width: 480px) {
	.list-box-filter.textarea {
		padding-left: 13px;
		padding-right: 13px;
	}
    .tarot-panel-inner {
        height: 190px;
    }
    .tarot-form-title {
        line-height: 22px;
    } 
    
    .tarot-categories {
        display: none;
    }
    .tarot-category-mobile {
        display: block;
    }
    .tarot-container {
        padding: 24px;        
    }
    .tarot-result-btn, .tarot-reload-btn{
        width: 43%;        
    }

    .tarot-answer-inner {
        flex-direction: column;
        align-items: center;
    }    
    .tarot-answer-image-wrapper img {
        width: 150px;
        margin-bottom: 15px;
        padding: 20px;
    }
    .sparkle-overlay {
        top: 187px;
        left: 104px;       
    }
    .sweet-home-logo {
        width: 20%;
    }

    /* 모바일에서 카드 줄이기 */
    /* .tarot-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    .tarot-card {
        width: 60px;
        height: auto;
        position: relative !important;
        transform: none !important;
    } */

    /* .tarot-card .card-inner {
        width: 100%;
        height: auto;
    } */

    /* .tarot-card img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    } */

    /* 모바일 광고 모달 제어 */
    .tarot-modal .modal-inner {
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
        position: relative;
        background: #fff;
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        margin: 50px auto;
    }
  


 /* 카드 선택 후 결과 카드 이미지 줄이기 */
    #tarot-answer-img {
        width: 90%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        display: block;
    }


    /* 모바일 */
    .tarot-cards-mobile {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        justify-items: center;
        padding: 20px 10px;
    }
      
    .tarot-cards-mobile .tarot-card {
        width: 90px;
        height: 160px;
        position: relative;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        z-index: 1 !important;
    }
    .tarot-cards-mobile img {
        width: 100%;
        height: 100%;        
      }
      
      /* 카드 내부 구조는 PC와 동일하게 유지 */
    .tarot-cards-mobile .card-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }
      
    .card-front, .card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
      
    .card-back {
        transform: rotateY(180deg);
    }

    .tarot-cards-mobile .tarot-card.selected {
        opacity: 1;
        transform: none;
        z-index: 10;
    }

    .tarot-cards-mobile.stack {
        position: relative;
        height: 280px;
        left: 80%;
        transform: translateX(-50%);
        transform: translateX(-50%);
        margin-top: 80px; /* ✅ 원하는 만큼 마진 추가 */
    }
    .tarot-cards-mobile.stack .tarot-card {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: rotate(var(--angle, 0deg)) !important;
        z-index: var(--z, 0) !important;
        transition: all 0.3s ease;
        width: 110px;
        height: 180px;
    }
    /* 카드 펼침용 클래스 */
    .tarot-cards-mobile.grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px; /* gap 제거하고 margin으로 겹치기 */
        padding: 20px 20px; /* 좌우 공간 확보 */
        overflow: visible; /* 혹시 몰라 명시 */
      }
      
    .tarot-cards-mobile.grid .tarot-card {
        width: 90px;
        height: 160px;
        margin-left: -37px; /* 겹치게 */
        margin-bottom: 16px;
        transition: transform 0.4s ease, opacity 0.4s ease;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); /* 외곽 강조 가능 */
        border-radius: 8px; /* 곡선 처리도 OK */
        overflow: visible;
    }     
    .tarot-cards-mobile.grid .tarot-card .flipped {       
        margin-left: 0px !important; /* 겹치게 */       
    }  


    .tarot-panel-content {
        word-break: break-word;
      }

}