/* MOBILE */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    padding: 1.5em;

    background-color: rgb(30, 30, 30);
}

#header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#name {
    color: white;
    font-size: 1rem;
    font-weight: lighter;
}

#name:hover {
    color: rgb(57, 167, 211);
}

#hamburger-icon {
    color: white;
    font-size: 1.5rem;    

    background: none;
    border: none;

    cursor: pointer;
}

.line {
    display: none;
    margin: 0.875em;
}

.line.show {
    display: flex;
}

#nav-bar {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
} 

#nav-bar.show {
    display: flex;
}

#nav-bar ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 1em; 
    padding: 0.875em;
}

.nav-section {
    display: flex;

    font-size: 1rem;
    color: white;
    text-decoration: none;
}

/* TABLET */
@media (min-width: 600px) {

    #name_menu-icon h2 {
        font-size: 1.5rem;
    }   

    #nav-bar ul {
        gap: 1.5em;
   }

    .nav-section {
        font-size: 1.3rem;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    
    nav {   
        display: flex;
        align-items: center;
        justify-content: space-between;     
    }

    .line.show {
        display: none;
    }

    #hamburger-icon {
        display: none;
    }

    #nav-bar {
        display: flex;
        flex-direction: row;
    }

    #nav-bar ul {
        flex-direction: row;
        gap: 1.5em;
    }   

    .nav-section {
        font-size: 1.1rem;
    }

    .nav-section:hover {
        color: rgb(57, 167, 211);
    }
}