/*
    Mobile Menu
    
    The mobile menu is a slide drawer which slides out from the left of the page. 
    This CSS file is accompanied by the "~/theme/common/js/mobile-menu.js" file,
    which adds all of the required JavaScript for menu interactions.
*/
/*
    @section Mobile Menu Toggle
    
    The burger menu icon has a click event to open #mobile-menu.
*/
.mobile-menu-toggle {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 26px;
    height: 23px;
    font-size: 0;
    text-indent: -9999px;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: none;
    border: none;
    cursor: pointer;
    transition: background /*style.animation_speed(*/0.2s/*)*/;
    }
.mobile-menu-toggle span {
    display: block;
    position: absolute;
    top: 10px;
    left: 0px;
    right: 0px;
    height: 2px;
    background: /*style.header_text_color(*/#E5E5E5/*)*/;
    transition: background 0s /*style.animation_speed(*/0.2s/*)*/;
    }
.mobile-menu-toggle span:before,
.mobile-menu-toggle span:after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: /*style.header_text_color(*/#E5E5E5/*)*/;
    transition-duration: /*style.animation_speed(*/0.2s/*)*/,/*style.animation_speed(*/0.2s/*)*/;
    transition-delay: /*style.animation_speed(*/0.2s/*)*/,0s;
    }
.mobile-menu-toggle span:before {
    top: -8px;
    transition-property: top,transform;
    }
.mobile-menu-toggle span:after {
    bottom: -8px;
    transition-property: bottom,transform;
    }
.mobile-menu-toggle.is-active span {
    background: none !important;
    }
.mobile-menu-toggle.is-active span:before,
.mobile-menu-toggle.is-active span:after {
    transition-delay: 0s,/*style.animation_speed(*/0.2s/*)*/;
    }
.mobile-menu-toggle.is-active span:before {
    top: 0;
    transform: rotate(45deg);
    }
.mobile-menu-toggle.is-active span:after {
    bottom: 0;
    transform: rotate(-45deg);
    }

/**
    @section Disable body scrolling
    
    When the mobile menu is open, only the menu itself should be scrollable. 
    Scrolling on the main page is disabled to prevent multiple scroll points.
 */
html.is-menu-open,
html.is-menu-open body {
    overflow: hidden;
    }

/**
    @section Mobile Menu Container
    
    The mobile menu is sliding drawer, which is closed by default and 
    uses CSS transform to slide open rather than using JavaScript animations. 
 */
#mobile-menu {
    background-color: /*style.header_background_color(*/#000/*)*/;
    color: /*style.header_text_color(*/#E5E5E5/*)*/;
    height: 100vh;
    width: 100%;
    max-width: 300px;
    position: fixed;
    z-index: 100;
    top: 0;
    box-shadow: 3px 3px 27px rgba(0,0,0,.4);
    transform: translateX(-110%);
    transition: all .25s ease-in-out;
    display: flex;
    flex-direction: column;
    }
#mobile-menu.is-open {
    transform: translateX(0);
    }

/**
    @section Mobile menu header
    
    Contains a close button. 
 */
#mobile-menu header {
    text-align: right;
    flex: initial;
    }

/**
    @section Menu Nodes
    
    General styling of the menu node hierarchy. 
 */
#mobile-menu nav {
    flex: 1;
    overflow: auto;
    }
#mobile-menu .menu-container {
    overflow: hidden;
    }
#mobile-menu .evMenu {
    padding: 0 1em;
    position: relative;
    transition: transform .25s ease-in-out;
    }
#mobile-menu .evMenu ul {
    border: 0;
    padding: 0 1em;
    box-shadow: none;
    width: 100%;
    position: absolute;
    transition: transform .25s ease-in-out;
    min-width: auto;
    margin: 0;
    }
#mobile-menu .evMenu li {
    position: static;
    display: block;
    }
