@import url('font/font.css');

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    overflow-x: hidden;
    cursor: none;
    background: var(--background-color);
}
html.loading,
body.loading {
    overflow: hidden !important;
    height: 100%;
}


#header {
    position: fixed;
    top: -30px; left: 0;
    width: 100%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
}
#header.show {
    top: 0;
    opacity: 1;
}

.thead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px 13px;
}
.thead .logo a {
    display: block;
}
.thead .logo img {
    width: 108px;
}
.thead .right-head {
    display: flex;
    align-items: center;
    gap: 20px;
}
.thead .right-head .notice-button {
    display: flex;
    align-items: center;
    gap: 20px;
}
.thead .right-head .notice-button a {
    position: relative;
    display: block;
    width: 90px;
    padding: 8px 0;
    text-align: center;
    border: 2px solid #fff;
    border-radius: 50px;
}
.thead .right-head .notice-button a > span {
    font-family: 'Anta';
    transition: all 0.3s ease;
}
.thead .right-head .notice-button a.new::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border: 2px solid #fff;
    border-radius: 100%;
}
.blinking {
    animation: blink-fast 0.6s ease-in-out;
}
@keyframes blink-fast {
    0%, 100% { opacity: 1; }
    10%, 30%, 50%, 70%, 90% { opacity: 0; }
    20%, 40%, 60%, 80% { opacity: 1; }
}
.thead .right-head .lang-button a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--wh-color);
}

.header-marquee {
    margin: 0 40px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255, 0.2);
    overflow: hidden;
    white-space: nowrap;
}
.header-marquee .header-marquee-inner {
    display: flex;
    align-items: center;
    gap: 5px;
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
}
.header-marquee span {
    font-family: var(--eng-font);
    font-size: 14px;
    opacity: 0.8;
    animation: marquee 40s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media only screen and (max-width: 1023px) {
    .thead {
        padding: 20px 25px 13px;
    }
    .thead .logo img {
        width: 58px;
    }
    .thead .right-head {
        gap: 15px;
    }
    .thead .right-head .notice-button a {
        width: 75px;
        padding: 5px 0;
    }
    .thead .right-head .notice-button a > span {
        font-size: 14px;
    }
    .thead .right-head .lang-button a {
        font-size: 14px;
    }

    .header-marquee {
        margin: 0 25px;
    }
    .header-marquee span {
        font-size: 12px;
    }
}


.music-btn {
    position: fixed;
    bottom: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 24px;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
}
.music-btn.show {
    opacity: 1;
}
.music-btn .ani {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.music-btn .ani span {
    display: block;
    width: 3px;
    height: 20px;
    background: white;
    border-radius: 4px;
    animation: wave 1s infinite ease-in-out;
    animation-play-state: running;
}
.music-btn .ani span:nth-child(1) { animation-delay: 0s; }
.music-btn .ani span:nth-child(2) { animation-delay: 0.1s; }
.music-btn .ani span:nth-child(3) { animation-delay: 0.2s; }
.music-btn .ani span:nth-child(4) { animation-delay: 0.3s; }
.music-btn .ani span:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}
/* 음악 멈춤 상태일 때 wave 비활성화 */
.music-btn:not(.playing) .ani span {
    animation-play-state: paused;
}
.music-btn em {
    font-family: 'Anta';
}

/****************** sub content ******************/
.sub-content-wrap {
    position: relative;
    padding: 104px 0 0;
}
.sub-content-wrap.gra-bg:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    z-index: -1;
    background: linear-gradient(to bottom, var(--main-color), var(--background-color));
    opacity: .4;
}

.sub-content-wrap .sub-content {
    padding: 90px 0 120px;
}

.sub-content-wrap .particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/****************** sub visual ******************/
.sub-visual h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 80px 40px;
    font-family: 'Anta';
    font-size: 80px;
    word-break: keep-all;
}
.sub-visual h2.ko {
    font-weight: 500;
    font-family: inherit;
}
.sub-visual h2::after {
    content: "";
    display: block;
    width: 3px;
    height: 80px;
    background: #fff;
    animation: blink-caret 0.9s steps(1) infinite;
}
@keyframes blink-caret {
    50% {
        visibility: hidden;
    }
}
@media only screen and (max-width: 1023px) {
    .sub-visual h2 {
        padding: 60px 40px;
        font-size: 50px;
    }
}
@media only screen and (max-width: 1023px) {
    .sub-visual h2 {
        padding: 40px 40px;
        font-size: 42px;
    }
}

.sub-cont-title {
    display: block;
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
}
@media only screen and (max-width: 1023px) {
    .sub-cont-title {
        margin-bottom: 30px;
        font-size: 28px;
    }
}
@media only screen and (max-width: 767px) {
    .sub-cont-title {
        font-size: 22px;
    }
}

/****************** 팝업 ******************/
.popup-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    align-items: center; 
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    cursor: auto;
}
.popup-wrap .popup-box {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 40px 40px;
    background: var(--black2);
    border-radius: 10px;
}
.popup-wrap .popup-box .close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M2.28167 0.39147C1.7597 -0.13049 0.913438 -0.13049 0.391468 0.39147C-0.130489 0.913444 -0.130489 1.75971 0.391468 2.28169L8.10978 10L0.391548 17.7184C-0.130409 18.2403 -0.130409 19.0866 0.391548 19.6085C0.913518 20.1305 1.75978 20.1305 2.28174 19.6085L9.99996 11.8902L17.7182 19.6085C18.2402 20.1305 19.0865 20.1305 19.6084 19.6085C20.1303 19.0866 20.1303 18.2403 19.6084 17.7184L11.8901 10L19.6086 2.28169C20.1305 1.75971 20.1305 0.913444 19.6086 0.39147C19.0866 -0.13049 18.2403 -0.13049 17.7184 0.39147L9.99996 8.10984L2.28167 0.39147Z" fill="white"/></svg>');
}

/****************** 로그인 팝업 ******************/ 
.popup-box.login-form > strong {
    display: block;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
}
.popup-box.login-form input {
    margin-bottom: 10px;
}

/****************** footer ******************/
#wrapper.main #footer {
    margin-top: -117px;
}
#footer {
    padding: 0 40px;
}
.footer-inner {
    position: relative;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255, 0.1);
}
.footer-inner > .foot-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-bottom: 20px;
    z-index: 1;
}
.footer-inner .foot-menu li a {
    font-weight: 600;
    font-size: 13px;
}
.footer-inner .copyright {
    font-size: 13px;
    text-align: center;
    opacity: .6;
}
.footer-inner .business-num {
    margin-bottom: 14px;
    text-align: center;
    font-size: 13px;
}
.footer-inner .business-num > span {
    font-weight: 600;
}
.footer-inner .login-btn {
    position: absolute;
    top: 50%;
    right: 0;
    font-family: 'Anta';
    font-size: 13px;
    z-index: 1;
    transform: translateY(-50%);
}
.footer-inner .login-btn.logout {
    display: none;
}
@media only screen and (max-width: 600px) {
    .footer-inner .login-btn {
        position: relative;
        top: inherit;
        display: block;
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }
}
