/*!
 * jquery-drawer v3.2.2
 * Flexible drawer menu using jQuery, iScroll and CSS.
 * http://git.blivesta.com/drawer
 * License : MIT
 * Author : blivesta <design@blivesta.com> (http://blivesta.com/)
 */

/*!------------------------------------*\
    Base
\*!------------------------------------*/

.drawer-open {
    overflow: hidden !important;
}

.drawer-nav {
    position: fixed;
    z-index: 1001;
    top: 0;
    overflow: hidden;
    width: 35vw;
    min-width: 300px;
    height: 100%;
    color: #fff001;
    background: #FFFFFF;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}


.drawer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}


/*! overlay */

.drawer-overlay {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: url(/toraco/img/bg_pattern_francfranc.png) repeat center center;
    background-size: 20% auto;
}

.drawer-open .drawer-overlay {
    display: block;
}



/*!------------------------------------*\
    Right
\*!------------------------------------*/

.drawer--right .drawer-nav {
    right: -35vw;
    -webkit-transition: right .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
    transition: right .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}

.drawer--right.drawer-open .drawer-nav {
    right: 0;
}

.drawer--right .drawer-hamburger,
.drawer--right.drawer-open .drawer-navbar .drawer-hamburger {
    right: 30px;
}

.drawer--right.drawer-open .drawer-hamburger {
    right: 30px;
}

/*!------------------------------------*\
    Hamburger
\*!------------------------------------*/

.drawer-hamburger {
    position: fixed;
    z-index: 1004;
    top: 20px;
    right: 30px;
    display: block;
    box-sizing: content-box;
    width: 60px;
    height: 60px;
    -webkit-transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
    transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    border: 0;
    outline: 0;
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
}

.drawer-hamburger::after {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent url(/toraco/img/menu.jpg) no-repeat 0 0;
    background-size: contain;
    width: 60px;
    height: 60px;
    content: "";
    display: block;
}

.drawer-hamburger::before {
    position: absolute;
    top: 4px;
    right: -4px;
    background: #000000;
    width: 60px;
    height: 60px;
    content: "";
    display: block;
}

.drawer-hamburger:active::after {
    top: 2px;
    right: -2px;
}



.drawer-hamburger:hover {
    cursor: pointer;
}

.drawer-open .drawer-hamburger::after {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent url(/toraco/img/menu_close.jpg) no-repeat 0 0;
    background-size: contain;
    width: 60px;
    height: 60px;
    content: "";
    display: block;
}

.drawer-open .drawer-hamburger:active::after {
    top: 2px;
    right: -2px;
}



/*!------------------------------------*\
    accessibility
\*!------------------------------------*/

/*!
 * Only display content to screen readers
 * See: http://a11yproject.com/posts/how-to-hide-content
 */

.sr-only {
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

/*!
 * Use in conjunction with .sr-only to only display content when it's focused.
 * Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
 * Credit: HTML5 Boilerplate
 */

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    overflow: visible;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
}

@media screen and (max-width: 1024px) and (orientation: portrait){
    .drawer-nav {
        width: 80vw;
    }

    .drawer--right .drawer-nav {
        right: -80vw;
    }
    .drawer-open .drawer-overlay {
        background: url(/toraco/img/bg_pattern_francfranc.png) repeat top left;
        background-size: 50% auto;
    }

}



@media screen and (max-width: 767px) {
    .drawer--right .drawer-hamburger,
    .drawer--right.drawer-open .drawer-navbar .drawer-hamburger {
        right: 15px;
    }

    .drawer--right.drawer-open .drawer-hamburger {
        right: 15px;
    }

    .drawer-nav {
        width: 100vw;
        height: calc(100% - 104px);
    }

    .drawer--right .drawer-nav {
        right: -100vw;
        top: 52px;
    }
    .drawer-overlay {
        background-size: cover;
    }

    .drawer-open .drawer-overlay {
        display: block;
    }

    .drawer-open .drawer-overlay::after {
        width: 182px;
        height: 116px;
        top: 42px;
        bottom: auto;
        right: 0;
        left: 0;
        background-size: contain;
    }

    .drawer-hamburger {
        top: 10px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .drawer-hamburger::after {
        width: 32px;
        height: 32px;
    }

    .drawer-hamburger::before {
        top: 2px;
        right: -2px;
        width: 32px;
        height: 32px;
    }
    .drawer-open .drawer-hamburger::after {
        width: 32px;
        height: 32px;
    }
    .drawer-overlay{
        background: url(/toraco/img/bg_pattern_dazzlin.png) repeat top left;
        background-size: 50% auto;
    }
}

