@font-face {
    font-family: 'NEXON Lv2 Gothic';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv2 Gothic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'NEXON Lv2 Gothic';
}

html,
body {
    font-family: 'NEXON Lv2 Gothic';
    background-color: #292F38;
}

#deckgl-wrapper, #bg-map-wrapper, #upper-map-wrapper {
    cursor: default !important;
}

#bg-map-wrapper {
    transition: opacity 0.8s ease;
}


.logo-part {
    position: fixed;
    bottom: 60px;
    left: 100px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: start;
    transition: right 0.3s ease;
}

.logo {
    width: 200px;
    margin-bottom: 20px;
}
.start-desc {
    font-size: 1.5em;
    color: white;
    text-shadow: 2px 2px 6px black;
    margin-bottom: 20px;
    width: 300px;
    word-break: keep-all;
}

.start-btn {
    width: 150px;
    height: 50px;
    background-color: white;
    font-size: 1.2em;
    line-height: 50px;
    text-align: center;
    border-radius: 60px;
    cursor: pointer;
    color: #63349A;
    transition: all 0.2s;
    font-weight: bolder;
    box-shadow: 10px 10px 0px 0px #63349A;
}
.start-btn:hover {
    color: white;
    background-color: #63349A;
    transform: translate(10px, 10px);
    box-shadow: none;
}

.textBox {
    position: fixed;
    z-index: 800;
    left: 100px;
    top: 80px;
    width: 320px;
}

#sidoNm {
    /* z-index: 800;
    position: fixed;
    top: 80px;
    left: 100px; */
    font-size: 2em;
    color: white;
    text-shadow: 2px 2px 6px black;
    margin-bottom: 20px;
}

#sidoDesc {
    /* z-index: 800;
    position: fixed;
    top: 80px;
    right: 100px; */
    font-size: 1.5em;
    color: white;
    text-shadow: 2px 2px 6px black;
    width: 300px;
}

/* 두근거리는 원 애니메이션 + 문의사항버튼*/
.contact-wrapper {
    position: absolute;
    z-index: 999;
    right: 50px;
    bottom: 60px;
    width: 46px;
    height: 46px;
    overflow: visible;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 125px;
    height: 125px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: pulseEffect 1.5s ease-out;
    z-index: -1;
}

.contact-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: pulseEffect 2s ease-out 0.3s;
    z-index: -2;
}

.contact {
    position: absolute;
    right: 0; /* 오른쪽 고정 */
    width: 46px;
    height: 46px;
    background-color: white;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 아이콘부터 시작 */
    transition: width 0.3s ease, right 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes pulseEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.contact-wrapper:hover .contact {
    width: 120px;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin: 0 8px;
}

.contact-text {
    white-space: nowrap;
    color: #63349A;
    font-weight: bolder;
    font-size: 14px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* hover 시 텍스트 등장 */
.contact-wrapper:hover .contact-text {
    opacity: 1;
}

/* 버튼 효과 */
.button.button--shikoba {
    cursor: pointer;
    font-family: 'NEXON Lv2 Gothic';
    font-size: 14px;
    font-weight: bold;
    padding: 1em 30px 1em 50px;
    overflow: hidden;
    background: #fafafa;
    color: #63349A;
    border-color: #37474f;
    -webkit-transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    border-radius: 20px;
    position: relative;
}

.button--shikoba.button--inverted {
    color: #fff;
    background: #63349A;
}

.button--shikoba > span {
    display: inline-block;
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
    transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
}

.button--shikoba .button__icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
    -webkit-transform: translate3d(-40px, 2.5em, 0);
    transform: translate3d(-40px, 2.5em, 0);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
    transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
}

.button--shikoba::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 8h12m0 0l-4-4m4 4l-4 4' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate3d(0, 2.5em, 0) translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.75, 0, 0.125, 1);
    opacity: 0;
}

.button--shikoba:hover .button__icon,
.button--shikoba:hover > span {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.button--shikoba:hover::after {
    transform: translate3d(0, 0, 0) translateY(-50%);
    opacity: 1;
}

.button--shikoba:hover {
    background: #63349A;
    border-color: #63349A;
    color: #fff;
}


/* 사이드바 */
.contactBox {
    position: fixed;
    z-index: 888;
    background-color: #F1F3F9;
    right: 0;
    top: 0;
    height: 100%;
    width: 0px;
    transition: width 0.3s ease;
    box-sizing: border-box;
}

.contactBox input {
    display: none;
}

#contactToggle {
    display: none;
}

