nav {
    font-size: 1.2em;
    font-weight: 100;
    background-color: var(--primary-color3);
    position: fixed;
    display: flex;
    margin-top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70px;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    transition: 0.8s;
    z-index: 1000;
}

nav:hover {
    background-color: var(--primary-color5);
}

nav a {
    color: var(--primary-color1);
}

/* ---> Style the navigation bar logo  <--- */
nav img {
    width: 70px;
    padding-left: 30px;
    padding-right: 0px;
}
/*  ----  */


.navbar-names {
    text-decoration: none;
}


/* ---> style logo names <--- */

/* hide when till certain width wide */
@media screen and (max-width: 1023px) {
    .navbar-names {
        display: none;
    }
}

/* show names when hovering while window size > 1023 */
@media screen and (min-width: 1024px) {
    .navbar-names {
        opacity: 0;
        transition: 1.2s;
    }

    nav:hover .navbar-names {
        opacity: 1;
    }
}
/*  ----  */



/* ---> Style the links inside the navigation bar <--- */
.navbar-links {
    flex: 1;
    text-align: right;
    padding-right: 20px;
}

.navbar-links li {
    list-style: none;
    display: inline-block;
    padding: 12px;
    position: relative;
}

.navbar-links li a {
    text-decoration: none;
    transition: 0.8s;
}

.navbar-links li a:hover {
    color: var(--primary-color2);
}

.navbar-links li::after {
    content: '';
    width: 0%;
    height: 3px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.navbar-links li:hover::after {
    width: 100%;
    transition: 0.8s;
}
/*  ----  */

@media (max-width: 1230px) {
    nav {
        width: 100%;
    }
}

@media (min-width: 701px) {
    #bars {
        display: none;
    }
}

.nav-overlay {
    background-color: #fff;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: 0.5s;
} 
  
.overlay-content {
    position: relative;
    top: 30%;
    width: 100%;
    margin: auto;
    text-align: left;
    margin-top: 30px;
}
  
.nav-overlay a {
    padding: 8px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: 100;
    color: var(--primary-color1);
    display: block;
    transition: 0.3s;
}
  
.nav-overlay a:hover, .overlay a:focus {
    color: var(--primary-color2);
}

.nav-overlay .closebtn {
    color: var(--primary-color1);
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    font-weight: 100;
}

@media (max-width: 700px) {
    .navbar-links li:not(li.bars) {
        display: none;
    }

    /* .navbar-links.overlay li a {
        float: none;
        display: block;
        text-align: left;
    } */
}

.side-bar {
    background-color: var(--primary-color3);
    border-radius: 50px;
    border: 2px;
    position: absolute;
    z-index: 1;
    top: 20vh;
    right: 5vw;
    overflow-x: hidden;
    height: 50vh;
    width: 250px;
  }
