/* NAVigation
 * -------------------------------- --*/
 .bar {
    display: block;
    width: 100%;
    height: 10px;
    margin: 15px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--second-bg-color);
}

@media screen and (min-width: 980px) {
    #bar3.light,
    #bar2.light,
    #bar1.light {
        background-color: var(--main-bg-color);
    }

    #bar3.dark,
    #bar2.dark,
    #bar1.dark {
        background-color: var(--second-bg-color);
    }
}

.hamburger {
    width: 60px;
}

.hamburger:hover #bar2{
    width: 30px;
    }
 
.nav {
    background-color: transparent;!important;
    z-index: 100;
    position: fixed;
    width: 100%;
}

.navbar {
    display: flex;
    z-index: 100;
}

@media only screen and (max-width: 980px) {
    .nav {
        background-color: var(--main-bg-color);
        height: 90px;
    }
}

.topnav {
  overflow: hidden;
  display: flex;
  flex-grow: 1;
}

.hamburger {
    position: absolute;
    right: 0;
    margin: 0px 25px;
    cursor: pointer;
}

.home {
    background: url('../image/gfx-logo-02.svg');
    height: 45px;
    width: 150px;
    display: inline-block;
    margin-top: 25px;
    margin-left: 35px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.home.fade-out {
    opacity: 0;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    -webkit-transform: translateY(8px) rotate(45deg);/*8px;*/
    transform: translateY(25px) rotate(45deg);/*8px;*/
}

.hamburger.active .bar:nth-child(3) {
    -webkit-transform: translateY(-8px) rotate(-45deg);/*-8px;*/
    transform: translateY(-25px) rotate(-45deg);/*-8px;*/
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: left;
    position: fixed;
    left: 100%;
    top: 5em;/*5rem*/
    flex-direction: column;
    width: 320px;
    border-radius: 5px 0 0 5px;
    text-align: left;
    transition: 0.5s;
    box-shadow:
        0 10px 27px rgba(0, 0, 0, 0.05);
    background-color: black;
    color: var(--main-txt-color);
    padding-left: 1em;
    text-transform: uppercase;

}

.gfx-logo {
    height: auto;
    width: 60%;
    display: block;
    margin: 10px 20px 0 0;
    float: right;
}

.nav-menu.active {
    left: calc(100% - 320px);
}

.nav-item {
    margin-left: 5rem;
    margin: 1rem 0;
    list-style-type: none;
}

.nav-link{
    font-size: 2rem;
    font-weight: 400;
    color: var(--main-txt-color);
    text-decoration: none;

}

.nav-link:hover{
    color: var(--select-item-color);
}

.nav-logo {
    margin: 3rem .5rem .5rem;
    color: white;
    text-align: right;
}

.bottom-nav-item {
    margin: 0rem 0;
    padding: 0 40px;
    font-size: .8em;
    font-weight: 500;
}
