<style type="text/css">
    *{
        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: 170px;
        height: 35px;
        margin-left: 10px;
    }
    .logo img{
        display: block;
    }
    nav{}
    nav a{
        display: block;
        text-decoration: none;
        padding: 10px 20px;
    }
    @media screen and (max-width:767px) {
        nav{
            width: 80%;
            height: calc(100vh - 50px);
            background-color: #828282;
            position: absolute;
            top: 50px;
            left: -100%;
            transition: .5s;
        }
        nav a{
            color: #a6e22c;
            border-bottom: 1px solid #a6e22c;
        }
        .logo img{
            padding: 7px;
        }
        #menu_control:checked ~ .header nav{
            left: 0;
            position: fixed; 
        }
        .menu_btn{
            width: 40px;
            height: 40px;
            background-color: #828282;
            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: 3px;
            left: 6px;
            width: 28px;
            background-color: #eee;
            top: 0;
            bottom: 0;
            margin: auto;
            box-shadow: 0px 8px 0px #eee,
                        0px -8px 0px #eee;
        }
    }
    @media screen and (min-width:768px) {
        .menu_btn{display: none;}
        .header{
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        nav{
            position: relative;
            left: 0;
            display: flex;
            width: auto;
            height: auto;
            top: 0;
            background-color: transparent;
        }
        nav a{
            border-bottom: none;
            color: #551199;
        }
    }
</style
>