#mobile-menu .evMenu li a {
    border: 0;
    font-size: 1rem;
    padding: 1em;
    border-radius: 5px;
    white-space: normal;
    }
#mobile-menu .evMenu li:hover > a,
#mobile-menu .evMenu li:focus > a,
#mobile-menu .evMenu li:active > a,
#mobile-menu .evMenu li.active > a,
#mobile-menu .evMenu li.open > a {
    background-color: transparent;
    text-decoration: none;
    }
#mobile-menu .evMenu li:hover > ul,
#mobile-menu .evMenu li:focus > ul,
#mobile-menu .evMenu li:active > ul,
#mobile-menu .evMenu li.active > ul,
#mobile-menu .evMenu li.open > ul {
    display: none;
    }

/**
    @section Selected Menu Nodes
    
    A "is-selected" class is added to parent <li> nodes
    when clicked via JavaScript in the file:
    "~/theme/common/js/mobile-menu.js"
 */
#mobile-menu .evMenu li.is-selected > ul {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    }

/**
    @section Parent Menu Items
    
    Add a chevron to all parent nodes in the menu
    to denote the availability of child nodes. 
 */
#mobile-menu .evMenu li.evMenuParent > a {
    padding: 1em 2em 1em 1em;
    position: relative;
    }
#mobile-menu .evMenu li.evMenuParent > a:after {
    font-family: "ev2";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e092";
    font-size: 16px;
    position: absolute;
    right: .5em;
    top: 50%;
    margin-top: -.5em;
    }

/**
    @section Mobile menu back buttons
    
    A back button is added via JavaScript in the 
    "~/theme/common/js/mobile-menu.js" file to all menu items that 
    are parent nodes. 
 */
#mobile-menu .evMenu li.menu-back {
    border-bottom: 1px solid /*style.header_border_color(*/#2A2A2A/*)*/;
    margin-bottom: .5em;
    }
#mobile-menu .evMenu li.menu-back a {
    position: relative;
    padding-left: 38px;
    font-weight: bold;
    }
#mobile-menu .evMenu li.menu-back a:after {
    font-family: "ev2";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e095";
    font-size: 16px;
    position: absolute;
    left: .5em;
    top: 50%;
    margin-top: -.5em;
    }

/**
    @section Mega Meny in Mobile Menu
    
    Mega menu should not have any effect/styling for the mobile
    menu otherwise it interferes with the sliding functionality. 
*/
#mobile-menu .evMenu li.evMenuMegamenu > ul > li {
    float: none;
    }
#mobile-menu .evMenu li.evMenuColumn {
    padding: 0;
    }
#mobile-menu .evMenu li.evMenuColumn > ul {
    padding: 0;
    }

/**
    @section Grid Menu in Mobile Menu
    
    Administrators may select a "grid menu" format, which
    shows a thumbnail image alongside the title and description
    for page/category objects. 
*/
#mobile-menu .evMenu li.evMenuGrid > ul > li.evMenuLinkHasThumbnail > a {
    padding-left: 60px;
    min-height: auto;
    }
#mobile-menu .evMenu li.evMenuGrid > ul > li.evMenuLinkHasThumbnail > a .evMenuLinkDescription {
    font-size: 90%;
    }
#mobile-menu .evMenu li.evMenuGrid > ul > li.evMenuLinkHasThumbnail > a .evMenuLinkThumbnail {
    width: 48px;
    height: 48px;
    left: 0;
    }

/**
    @section Mobile Menu Overlay
    
    An overlay which covers the page behind the mobile menu. 
    This should accept click events to close the mobile menu
    when the menu is open.
 */
#mobile-menu-overlay {
    background: var(--blanket-background);
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    width: 100%;
    z-index: 99;
    pointer-events: none;
    transition: opacity .25s ease-in-out;
    opacity: 0;
    }
#mobile-menu-overlay.is-open {
    opacity: .6;
    pointer-events: all;
    }
