/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/cssplay-responsive-multi-level-two.html
Copyright (c) Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
/* Adjust the size and position of the touch screen menu icon background */
.trigger {width:50px; height:50px; position:fixed; left:0; top:0; z-index: 1400; background:#2a3f54; color:#fff; border-radius:0 0 6px 0;
-webkit-transition: 0.5s;
-o-transition:  0.5s;
-moz-transition:  0.5s;
transition:  0.5s;
}
/* Adjust the touch screen menu icon properties */
.trigger label {display:block; width:50px; height:50px; position:absolute; left:0; top:0; background:url(menu-icon.png) no-repeat center center; cursor:pointer;} 
.trigger label span {position:absolute; left:-9999px;}

input.submenus,
input#toggle {position:absolute; display:none;}

/* Add our logo right to the menu */
.menuHolder {width:100%; position:fixed; right:0; top:0; background: #2a3f55 url(../../../images/msm-logo-white2.png) no-repeat 4px 4px; z-index:1400;}
.menu {float:right; 
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
-ms-touch-action: none;
}

.menu ul {margin:0; padding:0; list-style:none; white-space:nowrap; text-align:left;}

.menu li {display:block; position:relative;}

.menu ul ul {position:absolute; left:-9999px; top:50px; padding:10px 0; z-index:0; border-radius:0 0 5px 5px;
-webkit-transition: opacity 0.5s;
-o-transition: opacity 0.5s;
-moz-transition: opacity 0.5s;
transition: opacity 0.5s;
}
.menu ul ul ul {left:100%; top:auto; margin-top:-35px; border-radius:5px;}
.menu ul li.left > ul {left:auto; right:0; top:50px;}
.menu ul li.left ul li > ul {left:auto; right:100%; top:auto; margin-top:-35px;}

.menu > ul {margin:0 auto;}

/* Added right border to main menu */
.menu > ul > li {float:left; position:relative; border-right: 1px solid #3b5d7b;}

.menu ul {background:#2a3f55;}

.menu a {display:block; text-transform:uppercase; font:normal 13px/25px 'texgyreadventorbold', 'lucida sans', arial, sans-serif; color:#fff; text-decoration:none; padding:0 40px 0 20px; position:relative; z-index:10;}

.menu div {line-height:50px;
    padding: 0 40px 0 20px;
    display: block;
    text-transform: uppercase;
    font: normal 13px/25px 'texgyreadventorbold', 'lucida sans', arial, sans-serif;
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 10;}

.FormButton {
    font-family: 'Quicksand', Verdana, sans-serif;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 6px;
}

.menu > ul > li > a {line-height:50px;}
.menu > ul > li > label {display:block; position:relative; width:100%; margin-top:-50px; height:50px; background: url(trans.gif); z-index:100;
-webkit-transition:0s 0.5s;
-o-transition:0s 0.5s;
-moz-transition:0s 0.5s;
transition:0s 0.5s;
}
.menu ul ul > li > label {display:block; position:relative; margin-top:-25px; width:100%; height:25px; background: url(trans.gif); z-index:100;
-webkit-transition:0s 0.5s;
-o-transition:0s 0.5s;
-moz-transition:0s 0.5s;
transition:0s 0.5s;
}
.menu ul li.back {display:none;}

.menu li:hover > label {width:0;}
.menu li.left ul a {text-align:right; padding:0 20px 0 40px;}

.menu li:hover > a,
.menu ul li:hover > a {color:#fff; background:#3b5d7b; text-decoration:underline;}

.menu ul li a.hassub { background: url(arrow-down.png) no-repeat right center;}
.menu li ul li a.hassub { background: url(arrow-right.png) no-repeat right center;}
.menu li.left ul li a.hassub {background: url(arrow-left.png) no-repeat left center;}
.menu ul li:hover > a.hassub {color:#fff; background-color:#3b5d7b; text-decoration:underline;}
.menu li.left ul li:hover > a.hassub {color:#fff; background-color:#3b5d7b; text-decoration:underline;}

.menu > ul {*display:inline;}

.menu ul ul,
.menu ul ul ul,
.menu ul li.left > ul,
.menu ul li.left ul li > ul {left:-9999px; right:auto; opacity:0;}

.menu ul li:hover > ul {left:0; opacity:1;}
.menu ul ul li:hover > ul {left:100%; opacity:1;}
.menu ul li.left:hover > ul {left:auto; right:0; opacity:1;}
.menu ul li.left ul li:hover > ul {left:auto; right:100%; opacity:1;}


/* for narrow screns, tablets and smartphones */

@media (max-width: 800px) {
.menuHolder {position:fixed; left:-280px; width:280px; top:0; bottom:0; height:auto; overflow-x:hidden; background:#2a3f54;
-webkit-transition: left 0.5s;
-o-transition: left 0.5s;
-moz-transition: left 0.5s;
transition: left 0.5s;
}
.menu {width:260px; text-align:center; position:absolute; z-index:100; background:#2a3f54; left:0; top:0; border-right:1px solid #3b5d7b;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
-ms-touch-action: none;
-webkit-transition:0.5s;
-o-transition:0.5s;
-moz-transition:0.5s;
transition:0.5s;
}

.menu ul {margin:0; padding:0; width:260px; list-style:none; white-space:nowrap; text-align:left; border-radius:0; background:#2a3f54; border-right:1px solid #3b5d7b;}

.menu li {display:block; position:static; width:260px; height:50px; border-top:1px solid #3b5d7b; border-bottom:1px solid #3b5d7b;}
.menu ul li.back {display:block;}

.menu ul ul {position:absolute; left:280px; top:-5000px; padding:0; z-index:0; opacity:1; background:#2a3f54;
-webkit-transition:0s 0.5s;
-o-transition:0s 0.5s;
-moz-transition:0s 0.5s;
transition:0s 0.5s;
}
.menu ul ul ul {left:300px; top:-5000px; margin-top:0; opacity:1;}


.menu ul li.left > ul {left:280px; right:auto; top:-5000px;}
.menu ul li.left ul li > ul {left:280px; right:auto; top:-5000px; margin-top:0;}

.menu > ul {margin:0;}
.menu > ul > li {float:left; position:static;}

.menu ul {background:#2a3f54;}

.menu a {display:block; font:normal 13px/50px  'texgyreadventorbold', 'lucida sans', arial, sans-serif; color:#eee; border-radius:0 5px 5px 0; text-decoration:none; padding:0 0 0 20px; margin-right:50px; position:relative; z-index:10; background:transparent;}
.menu > ul > li > a {line-height:50px;}
.menu > ul > li > label,
.menu ul ul > li > label {display:block; position:relative; margin-top:-46px; margin-right:4px; width:40px; height:40px; border:1px solid #3b5d7b; border-radius:4px; float:right; background: #2a3f56 url(arrow-right.png) no-repeat center center; z-index:100; cursor:pointer;
-webkit-transition:0s;
-o-transition:0s;
-moz-transition:0s;
transition:0s;
}

.menu li:hover > label {width:40px;}
.menu li.left ul a {text-align:left; padding:0 40px 0 20px;}

.menu ul li:hover > a {color:#eee; background:#2a3f54; text-decoration:none;}
.menu ul li a:hover,
.menu ul li a.hassub:hover {color:#fff; background:#4b7ba5; text-decoration:underline;} /* was #595 */

.menu ul li a.hassub,
.menu li.left ul li a.hassub,
.menu li ul li a.hassub {background:none;}

.menu ul li.back label {display:block; width:40px; height:40px; margin-top:4px; border-radius:4px; float:right; background: #4b7ba5 url(arrow-left.png) no-repeat center center; z-index:100; cursor:pointer;}
.menu ul li.back span {display:block; height:18px; font:normal 12px/18px 'texgyreadventorregular', 'lucida sans', arial, sans-serif; color:#eee; width:180px; padding:5px 0 0 20px; white-space:normal; float:left; text-transform:uppercase;}

.menu ul ul,
.menu ul ul ul,
.menu ul li.left > ul,
.menu ul li.left ul li > ul {left:280px; top:-5000px; right:auto; opacity:1;}

.menu ul li:hover > ul,
.menu ul ul li:hover > ul,
.menu ul li.left:hover > ul,
.menu ul li.left ul li:hover > ul {left:280px; right:auto; opacity:1;}

.menu ul li:hover > a.hassub,
.menu li.left ul li:hover > a.hassub {background:none; color:#eee; text-decoration:none;}
.menu ul li a.hassub:hover,
.menu ul ul li a.hassub:hover,
.menu li.left ul li a.hassub:hover {color:#fff; background:#4b7ba5; text-decoration:underline;}

#submenu1:checked ~ .menu #p1,
#submenu2:checked ~ .menu #p2,
#submenu3:checked ~ .menu #p3,
#submenu4:checked ~ .menu #p4,
#submenu5:checked ~ .menu #p5,
#submenu6:checked ~ .menu #p6,
#submenu7:checked ~ .menu #p7,
#submenu8:checked ~ .menu #p8,
#submenu1a:checked ~ .menu #p1a,
#submenu2a:checked ~ .menu #p2a,
#submenu3a:checked ~ .menu #p3a,
#submenu4a:checked ~ .menu #p4a,
#submenu5a:checked ~ .menu #p5a,
#submenu6a:checked ~ .menu #p6a,
#submenu7a:checked ~ .menu #p7a,
#submenu8a:checked ~ .menu #p8a,
#submenu1b:checked ~ .menu #p1b,
#submenu2b:checked ~ .menu #p2b,
#submenu3b:checked ~ .menu #p3b,
#submenu4b:checked ~ .menu #p4b,
#submenu5b:checked ~ .menu #p5b,
#submenu6b:checked ~ .menu #p6b,
#submenu7b:checked ~ .menu #p7b,
#submenu8b:checked ~ .menu #p8b {top:0;
-webkit-transition:0s;
-o-transition:0s;
-moz-transition:0s;
transition:0s;
}

#submenu1:checked ~ .menu,
#submenu2:checked ~ .menu,
#submenu3:checked ~ .menu,
#submenu4:checked ~ .menu,
#submenu5:checked ~ .menu,
#submenu6:checked ~ .menu,
#submenu7:checked ~ .menu,
#submenu8:checked ~ .menu {left:-280px;}

#submenu1a:checked ~ .menu,
#submenu2a:checked ~ .menu,
#submenu3a:checked ~ .menu,
#submenu4a:checked ~ .menu,
#submenu5a:checked ~ .menu,
#submenu6a:checked ~ .menu,
#submenu7a:checked ~ .menu,
#submenu8a:checked ~ .menu {left:-560px;}

#submenu1b:checked ~ .menu,
#submenu2b:checked ~ .menu,
#submenu3b:checked ~ .menu,
#submenu4b:checked ~ .menu,
#submenu5b:checked ~ .menu,
#submenu6b:checked ~ .menu,
#submenu7b:checked ~ .menu,
#submenu8b:checked ~ .menu {left:-840px;}

/* Change the BodyWrapper to your own wrapper div id or class */
#toggle:checked ~ #BodyWrapper {left:280px;} 
#toggle:checked ~ #BodyWrapper .menuHolder {left:0;} 
#toggle:checked ~ #BodyWrapper .trigger {left:280px;} 
}