/* NAVBAR */

button#menu{
    display: none;
    border: none;
    background-color: transparent;
    height: 40px;
    position: absolute;
    right: 1rem;
    cursor: pointer;
}

button#menu img {
    height: 40px;
}
nav {
    font-size: 1.3rem;
    padding: .5rem;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

nav ul li {
    margin: 0 .5rem;
}

nav ul li a {
    color: var(--black-color);
    transition: .3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li:first-child {
    font-size: 1.8rem;
    margin-right: auto;
    font-weight: 800;
}

nav ul li:last-child {
    background-color: var(--secondary-color);
    padding: .5rem;
    border-radius: .5rem;
    transition: .3s;
}

nav ul li:last-child:hover {
    background-color: var(--first-color);
}

nav ul li:last-child button {
    border: none;
    font-size: 1.2rem;
    background-color: transparent;
    cursor: pointer;
}

@media screen and (max-width: 768px) {

    button#menu {
        top: 0;
    }

    nav {
        display: none;
    }
    
    header {
        display: flex;
        align-items: center;
        height: 40px;
        position: relative;
    }

    header.active {
        height: 100vh;
        width: 100%;
        position: fixed;
        background-color: var(--yellow-color);
        z-index: 2;
    }

    nav.active {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header nav ul {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        font-size: 3rem;
    }

    nav ul li a {
        font-size: 3.5rem;
    }

    nav ul li:last-child button {
        font-size: 2rem;
    }

    nav ul li:first-child {
        margin: 0;
    }

    nav ul li,
    nav ul li:first-child {
        margin-bottom: 2rem;
    }

    button#menu {
        display: block;
    }
}
 