*{
    margin: 0;
    padding: 0;
    list-style: none;
}
#menu_control{
    position: absolute;
    z-index: -2;
    opacity: 0;
}
.header{
    height: 50px;
    background-color: #ccc;
    position: relative;
}
.logo{
    width: 60px;
    height: 40px;
    margin-left: 20px;
}
.logo a{
    display: block;
    height: 40px;
}
.logo img{
    display: block;
    height: 40px;
}
.menu_btn{
    width: 40px;
    height: 40px;
    background-color: #000;
    display: block;
    position: absolute;
    top: 5px;
    right: 10px;
}
.menu_btn span{
    opacity: 0;
    width: 1px;
    height: 1px;
    display: block;
    overflow: hidden;
}
.menu_btn::before{
    content: "";
    position: absolute;
    height: 2px;
    left: 2px;
    width: 36px;
    background-color: #aaa;
    top: 0;
    bottom: 0;
    margin: 0;
    margin: auto;
    box-shadow: 0px 8px 0px #aaa,
                0px -8px 0px #aaa;
}
nav a{
    display: block;
    text-decoration: none;
    color: #a6e22c;
    padding: 10px 20px;
    border-bottom: 1px solid #a6e22c;
}
#menu_control:checked ~ .header nav {
    left: 0;
}
@media screen and (max-width:767px){
    nav{
        width: 80%;
        height: calc(100vh - 50px);
        background-color: #282923;
        position: absolute;
        top: 50px;
        left: -100%;
        transition: .5s;

    }
}
@media screen and (min-width:768px) {
    .menu_btn{ display: none; }
    .header{
        display: flex;
        justify-content: space-between;
        background-color: #282923;
        align-items: center;
    }

    nav{
        position: relative;
        left: 0;
        display: flex;
        width: auto;
        height: auto;
        top: 0;
        background-color: transparent;
    }
    nav a{
        border-bottom: none;
    }
}