/* Disable inline menu for smaller screens */
@media only screen and (max-width: 800px) {
    #main-menu-optional-id {
        display: none;
    }
}

/*based on https://codepen.io/shieldsma91/pen/zLpbLX*/

#menuToggle a {
    text-decoration: none;
    /*color: #1E1E23;*/
    opacity:1;
    /*font-family: 'work sans', sans serif;*/
    font-size: 1.5em;
    font-weight: 400;
    transition: 200ms;
     /*background-color: red;*/
}
a:hover {
    opacity:0.5;
}
ul {
    padding: 0;
    list-style-type: none;
}

#menuToggle a:hover {
    /*background-color: #1E1E23;*/
    /*opacity: 0.5;*/
    /*color: #0E1316;*/
    color: #1E1E23;
    /*background-color: #f78e21;*/
}
/*nav:hover {*/
/*    background-color: #1E1E23;*/
/*}*/
/*nav ul:hover {*/
/*    background-color: red;*/
/*}*/
nav {
    /*background-color: #1E1E23;*/
    background-color: #f78e21;
    /*height: 65px;*/
    /*width: 80px;*/
    /*top: 120px;*/
    /*left:30px;*/

    /*height: 65px;*/
    /*width: 70px;*/
    /*top: 45px;*/
    /*left:20px;*/

    /*height: 65px;*/
    /*width: 60px;*/
    /*top: 30px;*/
    /*left:30px;*/

    /*!* to *!*/
    /*height: 65px;*/
    /*width: 60px;*/
    /*top: 40px;*/
    /*left:32px;*/

    /* lub to */

    height: 55px;
    width: 50px;
    top: 37px;
    left:37px;


    margin: -30px;

    position: relative;
    z-index: 1000;
}


#menuToggle {
    display: flex;
    flex-direction: column;
    position: relative;
    /*top: 25px;*/
    top: 20px;
    /*top: 15px;*/
    /*left: 25px;*/
    /*left: 15px;*/
    left: 10px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle input
{
    display: flex;
    width: 40px;
    height: 32px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

#menuToggle span
{
    display: flex;
    width: 29px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 5px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    opacity 0.55s ease;
}

#menuToggle span:first-child
{
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
    transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span
{
    opacity: 1;
    transform: rotate(45deg) translate(-3px, -1px);
    background: #36383F;
}
#menuToggle input:checked ~ span:nth-last-child(3)
{
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2)
{
    transform: rotate(-45deg) translate(0, -1px);
}

#menu
{
    position: absolute;
    width: 240px;
    height: 400px;
    box-shadow: 0 0 10px #85888C;
    margin: -50px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;
    background-color: #F5F6FA;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
    padding: 10px 0;
    transition-delay: 2s;
}

#menuToggle input:checked ~ ul
{
    transform: none;
}

