/* ******************************************
    Advanced Checkbox Hack
    http://timpietrusky.com/advanced-checkbox-hack
****************************************** */

body {
    -webkit-animation: bugfix infinite 1s;
}

@-webkit-keyframes bugfix {
    from {padding:0;}
    to {padding:0;}
}

input.toggle-checkbox {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

label.toggle-menu {
    background-image: url("../img/icon-down-arrow.png");
    background-position: 0 50%;
    background-repeat: no-repeat;
    background-size: 10px 5px;
    cursor: pointer;
    display: block;
    padding-left: 1.25em;
    position: absolute;
    right: 2.25em;
    user-select: none;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
    label.toggle-menu {
        /* background-image: url("../img/icon-down-arrow@2x.png"); */
    }
}

input.toggle-checkbox:checked ~ nav {
    background: #fff;
    -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px -4px 4px 0px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px -4px 4px 0px;
    left: 0;
    /* position: relative;
    top: 0; */
    position: absolute;
    top: 7.2em;
    width: 100%;
}

/* Change toggle button when checked */
/*
input.toggle-checkbox:checked ~ label {
    background: #999;
}
*/
