mbnav{
    font-size: 1.5em;
    display: flex;
    align-items: center;    
    grid-row: 1;
    grid-column: 2 / span 5;
    z-index: 105;
    align-self: start;
    justify-self: end;
}
.navbar{        
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: start;
    list-style: none;
    position: relative;
    padding: 0px 20px;
    color: lightgray;
}
.menu{
    display: flex;
    list-style: none;
}
.menu li a{
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bolder;
    color: lightgray;
    text-align: center;
    transition: 0.15s ease-in-out;
    position: relative;
}
.menu li a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0px;
    height: 1px;
    background-color: lightgray;
    transition: 0.15s ease-in-out;
}
.menu li a:hover:after{
    width: 100%;
}
.open_menu, .close_menu {
    position: absolute;
    color: #a5a5a5;
    cursor: pointer;
    font-size: 1.5rem;
    display: block;
    margin-top: 40px;
    text-align: center;    
}
.open_menu{
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
.close_menu{
    top: 20px;
    right: 20px;
}
#check{
    display: none;
}
@media (min-width: 801px){
    .navbar{
        z-index: 77;        
    }
}
@media(max-width: 1200px){    
    .menu{
        padding-top: 30px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -150%;
        z-index: 100;
        background-color: rgba(0,0,0,0.9);
        transition: all 0.2s ease-in-out;    
        overflow: scroll;
    }
    .menu li {
        margin-top: 40px;
    }
    .menu li a{
        padding: 10px;
        color:lightgray;
    }    
    .open_menu , .close_menu{
        display: block;
    }
    #check:checked ~ .menu{
        right: 0;
    }
    #check:checked ~ .navbar{
        color:#A5a5a5
    }
}
@media (min-width: 1201px) {
    mbnav {
        grid-row: 1;
        grid-column: 2 / span 5;
        z-index: 105;
        align-self: start;
        justify-self: end;
    }
    .navbar{
        align-self: end;
        display: flex;    
        color:#A5a5a5        
    }
    .menu{
        display: flex;
        font-size: .7em;
        justify-content: center;
        align-items: center;
    }
    .menu li{
        padding: 0 10px;
    }
    .open-menu, .close-menu{
        display: none;
    }
}