@charset "utf-8";
@import url(./reset.css); /* CSS 초기화 */
@import url(./font.css); /* 폰트 */

/** 공통 관리 */
:root {
    /* color */
    --text-highlight-color: #000;
    --button-default-color: #000;
    --button-hover-color: #000;
    --scroll-color: #2476d4;
    --hatch-color: #d5589d;
    --zuzak-color: #e85b45;
    --baekHo-color: #60483a;
    --hyeonMu-color: #419670;
    --CheongLyong-color: #3b87aa;
    /* etc */
    --transition: .2s;
}

/** 기본 설정 */
html { font-size: 20px; }
.hide { display: none !important; }
.fadeOut { opacity: 0; visibility: hidden; }
.fadeIn { opacity: 1 !important; visibility: visible !important; }

.hatch { color: var(--hatch-color); }
.zuzak { color: var(--zuzak-color); }
.baekHo { color: var(--baekHo-color); }
.hyeonMu { color: var(--hyeonMu-color); }
.CheongLyong { color: var(--CheongLyong-color); }

/** 디자인을 공유하는 요소 */
main {
    max-width: 500px;
    min-height: 100vh;
    margin: auto;
    position: relative;
    overflow: hidden;
}

section {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}
section::-webkit-scrollbar { width: 10px; }
section::-webkit-scrollbar-thumb { background-color: var(--scroll-color); border-radius: 10px; background-clip: padding-box; border: 2px solid transparent; }
section::-webkit-scrollbar-track { background-color: transparent; border-radius: 10px; }

article { width: 94%; margin: auto; }
article.result-container { width:  100%; }

