/******************* Navbar *******************/



.navbar {

    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*font-size: 16px;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, .96);
    /*box-shadow: 0 0 20px 0 rgba(0, 0, 0, .04);*/
    /*border-bottom:1px solid #eaeaea;*/
    z-index: 1001;
}

.navbar.bk-bg {
    background-color: rgba(0, 0, 0, .92);
    color: white;
    border-bottom:none;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 64px;
    z-index: 1;
    width: 100%;
    max-width: 1046px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar-logo {
    display: flex;
    align-items: center;
}

#navbar-logo img {
    width: 146px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar-item {
    /*height: 70px;*/
}

a.navbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 10px;
    height: 100%;
    color: var(--gray1);
    border-radius: 8px;
    transition: all 0.3s ease;
}


.bk-bg .navbar-links {
    color: #fff
}

.navbar-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:14px;
    /*padding: 0 1rem;*/
    /*color: #6409DB;*/
    /*font-weight:bold;*/
    /* width: 100%; */
}

.navbar-btn a.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 5px 12px;
    /* height: 100%; */
    /* width: 100%; */
    color: var(--gray1);
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ebebeb;
    transition: all 0.3s ease;
}

.navbar-btn a.button:hover {
    border-color: #e0e0e0;
    background-color: #d6d6d6;
}


.bk-bg .button {
    color: black;
    /*border-color: #fff;*/
}

.button:hover {
    color: white;
    /*background: #6409DB;*/
    border-color: #6409DB;
    background-color: #4a07a3;
}

.navbar-links:hover {
    background-color: #f5f5f5;
}

.bk-bg .navbar-links:hover {
    color: #525252;
}

/* 로그온 박스 */

.logon.mobile {
    display: none
}

#logon-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logon-box > div {
    padding: 0 8px;
}

#wallet-icon a {
    display: block;
    width: 32px;
    height: 32px;
    background: url("../img/gnb_wallet.png") no-repeat center;
    background-size: contain
}

.bk-bg #wallet-icon a {
    background: url("../img/gnb_wallet_w.png") no-repeat center;
    background-size: contain
}

#logon-box .id-email {
    line-height: 26px;
    text-align: center;
    display: block;
    width: 28px;
    height: 28px;
    background: #eff0fd;
    color: #304cff;
    border-radius: 50%;
    overflow: hidden;
}

#logon-box {
    position: relative;
}

#logon-email {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

#logon-email .more-tab {
    display: none;
}

#logon-email .more-tab {
    position: absolute;
    z-index: 1;
    top: 60px;
    left: 26px;
    width: 128px;
    border-radius: 6px;
    border: 1px solid rgba(151, 151, 151, 0.2);
    background: #fff
}

#logon-email .more-tab.locale {
    left: -20px;
    width: 60px
}

#logon-email .more-tab li {
    float: none;
    padding: 0;
    margin: 0
}

#logon-email .more-tab li:first-child a {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#logon-email .more-tab li:last-child a {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#logon-email .more-tab li a {
    display: block;
    color: #17171d !important;
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(151, 151, 151, 0.2)
}

#logon-email .more-tab li a:hover {
    color: #fff !important;
    background: #304cff
}

#logon-email .more-tab li:last-child a {
    border: none
}

#logon-email:hover .more-tab {
    display: block
}


@media screen and (max-width: 1024px) {

    .navbar {
        border-bottom: 1px solid var(--gray3);
        background-color: rgba(255, 255, 255, .96);
    }

    #navbar-logo svg {
        width: 152px;
        height: 24px;
    }

    .logon.pc {
        display: none
    }

    .logon.mobile {
        display: block;
        border-top:1px solid #eaeaed;
    }

    .logon.mobile > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logon.mobile a {
        font-size: 16px;
        /*padding: 0 12px;*/
    }

    .navbar-container {
        display: flex;
        justify-content: space-between;
        /*height: 80px;*/
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        /*padding: 0;*/
    }

    .navbar-menu {
        position: absolute;
        top: -1000px;
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        opacity: 1;
        /*transition: all 0.5s ease;*/
        /*height: 50vh;*/
        z-index: -1;
    }

    .navbar-menu.active {
        margin:0 -50px;
        padding: 0;
        background: white;
        top: 100%;
        opacity: 1;
        /*transition: all 0.3s ease;*/
        z-index: 1099;
        /* height: 50vh; */
        /*font-size: 16px;*/
        box-shadow: 0 10px 10px rgba(0,0,0,.02);
    }

    .bk-bg .navbar-menu.active {
        background: rgba(0, 0, 0, .96);
    }

    #navbar-logo {
        /*padding-left: 15px;*/
    }

    .navbar-toggle .bar {
        width: 14px;
        height: 2px;
        margin: 3px auto;
        border-radius: 2px;
        transition: all 0.15s ease-in-out;
        background: var(--gray);
    }

    .bk-bg .navbar-toggle .bar {
        background: white
    }

    .navbar-item {
        width: 100%;
        padding: 16px 50px;
    }

    a.navbar-links {
        justify-content: space-between;
        width: 100%;
        padding: 0;
        font-size: 16px;
        /*display: table;*/
    }

    .navbar-links:hover {
        background-color: inherit;
    }

    .navbar-links span {
        font-size: inherit;
    }

    .bk-bg .navbar-links:hover {
        color: inherit;
    }

    .navbar-btn {
        padding: 50px 50px 20px;
    }


    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        width: 100%;
        height: 52px;
        margin: 0;
    }

    #mobile-menu {
        position: absolute;
        top: 28%;
        right: 50px;
        transform: translate(5%, 20%);
    }

    .navbar-toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
}


@media screen and (max-width: 768px) {

    .navbar-container {
        padding: 0 20px;
    }

    #mobile-menu {
        right: 20px;
    }

    .navbar-menu.active {
        margin: 0 -20px;
    }

    .navbar-links {
        padding: 0;
    }

    .navbar-item {
        padding: 13px 20px;
        margin-top: 8px;
    }

    .navbar-btn {
        padding: 20px;
        margin-top: 40px;
    }




}


/* mobile 추가 */

.mobile {
    display: none!important;
}

@media screen and (max-width: 1024px) {

    .mobile {
        display: block!important;
    }

    .pc {
        display: none!important;
    }
}

