/* style 관련 */
.main{
    width: 100%;
    height: 100%;
    background-color: #313B32;
    padding: 60px 20px 0px 20px;
    overflow-x: hidden;
}

/* 배경일러스트 고정 */
.background{
    width: 100%;
    height: 440px;
    position: fixed; top: 0; left: 0;
    background: url(/assets/img/main_illust_0924.png) center bottom no-repeat;
    z-index: 1;
    background-size: 518px 213px;
}

.n_coin1{
    width: 160px;
    position: absolute;
    top: 50%; left: 50%;
    
    z-index: 3;

    animation: coin1 8s infinite ease-in-out; 
}

.n_coin2{
    width: 143px;
    position: absolute;
    top: 28%; left: 50%;
    
    z-index: 2;
    animation: coin2 8s infinite ease-in-out;
}

@keyframes coin1 {
    0%{
        transform: translate(-50%, -12%) rotate(0deg);
    }
    25%{
        transform: translate(-48%, -15%) rotate(-3deg);
    }
    50%{
        transform: translate(-50%, -9%) rotate(3deg);
    }

    75% {
        transform: translate(-52%, -13%) rotate(-2deg);
    }

    100%{
        transform: translate(-50%, -12%) rotate(0deg);
    }
}
@keyframes coin2 {
    0%{
        transform: translateX(-85%) rotate(0deg);
    }
    25%{
        transform: translateX(-85%) rotate(-3deg);
    }
    50%{
        transform: translateX(-85%) rotate(3deg);
    }

    75% {
        transform: translateX(-85%) rotate(-2deg);
    }

    100%{
        transform: translateX(-85%) rotate(0deg);
    }
}

/* 헤더 : 타이틀, 내 포인트, 공지사항 아이콘 */
.header{
    /* background-color: rgba(255, 255, 255, .8); */
    /* border-radius: 16px; */
    position: fixed;
    z-index: 5;
    left: 20px; right: 20px;
    top: 24px;
}

.app_name {
    color: #fff;
    font-size: 16px;
    font-family: 'Paperlogy 7 Bold';
    line-height: 32px;
}

.header .noti{
    width: 28px;
    height: 28px;
}

