header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 98;
}

nav {
    width: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s;
}

#gnb {
    position: relative;
    position: fixed;
    top: 0; right: -500px;
    padding-top: 8rem;
    padding-left: 4rem;
    width: 450px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background-color: #151515;
    transition: all .1s ease;
    z-index: 100;
}

.gnb-copyright {
    position: absolute;
    bottom: 4rem; left: 4rem;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

#gnb.show {
    right: 0;
}

#gnb li a {
    color: #ddd;
    font-size: 26px;
    font-weight: 700;
    padding-left: 40px;
    opacity: 0;
    visibility: hidden;
}

#gnb li a.pl {
    opacity: 1;
    visibility: visible;
    padding-left: 0;
    transition: all .6s ease;
}

#gnb li:nth-of-type(1) a.pl {
    transition-delay: 0s;
}
#gnb li:nth-of-type(2) a.pl {
    transition-delay: .1s;
}
#gnb li:nth-of-type(3) a.pl {
    transition-delay: .2s;
}
#gnb li:nth-of-type(4) a.pl {
    transition-delay: .3s;
}
#gnb li:nth-of-type(5) a.pl {
    transition-delay: .4s;
}
#gnb li:nth-of-type(6) a.pl {
    transition-delay: .5s;
}
#gnb li:nth-of-type(7) a.pl {
    transition-delay: .6s;
}
#gnb li:nth-of-type(8) a.pl {
    transition-delay: .7s;
}
#gnb li:nth-of-type(9) a.pl {
    transition-delay: .8s;
}

.toggleBtn {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    cursor: pointer;
}

.toggleBtn.change {
    margin-bottom: 4px;
}

.toggleBar {
    width: 21px;
    height: 2px;
    background-color: #fff;
}

.bar-color {
    background-color: #111;
}

.Bar1 {
    width: 16px;
}
.Bar2 {
    width: 22px;
}
.Bar3 {
    width: 19px;
}

.tm-closeBtn {
    position: absolute;
    top: 0; right: 0;
    width: 22px;
    height: 22px;
    display: none;
    cursor: pointer;
    z-index: 100;
}

.tm-closeBar {
    width: 22px;
    height: 2px;
    background-color: #fff;
}

.tm-closeBtn .Bar1 {
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
}

.tm-closeBtn .Bar3 {
    position: absolute;
    top: 50%;
    transform: rotate(-45deg);
}

.logo-w, .logo {
    width: 120px;
    max-width: 120px;
}

.active {
    display: none;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 99;
}

.overlay.on {
    opacity: 1;
    visibility: visible;
}


/*==================================================*/
@media (min-width: 850px) {
    #gnb li a.actives {
        color: var(--main-color);
    }

    .fp-viewing-main #gnb li:nth-of-type(1) a.pl,
    .fp-viewing-about #gnb li:nth-of-type(2) a.pl,
    .fp-viewing-experience #gnb li:nth-of-type(3) a.pl,
    .fp-viewing-skills #gnb li:nth-of-type(4) a.pl,
    .fp-viewing-publications #gnb li:nth-of-type(5) a.pl,
    .fp-viewing-education #gnb li:nth-of-type(6) a.pl,
    .fp-viewing-career #gnb li:nth-of-type(7) a.pl,
    .fp-viewing-awards #gnb li:nth-of-type(8) a.pl,
    .fp-viewing-contact #gnb li:nth-of-type(9) a.pl {
        color: var(--main-color);
    }
    
    .fp-viewing-about .logo-w,
    .fp-viewing-skills .logo-w,
    .fp-viewing-education .logo-w {
        display: none;
    }
    
    .fp-viewing-about .logo,
    .fp-viewing-skills .logo,
    .fp-viewing-education .logo {
        display: flex;
    }

    .fp-viewing-about #fp-nav ul li a span, .fp-slidesNav ul li a span,
    .fp-viewing-skills #fp-nav ul li a span, .fp-slidesNav ul li a span,
    .fp-viewing-education #fp-nav ul li a span, .fp-slidesNav ul li a span {
        background-color: rgba(0, 0, 0, .2);
    }

    .fp-viewing-about #fp-nav ul li a.active span, #fp-nav ul li:hover a.active span, .fp-slidesNav ul li a.active span, .fp-slidesNav ul li:hover a.active span,
    .fp-viewing-skills #fp-nav ul li a.active span, #fp-nav ul li:hover a.active span, .fp-slidesNav ul li a.active span, .fp-slidesNav ul li:hover a.active span,
    .fp-viewing-education #fp-nav ul li a.active span, #fp-nav ul li:hover a.active span, .fp-slidesNav ul li a.active span, .fp-slidesNav ul li:hover a.active span {
        background: rgba(0, 0, 0, .5);
    }

    .fp-viewing-about .Bar1,
    .fp-viewing-about .Bar2,
    .fp-viewing-about .Bar3 {
        background-color: #222;
    }

    .fp-viewing-about .tm-closeBtn .Bar1,
    .fp-viewing-about .tm-closeBtn .Bar3 {
        background-color: #fff;
    }

    .fp-viewing-skills .Bar1,
    .fp-viewing-skills .Bar2,
    .fp-viewing-skills .Bar3 {
        background-color: #222;
    }

    .fp-viewing-skills .tm-closeBtn .Bar1,
    .fp-viewing-skills .tm-closeBtn .Bar3 {
        background-color: #fff;
    }

    .fp-viewing-education .Bar1,
    .fp-viewing-education .Bar2,
    .fp-viewing-education .Bar3 {
        background-color: #222;
    }

    .fp-viewing-education .tm-closeBtn .Bar1,
    .fp-viewing-education .tm-closeBtn .Bar3 {
        background-color: #fff;
    }
}



@media (max-height: 700px) {
    .gnb-copyright {
        display: none;
    }
}


@media (max-width: 1150px) {
    header {
        height: 75px;
    }
    
    nav {
        padding: 0 20px;
    }
}


@media (max-width: 850px) {
    header {
        height: 60px;
    }
    
    .Fixed {
        background-color: #fff;
    }

    .logo-w, .logo {
        width: 85px;
        max-width: 85px;
    }
}


@media (max-width: 550px) {
    .gnb-copyright {
        display: none;
    }
    
    #gnb {
        width: 80%;
        padding-top: 5rem;
        padding-left: 3rem;
        gap: 2rem;
    }

    #gnb li a {
        font-size: 20px;
    }
}