@charset "UTF-8";

/* font */
@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
body {
    min-width: auto;
    font-family: 'GmarketSans', sans-serif;
    letter-spacing: -0.03em;
    background: #F0EFE0;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #d4d4d4;
}
::-webkit-scrollbar-thumb {
    background: #358f5e;
}

/* 애니메이션 */
.fadeIn {
    animation: fadeIn ease 0.6s both;
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
.fadeOut {
    animation: fadeOut ease 0.6s both;
}
@keyframes fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
.fadeInOut {
    animation: fadeInOut ease 1.5s both;
}
@keyframes fadeInOut {
    0% {opacity: 0;}
    20% {opacity: 1;}
    80% {opacity: 1;}
    100% {opacity: 0;}
}
.fadeUp {
    animation: fadeUp ease 0.5s backwards;
}
@keyframes fadeUp {
    0% {opacity: 0; margin-top: 50px;}
    100% {opacity: 1; margin-top: 0;}
}
.slideUp {
    animation: slideUp ease 0.5s backwards;
}
@keyframes slideUp {
    0% {transform: translateY(100px);}
    100% {transform: translateY(0);}
}
.scale {
    animation: scale ease 0.5s both;
}
@keyframes scale {
    0% {transform: scale(0.65);}
    100% {transform: scale(1);}
}

/* 최대폭 */
.container {
    position: relative;
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* 버튼 */
.container .btn {
    font-size: 21px;
    line-height: 27px;
    padding: 16px;
    color: #fff;
    background: #313450;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
}

/* 시작화면 ============ */
.start-page {
    text-align: center;
    overflow: hidden;
}
.start-page .wrap-flex {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 9999;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.start-page .merry {
    width: 65px;
    margin-top: 24px;
    margin-bottom: 8px;
}
.start-page h1 {
    position: relative;
    z-index: 999;
    font-size: 8vw;
    line-height: 1.3;
    font-weight: bold;
    word-break: keep-all;
}
.start-page .count {
    font-size: 17px;
    line-height: 1.3;
    margin-top: 19px;
}
.start-page .area-bottom {
    width: 100%;
    margin-bottom: 12px;
}
.start-page .logo {
    width: 123px;
    margin-top: 12px;
}
.start-page .santa {
    width: 100%;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translate(-50%,-50%);
    top: 50%;
    z-index: -1;
}
.start-page .chimney {
    width: 260px;
}
.start-page .start-santa {
    position: absolute;
    width: 234px;
    opacity: 0;
}
.start-page .santa01 {
    top: -20px;
    left: -46px;
    animation: fadeUp ease 0.6s both;
}
.start-page .santa02 {
    top: 130px;
    right: -51px;
    animation: fadeUp ease 0.6s both;
    animation-delay: 0.3s;
}
.start-page .santa03 {
    top: 336px;
    left: -63px;
    animation: fadeUp ease 0.6s both;
    animation-delay: 0.6s;
}

@media (min-width: 375px) {
    .start-page h1 {
        font-size: 30px;
    }
}

/* 이름입력 화면 ========== */
.name-page {
    display: none;
    text-align: center;
    overflow: hidden;
}
.name-page .santa {
    width: 159px;
    display: inline-block;
    margin-top: 15%;
    margin-bottom: 9px;
    animation-delay: 0.3s;
}
.name-page .txt {
    font-size: 21px;
    line-height: 37px;
    animation-delay: 0.6s;
    word-break: keep-all;
}
.name-page .arrow {
    width: 20px;
    margin-top: 34px;
    animation-delay: 0.9s;
}
.name-page .area-bottom {
    position: absolute;
    width: calc(100% - 32px);
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.2s;
}
.name-second {
    display: none;
}
.name-second input {
    font-family: 'GmarketSans', sans-serif;
    width: 100%;
    height: 60px;
    border-radius: 20px;
    text-align: center;
    border: none;
    font-size: 17px;
    line-height: 27px;
    padding: 16px;
    box-sizing: border-box;
}
.name-second input::placeholder {
    color: #b6b6b6;
}
.name-second input:focus {
    outline: none;
}
.name-second .btn-arrow {
    position: absolute;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
    right: 4px;
    cursor: pointer;
}
.name-second .btn-arrow img {
    display: block;
}

/* 질문 화면 =================== */
.ques-page {
    overflow: hidden;
}
.ques-page .ques-txt {
    position: relative;
    height: 30%;
    text-align: center;
    font-size: 21px;
    line-height: 38px;
}
.ques-page .ques-txt p {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: none;
}
.ques-page .ques-txt .ques1 {
    display: block;
}
.ques-page .answer-box {
    height: calc(70% - 40px);
    background: #fff;
    margin: 0 -16px -16px;
    border-radius: 20px 20px 0 0;
    padding-top: 30px;
    box-sizing: border-box;
    overflow: hidden;
}
.ques-page .answer-box .area-scroll {
    overflow-y: auto;
    height: 100%;
    animation-delay: 0.3s;
    box-sizing: border-box;
}
.ques-page .answer-box .basic {
    padding: 8% 12%;
    overflow: hidden;
}
.ques-page .answer-box .basic .item {
    float: left;
    width: 46%;
    margin-bottom: 12%;
}
.ques-page .answer-box .basic .item:nth-child(even) {
    margin-left: 8%;
}
.ques-page .answer-box .basic .item img {
    max-width: 60px;
    vertical-align: middle;
}
.ques-page .answer-box .sex {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6%;
}
.ques-page .answer-box .area-scroll {
    display: none;
}
.ques-page .answer-box .answ1 {
    display: block;
}

.ques-page .answer-box .sex .item img {
    max-width: 100px;
}
.ques-page .answer-box .sex .item {
    text-align: center;
    flex-grow: 1;
    cursor: pointer;
}
.ques-page .answer-box .item .txt {
    display: inline-block;
    font-size: 15px;
    line-height: 22px;
    vertical-align: middle;
}
.ques-page .answer-box .sex .item .txt {
    display: block;
    margin-top: 12px;
}
.ques-page .answer-box .basic .item .txt {
    margin-left: 8px;
}
.ques-page .answer-box .love {
    padding: 8% 12%;
    overflow: hidden;
}
.ques-page .answer-box .love .item img {
    max-width: 100px;
}
.ques-page .answer-box .love .item {
    float: left;
    width: 46%;
    margin-bottom: 8%;
    text-align: center;
}
.ques-page .answer-box .love .item:nth-child(even) {
    margin-left: 8%;
}
.ques-page .answer-box .love .item .txt {
    display: block;
    margin-top: 14px;
}
.ques-page .answer-box .feel {
    padding: 8%;
}
.ques-page .answer-box .feel img {
    width: 40%;
}
.ques-page .answer-box .book {
    padding: 8%;
    padding-top: 12px;
}
.ques-page .answer-box .book .item {
    text-align: center;
    border: 1px solid #dedede;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 24px;
}
.ques-page .answer-box .book .txt {
    font-size: 15px;
    line-height: 37px;
}
.progress-bar {
    height: 6px;
    border-radius: 100px;
    background: #cccabd;
    margin-bottom: 34px;
    margin-left: 20px;
    margin-right: 20px;
}
.progress-bar .bar {
    position: relative;
    display: inline-block;
    vertical-align: top;
    height: 100%;
    background: #358f5e;
    border-radius: 100px;
    overflow: visible!important;
}
.progress-bar .bar::after {
    position: absolute;
    content: '';
    width: 25px;
    height: 25px;
    border-radius: 100px;
    background: #cd2f2f;
    top: 50%;
    transform: translateY(-50%);
    right: -12px;
    z-index: 10;
}
.step1 {
    animation: step1 0.8s forwards;
}
@keyframes step1 {
    0% {width: 0}
    100% {width: 14.28%}
}
.step2 {
    animation: step2 0.8s forwards;
}
@keyframes step2 {
    0% {width: 14.28%}
    100% {width: 28.56%}
}
.step3 {
    animation: step3 0.8s forwards;
}
@keyframes step3 {
    0% {width: 28.56%}
    100% {width: 42.84%}
}
.step4 {
    animation: step4 0.8s forwards;
}
@keyframes step4 {
    0% {width: 42.84%}
    100% {width: 57.12%}
}
.step5 {
    animation: step5 0.8s forwards;
}
@keyframes step5 {
    0% {width: 57.12%}
    100% {width: 71.4%}
}
.step6 {
    animation: step6 0.8s forwards;
}
@keyframes step6 {
    0% {width: 71.4%}
    100% {width: 85.68%}
}
.step7 {
    animation: step7 0.8s forwards;
}
@keyframes step7 {
    0% {width: 85.68%}
    100% {width: 100%}
}

/* 로딩페이지 ============= */
.loading .logo {
    width: 123px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}
.loading .santa {
    display: block;
    width: 50%;
    margin: 0 auto;
}
.loading .select-item {
    width: 240px;
    margin: 16% auto 0;
}
.loading .select-item::after {
    content: '';
    display: block;
    clear: both;
}
.loading .select-item img {
    float: left;
    width: 60px;
    margin-right: 30px;
    margin-bottom: 30px;
}
.loading .select-item img:nth-child(3n) {
    margin-right: 0;
}
.loading .ques-txt {
    height: 25%;
}

/* 결과페이지 ========================= */
.result-page {
    text-align: center;
}
.result-page .wrap-inner {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}
.result-page .btn {
    display: block;
    text-align: center;
    font-size: 21px;
    line-height: 1.3;
    color: #313450;
    padding: 17px;
    border-radius: 16px;
    background: #F9F9FF;
}
.result-page .btn.refresh {
    background: #313450;
    color: #fff;
}
.result-page .area-share {
    background: #fff;
}
.result-page .area-share .wrap-inner {
    padding: 32px 16px 51px;
    box-sizing: border-box;
}
.result-page .area-share h3 {
    font-size: 24px;
    line-height: 30px;
    font-weight: normal;
    margin-bottom: 36px;
    word-break: keep-all;
}
.result-page .area-share .share-box {
    text-align: center;
    margin-bottom: 62px;
}
.result-page .area-share .share-box li {
    width: 44px;
    display: inline-block;
    cursor: pointer;
    margin-right: 10px;
}
.result-page .area-share .share-box li:last-child {
    margin-right: 0;
}
.result-page .area-share .logo {
    width: 123px;
    margin: 0 auto;
    display: block;
    margin-top: 69px;
}
.result-page .merry {
    width: 65px;
    margin-top: 24px;
    margin-bottom: 22px;
}
.result-page .red-box {
    padding: 40px 20px 0;
    border-radius: 20px;
    background: #C61818;
    color: #fff;
    margin: 0 28px;
}
.result-page .top-txt {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.result-page .santa {
    width: 125px;
    margin-bottom: 20px;
}
.result-page .santa-txt {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.result-page .desc {
    font-size: 15px;
    line-height: 1.5;
    color: #FFA1A1;
    margin-bottom: 20px;
}
.result-page .coupon-img {
    width: 249px;
    margin-bottom: 20px;
}
.result-page .membership-img {
    margin-bottom: 20px;
}
.result-page .how-to {
    border-radius: 16px;
    background: #920000;
    margin-top: 20px;
    padding: 10px;
}
.result-page .how-to .tit {
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 4px;
}
.result-page .how-to .sub {
    font-size: 15px;
    line-height: 1.5;
    color: #F66;
}
.result-page .result-book {
    margin-top: 48px;
}
.result-page .result-book .txt1 {
    font-size: 17px;
    line-height: 1.5;
}
.result-page .result-book .txt2 {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.result-page .book-box {
    position: relative;
    display: inline-block;
    margin-bottom: -28px;
}
.result-page .book-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 232px;
    height: 232px;
    background: #0e1830;
    border-radius: 100%;
}
.result-page .book-box img {
    position: relative;
    width: 170px;
    height: 238px;
    border-radius: 6px 12px 12px 6px;
    z-index: 100;
}
.result-page .chimney {
    width: 270px;
    z-index: 200;
    position: relative;
}
.result-page .fadeIn {
    animation: fadeIn ease 0.8s both;
}
.result-page .share-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 47px;
    padding: 0 48px;
    font-size: 21px;
    line-height: 1.3;
    text-align: left;
    word-break: keep-all;
}
.result-page .share-title img {
    width: 102px;
}
@media (min-width: 321px) {
    .result-page .area-share .share-box li {
        margin-right: 20px;
    }
}

/* 결과페이지 1단계 ============================ */
.check-page {
    text-align: center;
}
.check-page .merry {
    width: 65px;
    margin-top: 24px;
}
.check-page .santa {
    display: block;
    width: 122px;
    margin: 24px auto 18px;
}
.check-page .txt {
    text-align: center;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
}
.check-page .btn {
    background: #f9f9f9;
    color: #313450;
}
.check-page .area-bottom {
    position: absolute;
    width: calc(100% - 32px);
    bottom: 80px;
    left: 16px;
    animation-delay: 1.5s;
}
.check-page .chimney {
    position: relative;
    z-index: 500;
    width: 270px;
}
.check-page .present {
    position: absolute;
    width: 80px;
    top: -73px;
    right: 50%;
    transform: translateX(50%);
    margin-right: -60px;
    animation: presentAni ease 0.5s both;
    animation-delay:  1.7s;
}
.check-page .book {
    position: absolute;
    width: 200px;
    top: -199px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 10px;
    animation: bookAni ease 0.3s both;
    animation-delay: 1.5s;
}
@keyframes bookAni {
    0% {opacity: 0; margin-top: -100px;}
    100% {opacity: 1; margin-top: 0;}
}
@keyframes presentAni {
    0% {opacity: 0; margin-top: -130px;}
    100% {opacity: 1; margin-top: 0;}
}
.book-page {
    text-align: center; 
    display: none;
}
.book-page .wrap-flex {
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}
.book-page .merry {
    width: 65px;
    margin-top: 24px;
}
.book-page .book-box {
    position: relative;
}
.book-page .book-box::after {
    content: '';
    position: absolute;
    width: 232px;
    height: 232px;
    background: #0e1830;
    border-radius: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.book-page .book-img {
    width: 170px;
    height: 238px;
    border-radius: 6px 12px 12px 6px;
}
.book-page .book-box .hat {
    position: absolute;
    width: 61px;
    left: -31px;
    top: -16px;
}
.book-page .book-img-box {
    position: relative;
    display: inline-block;
    z-index: 100;
}
.book-page .btn {
    background: #f9f9ff;
    color: #313450;
}
.book-page .btn + .btn {
    margin-top: 11px;
}
.book-page .area-bottom {
    width: 100%;
    padding-bottom: 21px;
}
.book-page .book-tit {
    font-size: 21px;
    line-height: 1.3;
    color: #fff;
    margin: 24px 0 8px;
}
.book-page .book-author {
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
}
.present-page {
    text-align: center; 
    display: none;
}
.present-page .wrap-flex {
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}
.present-page .merry {
    width: 65px;
    margin-top: 24px;
}
.present-page .txt {
    font-size: 17px;
    color: #fff;
    line-height: 1.3;
}
.present-page .area-bottom {
    width: 100%;
    padding-bottom: 80px;
}
.present-page .btn {
    background: #f9f9ff;
    color: #313450;
}
.present-page .present-box {
    position: relative;
    width: 232px;
    height: 232px;
    margin-top: 40px;
}
.present-page .present-box::after {
    content: '';
    position: absolute;
    width: 232px;
    height: 232px;
    background: #0E1830;
    border-radius: 100%;
    top: 0;
    left: 0;
}
.present-page .present-box img {
    position: relative;
    z-index: 100;
}