.header .name_wrap{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.header .name {
    display: flex;
}

.header .h_p_coin{
    margin-right: 4px;
    width: 32px; height: 32px;
}



/* cont */


.cont{
    width: 100%; 
    min-height: calc(100vh - 480px);
    /* 배너 슬라이드 빠져서 수정 - > 추후 -196으로 수정 */
    overflow-y: auto;
    background-color: #fff;
    position: absolute;
    z-index: 10;
    left: 0; right: 0;
    top: 420px;
    border-radius: 28px 28px 0 0;
    /* padding: 32px 20px 0 20px; */

    -ms-overflow-style: none;
    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
    scroll-behavior:smooth; 

    touch-action: pan-y;
    overscroll-behavior-y: contain;

    transform: translateZ(0);
    will-change: scroll-position;
}

.cont::-webkit-scrollbar{
    display: none;
}

/* 바디 메뉴 */
.cont .body_menu{
    display: flex;
    width: 100%; height: auto;
    justify-content: space-evenly;
    /* gap: 40px; */
    margin-top: 32px;
    margin-bottom: 24px;
}

.body_menu li{
    width: 60px; height: auto;
}

.body_menu li a .img{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px; height: 60px;
    border-radius: 12px;
    background-color: #f8f8f8;
}

.body_menu li a p{
    width: 100%; height: auto;
    display: block;
    font-size: 12px;
    font-family: "Pretendard Variable";
    text-align: center;
    line-height: 100%;
    margin-top: 4px;
    font-weight: 500;
    padding: 4px 0;
}

/* 바디-배너 슬라이드 관련(수정 전) */
.banner{
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner_wrap{
    display: flex;
    width: calc(100% * 3 + 24px) !important;
    justify-content: center;
    gap: 12px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    transition: transform 0.5s ease;
    will-change: transform;
}



.banner_cont{
    width: calc((100% / 3) * .8);
    max-width: 720px;
    border-radius: 16px;
    overflow: hidden;
}

.banner_cont.first{
    background-color: yellow;
    text-align: center; padding-top: 40px;
    font-weight: 700;
}
.banner_cont.third{
    background-color: rgb(173, 255, 173);
    text-align: center; padding-top: 40px;
    font-weight: 700;
}

/* swiper 사용 */
.swiper{
    padding: 0 12px !important;
    max-width:100%;
    overflow: visible;
}
.swiper-slide.slidebox {
    /* border: 1px solid blue; */
    width: 88%;
    border-radius: 12px;
    overflow: hidden;
    max-width: 720px;
}

.swiper-slide.slidebox a{
    width: 100%;
}
.swiper-slide.slidebox a img{
    width: 100%;
}

/* 배너_페이저 */
.pager {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.pager .bar {
    width: 48px;
    height: 3px;
    background: #D9D9D9;
    border-radius: 2px;
    cursor: pointer;
}
.pager .bar.active{
    background: #222;
}

/* 쿠폰스토어 입점브랜드 */
.body_coupon{
    width: 100%;
    margin-top:32px;
    padding: 0 20px 60px 20px;
}
.tit_wrap{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 12px;
}
.b_tit{font-size: 16px;}
.more_btn{
    font-size: 14px; line-height: 1.2; color:#888; text-decoration: underline;
    text-underline-offset: 3px;
}

.tit{
    font-size: 16px;
    font-weight: 500;
}

.brand .line{
    width: 100%;
    display: flex;
    justify-content: center;
    gap:10px;
}

.brand .line li{
    flex: 1;
    margin-bottom: 20px;
}

.brand .line li .img{
    /* width: calc((100% - 36px) / 4); */
    width: 100%;
    height: 80px;
    border: 1px solid #ebebeb;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
}

.brand .line li .img img{
    max-height: 100%;
}

.brand .line li a p{
    width: 100%;
    padding: 0 4px;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
    padding-top: 8px;
}


/* 스플래시 페이지 */
.splash{width: 100%; height: 100%; background-color: var(--main-color); position: relative;}

.coin_tit_wrap{
    width: 100%; height: auto; position: absolute;
    top: 200px;
}       

.coin_wrap{
    position: relative;
    width: 118px; height: 118px;
    z-index: 9999;
    margin: 0 auto;
}

.coin_wrap .coin{
    width: 118px;
    position: absolute;
    top: 0;
} 

/* 코인 일러스트 관련 */
/* 녹색 코인 */
.coin_wrap .coin.p{
    z-index: 1; 
    animation: coin_p 5s forwards ease-in-out; 
    animation-delay: 0.3s; 
    opacity:0;
}

/* 그라데이션코인 */
.coin_wrap .coin.n{
    z-index: 0;
    animation: coin_n 5s
    forwards ease-in-out;
    animation-delay: 0.3s;
    opacity: 0;
}


/* 스플래시 - 화면 텍스트로고 */
.app_name.splash {
    display: block;
    text-align: center;
    color: #222;
    line-height: 1.3;
    font-size: 24px;
    margin-top: 16px;
    animation: textFadeIn 5s forwards ease-in-out;
    animation-delay: 0.3s;
    opacity: 0;
}

/* 화면 중앙 하단 텍스트 로고 */
.splash>.logo {
    display: block;
    width: 100px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border-radius: 0;
    padding: 0;
    height: auto;

    opacity: 0;
    animation: textFadeIn 5s forwards ease-in-out;
    animation-delay: 0.3s;
}

@keyframes coin_p {
    0%{opacity: 0;}
    13%{opacity: 1;}
    25%{transform: rotate(0deg); opacity: 1;}
    35%{transform: rotate(360deg); opacity: 0;}
    
    100%{transform: rotate(360deg); opacity: 0;}
}
@keyframes coin_n {
    0%{transform: rotate(0deg); opacity: 0;}
    25%{transform: rotate(0deg); opacity: 0;}
    35%{transform: rotate(360deg); opacity: 1;}
    100%{transform: rotate(360deg); opacity: 1;}
}

@keyframes textFadeIn {
    0%{opacity: 0;}
    13%{opacity: 1;}
    100%{opacity: 1;}
}



/* 로그인화면 - 텍스트로고 */
.app_name.splash.login{
    animation: none;
    opacity: 1 !important;
}

/* 로그인 */
.coin_tit_wrap.login{
    top: 100px;
}
.app_name.splash.login{color: #222; background-color: #f8f8f8;} 

.login_form{
    padding: 0 20px;
    margin-top: 260px;
    
    width: 100%; height: calc(100% - 260px);
}

.login_form input{
    width: 100%; height: 60px;
    border-radius: 16px;
    border: 1px solid #ebebeb;
    background-color: #fff;
    padding: 0 16px;
}

.login_form input::placeholder{
    font-weight: 400;
    font-size: 14px;
    color: #888;
}

.login_txt_wrap{
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* border: 1px solid red; */
    margin-top: 4px;
    margin-bottom: 52px;
    padding: 0 4px;
}

.login_txt_wrap a{font-size: 13px;}

.login_txt_wrap .txt_right a{padding: 0 8px;}
.login_txt_wrap .txt_right a:first-child{border-right:1px solid #222;}
.login_txt_wrap .txt_right a:last-child{padding-right: 0px;}

.btn_login{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
}

/* 아이디/비밀번호 찾기 */
.subpage.id_pw{
    padding:60px 20px;
}

.sub_txt.id_pw{font-size: 14px; font-weight: 400; color: #888; margin-bottom: 20px;}

.subpage.id_pw .tit{font-size: 20px; margin-bottom: 4px;}
.subpage.id_pw .my_box .tit.bold{font-size: 14px;}
.subpage.id_pw .tit span{color: var(--main-color);}

.inq_input_wrap input{
    margin-bottom: 8px;
}

.btn_id_search{
    display: block;
    width: 100%; height: 44px;
    font-size: 14px;
    font-weight: 700;
    padding: 0 !important;
    line-height: 44px;
}

.alert.modal.auth{padding: 20px; height: 234px;}
.alert.modal.auth.p20{padding: 20px; height: 230px !important;}

.input_auth{
    margin-top: 20px;
    width: 100%;
    /* border: 1px solid red; */
    padding:  8px 4px ;
    border-bottom: 1px solid #888;
    text-align: center;
    font-size: 24px;
    font-weight: 800;

    -moz-appearance: none;
    appearance: none;

    background: none;
    border-radius: 0;
    outline: none;

}

.alert.modal .user_id{
    font-size: 24px;
    font-weight: 800;
    color: #222;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 12px;
}

.txt_sub.pw{
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 20px;
}