section,
.detail-container {
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.btn-style-1 {
    display: block;
    max-width: 260px;
    width: 90%;
    padding: 7px 10px;
    margin: auto;
    color: #fff !important;
    font-family: "Pretendard", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    background: linear-gradient(to top, #2973db 50%, #2a8de5 100%);
    border-radius: 40px;
}
.btn-style-2 {
    padding: 8px 35px;
    color: #fff !important;
    font-family: "Pretendard", sans-serif;
    font-size: 1.4rem;
    letter-spacing: -1px;
    border-radius: 30px;
    position: relative;
}

/* 페이지 별 배경 설정 */
.test-intro { background: url(../img/bg-intro.png) center right / cover no-repeat;}
.test-explan { background: url(../img/bg-explan.png) top right / cover no-repeat;}
.test-detail { background: url(../img/bg-detail.png) top right / cover no-repeat;}
.test-result { background: url(../img/bg-result.png) top right / cover no-repeat;}
.test-all-person { background: url(../img/bg-all-person.png) top right / cover no-repeat;}
/** 개별디자인 시작 */

/** 테스트 인트로 */
main .test-intro .intro-container {
    text-align: center;
}

main .test-intro .intro-container .intro-title {
    max-width: 95%;
    width: 100%;
    height: 300px;
    margin: 0 auto 60px;
    background: url(../img/intro-title.png) center center / contain no-repeat;
    text-indent: -10000px;
}

main .test-intro .intro-container .test-start {
    margin-bottom: 60px;
}
main .test-intro .intro-container .test-start:hover {
    background: linear-gradient(to top, #2fc5d9 50%, #6fd3b6 100%);
}

/* 링크 버튼 */
main .test-intro .intro-container .share-box {
    margin-bottom: 20px;
}
main .test-intro .intro-container .share-box li {
    display: inline-block;
}
main .test-intro .intro-container .share-box li:not(:last-child) {
    margin-right: 5px;
}
main .test-intro .intro-container .share-box li a {
    display: inline-block;
    width: 45px;
    height: 45px;
    text-indent: -10000px;
    background: url("") center center / contain no-repeat;
}
main .test-intro .intro-container .share-box li a.kakao { background-image: url(../img/icon-kakao.png); }
/* main .test-intro .intro-container .share-box li button.x { background-image: url(../img/icon-x.png); } */
main .test-intro .intro-container .share-box li a.share-link { background-image: url(../img/icon-link.png); }

main .test-intro .intro-container .logo {
    max-width: 180px;
    width: 80%;
}

/** 테스트 설명 */
main .test-explan {
    flex-direction: column;
}

main .test-explan .img-box {
    width: 95%;
    height: 400px; 
    margin: 15px auto 20px;
    border-radius: 10px;
    overflow: hidden;
}

main .test-explan .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: bottom;
}

main .test-explan .explan.fadeIn .img-box img {
    animation: scaleUp 10s forwards;
}

main .test-explan .explan {
    margin: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

main .test-explan .explan .text-box {
    max-width: 320px;
    width: 90%;
    margin: auto;
    text-align: left;
}

main .test-explan .explan .text-box .explan-text {
    margin-bottom: 10px;
    color: #131313;
    font-family: "HakgyoMiso";
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.2;
}
main .test-explan .explan .text-box .explan-text span {
    display: block;
}

main .test-explan .explan .text-box .explan-text span:nth-last-of-type(1) {
    margin-bottom: 10px;
}

main .test-explan .explan .text-box .explan-high-text {
    color: #0e4ea6;
    font-family: "HakgyoMiso";
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
}

/* 건너뛰기 */
main .test-explan .explan-skip {
    padding: 5px 20px;
    margin-left: 70%;
    color: #fff;
    font-family: "HakgyoNalgae", sans-serif;
    background-color: #1a57a2;
    border-radius: 20px;
    position: relative;
    text-indent: -8px;
}
main .test-explan .explan-skip::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0px 10px 10px;
    border-color: transparent transparent transparent #fff;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

main .test-explan .search-start {
    margin-top: 15px;
}
/** 테스트 시작 */
main .test-detail {
    position: relative;
}
/* 테스트 진행 단계에 따른 상단 바 길이 수정 */
main .test-detail .process-bar {
    width: 0%;
    height: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #3865d6;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition);
}

main .test-detail .detail-container {
    height: 90%;
}
/* 질문 */
main .test-detail .detail-container .test-top {
    text-align: center;
}

main .test-detail .detail-container .test-top h2 {
    padding: 18px 35px 15px;
    margin-bottom: 10px;
    color: #fff;
    font-family: "Gmarket", sans-serif;
    font-size: 1.8rem;
    background: url(../img/q-bg.png) center center / contain no-repeat;
}

main .test-detail .detail-container .test-top h3 {
    width: 80%;
    margin: auto;
    font-family: "Pretendard", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -1px;
    text-align: left;   
}
/* 질문 이미지 */
main .test-detail .detail-container .test-img {
    max-width: 250px;
    width: 90%;
    margin: 15px auto;
    text-align: center;
}

main .test-detail .detail-container .test-img img {
    width: 100%;
}
/* 보기 */
main .test-detail .detail-container .test-bottom {
    padding: 10px;
    text-align: center;
}

main .test-detail .detail-container .test-bottom li {
    display: inline-block;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

main .test-detail .detail-container .test-bottom li:not(:last-child) {
    margin-bottom: 20px;
}

main .test-detail .detail-container .test-bottom li .bogi {
    width: 100%;
    min-height: 70px;
    padding: 10px 30px;
    color: #fff;
    font-family: "Pretendard", sans-serif;
    font-size: 1.1rem;
    background-color: #2273e1;
    border-radius: 40px;
    box-shadow: inset 4px 4px 5px rgba(193, 232, 251, 0.2);
    filter: drop-shadow(4px 4px 2px rgba(0, 0, 0, 0.2));
    position: relative;
    vertical-align: middle;
}

/** 테스트 결과창 */
/* 결과창에서 성격마다 색상 변경 */
/* 성격이 추가된다면 여기다도 추가(root쪽에도 추가) */
main .test-result { --result-color: #2476d4; }

main .test-result .result-container {
    padding: 40px 0 60px;
}
/* 결과창 상단 */
main .test-result .result-container .result-head {
    padding: 0 30px 40px;
    text-align: center;
}

main .test-result .result-container .result-head h2 {
    margin-bottom: 10px;
    color: var(--result-color);
    font-family: "ChilpanJiugae", sans-serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
}

main .test-result .result-container .result-head h3 {
    display: inline-block;
    padding: 2px 15px;
    margin: 0 auto 25px;
    color: #fff;
    font-family: "Pretendard", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -1px;
    background-color: #35669e;
    border-radius: 20px;
    text-align: center;
}

main .test-result .result-container .result-head .img-box {
    margin-bottom: 20px;
    position: relative;
}

main .test-result .result-container .result-head .img-box img {
    width: 80%;
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.4));
}

main .test-result .result-container .result-head .img-box p {
    width: 100%;
    color: #434445;
    font-family: "Pretendard", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    bottom: 15%;
    left: 52%;
    transform: translateX(-50%);
    text-align: center;
}
main .test-result .result-container .result-head h4 {
    color: #114994;
    font-family: "HakgyoNalgae", sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.2;
}

/* 결과창 내용 */
main .test-result .result-container .result-body {
    padding: 0 20px 30px 0;
    font-family: "Pretendard", sans-serif;
}

/* 성격 소개 */
main .test-result .result-container .result-body .person-info {
    margin-bottom: 30px;
}
main .test-result .result-container .result-body div h4 {
    display: inline-block;
    padding: 3px 15px 3px 30px;
    color: #fff;
    font-size: 1.2rem;
    background-color: #2476d4;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
main .test-result .result-container .result-body .person-info ul {
    margin-top: 15px;
    margin-left: 50px;
}

main .test-result .result-container .result-body .person-info ul li {
    color: #121212;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.3;
    position: relative;
}
main .test-result .result-container .result-body .person-info ul li::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 24px;
    background: url(../img/list-bullet.png) center center / contain no-repeat;
    position: absolute;
    left: -23px;
}

main .test-result .result-container .result-body .person-info ul li:not(:last-child) {
    margin-bottom: 10px;
}

/* 필요한 순간 */
main .test-result .result-container .result-body .person-need ul {
    margin-top: 15px;
}

main .test-result .result-container .result-body .person-need ul li {
    color: #121212;
    letter-spacing: -1px;
    line-height: 1.8;
    font-weight: 500;
    text-align: center;
}

/* 에피소드 소개 */
main .test-result .result-container .result-foot .person-episode {
    margin-bottom: 60px;
    text-align: center;
}

main .test-result .result-container .result-foot .person-episode .episode-title {
    margin-bottom: 20px;
    color: #114994;
    font-family: "HakgyoNalgae", sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

main .test-result .result-container .result-foot .person-episode .episode-title-bottom {
    margin-bottom: 20px;
    color: #141515;
    font-family: "NanumGothic", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -1px;
}

main .test-result .result-container .result-foot .person-episode .episode-descript {
    margin-bottom: 40px;
    font-family: "Pretendard", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.5;
}

/* 에피소드 보러 가기 버튼 */
main .test-result .result-container .result-foot .person-episode .episode-btn {
    background: linear-gradient(to top, #f17fb6 50%, #fc9ccd 100%);
}
main .test-result .result-container .result-foot .person-episode .episode-btn::before {
    content: "";
    display: inline-block;
    width: 52px;
    height: 47px;
    background: url(../img/episode-icon.png) center center / contain no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, 0.2));
}

/* 유형 비교(잘/안 맞는 유형) */
main .test-result .result-container .result-foot .person-compare {
    display: flex;
    margin-bottom: 40px;
}

main .test-result .result-container .result-foot .person-compare li {
    width: 50%;
    padding: 0 10px;
    text-align: center;
    vertical-align: top;
}

main .test-result .result-container .result-foot .person-compare li:not(:first-child) {
    border-left: 2px solid #a2bec5;
}

main .test-result .result-container .result-foot .person-compare li .compare-title {
    color: #114994;
    font-family: "NanumGothic", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -1px;
}

main .test-result .result-container .result-foot .person-compare li .compare-img {
    width: 100%;
    height: 100px;
    margin: 10px 0;
    filter: drop-shadow(4px 2px 2px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

main .test-result .result-container .result-foot .person-compare li .compare-detail {
    width: 85%;
    margin: auto;
    color: #010101;
    font-family: "Pretendard", sans-serif;
    font-weight: 500;
}

/* 전체유형 보기 버튼 */
main .test-result .result-container .result-foot .other {
    margin-bottom: 60px;
}
main .test-result .result-container .result-foot .other li {
    text-align: center;
}
main .test-result .result-container .result-foot .other li:not(:last-child) {
    margin-bottom: 20px;
}
main .test-result .result-container .result-foot .other li button {
    max-width: 310px;
    width: 90%;
    text-indent: -5px;
}
main .test-result .result-container .result-foot .other li .all-person {
    background: linear-gradient(to top, #2973db 50%, #2a8de5 100%);
}
main .test-result .result-container .result-foot .other li .all-person::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: url(../img/go-person-icon.png) center center / contain no-repeat;
    vertical-align: -2px;
}
main .retry-test {
    background: linear-gradient(to top, #24bbc6 50%, #26bfd6 100%);
}
main .retry-test::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: url(../img/retry-icon.png) center center / contain no-repeat;
    vertical-align: -2px;
}

main .test-result .result-container .result-foot .logo-box {
    text-align: center;
}

main .test-result .result-container .result-foot .logo-box img {
    display: block;
    margin: auto;
}
main .test-result .result-container .result-foot .logo-box img:not(:first-child) {
    margin-top: 20px;
}

/* 결과창 기타 기능 */
main .test-result .result-container .result-foot {
    padding: 10px;
}

/** 모든 유형 보기 페이지 */
main .test-all-person {
    display: block;
    padding: 20px 0;
    text-align: center;
}

main .test-all-person ul {
    width: 90%;
    margin: 0 auto 20px;
}
main .test-all-person ul li:not(:last-child) {
    margin-bottom: 15px;
}

main .test-all-person ul li button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px 30px;
    width: 100%;
    min-height: 145px;
    padding: 10px 15px;
    border: 2px solid #a2bec5;
    border-radius: 20px;
    text-align: left;
    position: relative;
}
/* 변수 */
main .test-all-person ul li button.person-hatch { --text-color: var(--hatch-color); }
main .test-all-person ul li button.person-baekHo { --text-color: var(--baekHo-color); }
main .test-all-person ul li button.person-zuzak { --text-color: var(--zuzak-color); }
main .test-all-person ul li button.person-hyeonMu { --text-color: var(--hyeonMu-color); }
main .test-all-person ul li button.person-CheongLyong { --text-color: var(--CheongLyong-color); }

main .test-all-person ul li .left {
    width: 150px;
    position: absolute;
    left: -20px;
    text-align: center;
    transform: scale(0.9);
}

main .test-all-person ul li .right {
    margin-left: 120px;
}

main .test-all-person ul li .right h3 {
    color: var(--text-color);
    font-family: "HakgyoNalgae", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
}

main .test-all-person ul li .right h4 {
    margin: 5px 0;
    color: var(--text-color);
    font-family: "Pretendard", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
}

main .test-all-person ul li .right p {
    color: #323131;
    font-family: "Pretendard", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -1px;
}

@keyframes scaleUp {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}