/*.main-nav:after {
    clear: both;
    content: "\00a0";
    display: block;
    height: 0;
    font: 0px/0 serif;
    overflow: hidden;
}*/

/*#main-menu {
    clear: both;
}*/

#main-nav {
    position: relative;
    text-align: center;
    z-index: 10;
}

#main-menu {
    width: 100%;
    max-height: 100%;
    padding-left: 16px;
    z-index: 2;
}

#main-menu > .share > a {
    padding: 13px 5px;
    display:inline-block;
}

@media (min-width: 1025px) {
    #main-menu {
        text-align: center;
        /*float: right;*/
        clear: none;
        width: 100%;
    }

        #main-menu > li {
            display: inline-block;
        }
}


/* Mobile menu toggle button */

.main-menu-btn {
    right: 0;
    padding: 14px;
    position: fixed;
    display: inline-block;
    width: 50px;
    height: 50px;
    text-indent: 99px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index: 10;
}


/* hamburger icon */

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
    position: absolute;
    top: 50%;
    right: 22px;
    height: 2px;
    width: 24px;
    background: #fff;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
}

    .main-menu-btn-icon:before {
        content: '';
        top: -7px;
        right: 0;
    }

    .main-menu-btn-icon:after {
        content: '';
        top: 7px;
        right: 0;
        width: 16px;
    }


/* x icon */

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
    height: 0;
    background: transparent;
}

    #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
        top: 0;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        background: #555;
    }

    #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
        top: 0;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        background: #555;
        width: 100%;
    }


/* hide menu state checkbox (keep it visible to screen readers) */

#main-menu-state {
    position: fixed;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}


    /* hide the menu in mobile view */

    #main-menu-state:not(:checked) ~ #main-menu {
        display: none;
    }

    #main-menu-state:checked ~ #main-menu {
        display: block;
    }

@media (min-width: 1025px) {
    /* hide the button in desktop view */
    .main-menu-btn {
        position: absolute;
        top: -99999px;
    }
    /* always show the menu in desktop view */
    #main-menu-state:not(:checked) ~ #main-menu {
        display: block;
    }
}
