
#menu {
    position: absolute;
    top: 0px;
    right: 100%;
    z-index: 500;
    border: 1px solid #5a5a5a;
    border-top: 0;
    border-left: 0;
    width: calc(100% - 36px);
    height: 100%;
    animation-name: menu-toggled-out;
    animation-duration: 0.5s;
    background: white;
}


#menu.toggled {
    animation-name: menu-toggled-in;
    animation-duration: 0.5s;
    right: 36px;
}

@keyframes menu-toggled-out {
    from {right: 36px}
    to {right: 100%}
}

@keyframes menu-toggled-in {
    from {right: 100%}
    to {right: 36px}
}

#menu nav {
    padding: 5px;
    height: calc(100% - 115px);
}



#menubutton {
    color: #000000;
    background: #fff;
    
    width:30px;
    height:30px;
    
    position:absolute;
    top:-1px;
    right: -31px;
    z-index: 500;
    
    border-radius: 0px 0px 6px 0;
    -webkit-border-radius: 0px 0px 6px 0px;
    -moz-border-radius:0 0 6px 0;
    
    border-right:1px solid #5a5a5a;
    border-bottom:1px solid #5a5a5a;
    margin: 0px;
    padding: 0px;
    cursor: pointer;


}

#menubutton:hover i {
    color: #d4d4d4;
}

#menubutton i {
    margin: 0px;
    padding: 8px 0px 0px 6px;
    color: #5a5a5a;
}

#menubutton .fa-arrow-left {
    display: none;
    position: relative;
    top: -1px;
}

#menubutton .fa-arrow-right {
    display: block;
}

#menu.toggled #menubutton .fa-arrow-right {
    display: none;
}
#menu.toggled #menubutton .fa-arrow-left {
    display: block;
}

#menubutton:before {
    content:' ';
    
    border-radius: 6px 0 0 0;
    -moz-border-radius:6px 0 0 0;
    -webkit-border-radius:6px 0 0 0;
    
    border-top:1px solid #5a5a5a;
    
    position:absolute;
    top: 0px;
    left: 30px;
    
    width:6px;
    height:6px;
    
    z-index:1000;
    
    box-shadow: -1px -1px 0px 1px #fff;
    -webkit-box-shadow: -1px -1px 0px 1px #fff;
    -moz-box-shadow: -1px -1px 0px 1px #fff;
}

#menubutton:after {
    content:' ';
    
    border-radius: 6px 0 0 0;
    -moz-border-radius:6px 0 0 0;
    -webkit-border-radius:6px 0 0 0;
    
    border:solid #5a5a5a;
    border-width:1px 0 0 1px;
    
    width:6px;
    height:6px;
    position:absolute;
    top:30px;
    left:0px;
    z-index:1000;
    
    box-shadow: -1px -1px 0px 1px #fff;
    -webkit-box-shadow: -1px -1px 0px 1px #fff;
    -moz-box-shadow: -1px -1px 0px 1px #fff;
}

/*larger screen hide the menu button and always show the menu */
@media (min-width: 900px) {

    #menu {
        position: absolute;
        top:0px;
        left:-350px;
        width: 350px;
    }

    #menu.toggled {
        left: 0px;
    }

    @keyframes menu-toggled-in {
        from {left: -350px}
        to {left: 0px}
    }

    @keyframes menu-toggled-out {
        from {left: 0px}
        to {left: -350px}
    }
}