.infinity-scroll-wrapper {
    height: calc(100% - 360px);
    overflow: scroll;
    background: #fff;
    border-radius: 10px;
}

.infinity-scroll-wrapper,
.contactInput {
    width: calc(100% - 20px);
    margin-left: 10px;
    
}

.infinity-scroll {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.infinity-scroll-item {
    font-size: 14px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
    padding: 15px 0;
    color:#1a1a1a;
}

.infinity-scroll-item:last-child {
    padding-bottom: 0;
}

.infinity-scroll-item:first-child {
    border-top:0;
    padding-top: 0;
}

/* 문의사항 입력 */
.searchInput {
    width: calc(100% - 20px);
    display: flex;
    background: #fff;
    margin-left: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 5px 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
}

.searchInput input {
    background-color: #fff;
    border: none;
    line-height: 34px;
    margin-left: 10px;
    outline: none;
    width: calc(100% - 65px);
    padding-left: 10px;
    box-sizing: border-box;
}

.searchInput button {
    cursor: pointer;
    color: #fff;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    background-image: url(./images/search.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    background-color: #fff;
}

.contactInput {
    padding-top: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: #fff;
    margin-top: 10px;
}

.contactInput input,
.contactInput textarea {
    border: none;
}

.contactInput input::placeholder,
.contactInput textarea::placeholder,
.searchInput input::placeholder {
    color: #B4B5B7;
}

.contactInput .emailInput {
    width: 100%;
    height: 38px;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0px 10px 5px 10px;
}

.contactInput textarea {
    width: calc(100% - 20px);
    border: none;
    height: 150px;
    resize: none;
    margin: 10px;
    border-bottom: 1px solid #eee;
}

.contactInput textarea:focus,
.searchInput input:focus {
    background-color: #F4F2FF;
}

.contactInput .emailInput,
.contactInput textarea {
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
    color:#1a1a1a;
}

.contactInput .flex {
    display: flex;
    padding: 0px 10px 10px 10px;
    justify-content: space-between;
}

.contactInput .flex button {
    cursor: pointer;
    border: none;
    background-color: #F4F2FF;
    color: #63349A;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 20px;
}

.contactInput .flex input {
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.contactInput .flex svg {
    width: 20px;
}

.infinity-scroll-item div {
    font-size: 14px;
    color:#1a1a1a;
}

.infinity-scroll-item .qnaBox .time {
    font-size: 12px;
    display: flex;
    color:#B6B6B6;
}

.infinity-scroll-item .qnaBox .time span:first-child {
    margin-right: 15px;
    position: relative;
}

.infinity-scroll-item .qnaBox .time span:first-child:after {
    content: '';
    display: block;
    width: 1px;
    height: 10px;
    background-color: #e4e4e4;
    position: absolute;
    right: -7px;
    top: 2px;
}


.infinity-scroll-item .qnaBox .txt {
    font-size: 16px;
    color:#1a1a1a;
    margin: 10px 0;
}

.infinity-scroll-item .anserTime {
    font-size: 12px;
}

.qnaBox .step {
    background-color: #EBF3FF;
    color: #3869FF;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    display: inline-block;
}

.infinity-scroll-item .anser .txt {
    background: #F8F8FA;
    padding: 10px;
    display: block;
    margin-bottom: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 14px;
    color: #555;
}

.infinity-scroll-item .anser .time {
    color:#aaa;
    background: #F8F8FA;
    padding: 0 10px 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}



@media (max-width: 720px) {
    #sidoNm {
        left: 25px;
        font-size: 1.5em;
    }

    #sidoDesc {
        right: unset;
        left: 25px;
        top: 120px;
        font-size: 1.2em;
    }

    .contact {
        left: unset;
        right: 25px;
        width: 40px;
        height: 40px;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }

    .contact:hover {
        width: 105px;
    }

    .contact-text {
        font-size: 0.9em;
    }

    .logo-part {
        right: unset;
        left: 25px;
        bottom: 40px;
    }
    
    .logo {
        width: 150px;
        margin-bottom: 10px;
    }

    .start-desc {
        width: 250px;
        font-size: 1.1em;
    }

    .start-btn {
        width: 110px;
        font-size: 0.9em;
        height: 40px;
        line-height: 40px;
        box-shadow: 5px 5px 0px 0px #63349A;
    }

    .textBox {
        left: 25px;
    }

    .contact-wrapper::before,
    .contact-wrapper::after {
        left: 2%;
    }
}