*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#scroll-effect{
    animation: navbar-animate 1s ease-in-out;
}

.nav-container{
    width: 100%;
    background-color: none;
    position: fixed;
    z-index: 7;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: sans-serif;
}

.navbar{
    display: grid;
    grid-template-columns: 0.8fr auto 1fr;
    align-items: center;
    height: 80px;
    width: 90%;
    max-width:1720px;
    margin: 0 auto;
}

.navbar-logo{
    justify-self: start;
    margin-left: 20px;
    color: white;
}

.navbar-logo a{
    text-decoration: none;
    color: white;
}

.navbar-logo a:hover{
    transition: all 0.2s ease-in-out;
}

.nav-menu{
    display: grid;
    grid-template-columns: repeat(5, auto);
    list-style: none;
    width: 70%;
    justify-self: end;
    text-align: center;
}

.nav-links{
    color: white;
    text-decoration: none;
}

.nav-links:hover{
    transition: all 0.2s ease-in-out;
}

.menu-toggle .bar{
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: white;
}

@media screen and (max-width: 1520px){
    .nav-container{
        background-color:red;
    }

    .nav-menu{
        display:grid;
        grid-template-columns: auto;
        margin: 0;
        position:absolute;
        top:80px;
        left:-100%;
        opacity:0;
        transition: all 0.5s ease;
    }

    #navbar-logo{
        margin-left: 20px;
    }

    .nav-menu.active{
        background-color: red;
        left: 0;
        opacity:1;
        transition: all 0.5s ease;
    }

    .nav-links{
        text-align: center;
        line-height: 100px;
        width: 100%;
        display:table;
    }

    .nav-links:hover{
        color: white;
        transition: all 0.4s ease-out
    }

    .navbar{
        width: 100%;
    }

    #mobile-menu{
        position:absolute;
        top: 20%;
        right: 5%;
        transform: translate(15%, 20%);
    }

    .menu-toggle .bar{
        display: block;
        cursor: pointer;
    }

    .menu-toggle:hover{
        cursor:pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media screen and (max-width:300px){
    .nav-menu{
        width: 100%;
    }
}

@keyframes navbar-animate{
    from{
        transform: translateY(-100%);
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}