/* Base */

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: #fff; /* Same color as your menu */
}

#page {
	position: relative; /* Set the position property so z-index will apply */
	z-index: 20; /* Make sure this is higher than #menu */
	background: #fff;
	height: 101%;
    -webkit-box-shadow: 2px 0 10px 0 rgba(0,0,0,.50);
    box-shadow: 2px 0 10px 0 rgba(0,0,0,.50);
}

#page h1 {
	margin: 0;
}

#toggle-menu {
	display:inline-block;
    cursor:pointer;
    background:none;
    font-size: 20px;
    display: block;
    height: 23px;
    width: 25px;
}

#menu {
    display: none;
    top: 0;
    right: 0;
    margin: 0;
    padding-left: 0;
    list-style: none;
    z-index: 10; /* Make sure the z-index is lower than the #page */
    overflow-x:auto;
    overflow-y:auto;
    /* critical sizing and position styles */
    width: 240px;
    height: 100%;
    position: fixed;
    
}
/*
#menu a {
	display: block;
	color: #fff;
	padding: 15px 0;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.05 );
}*/

/* Animations */

#page, #menu {
	-webkit-backface-visibility: hidden;
	-webkit-perspective: 1000;
}

/* Hide the menu unless it's animating or visible */
.animating #menu, .menu-visible #menu {
	display: block;
}

/***
* If the animating class is present then apply
* the CSS transition to #page over 250ms.
*/
.animating #page {
	transition: transform .25s ease-in-out;
	-webkit-transition: -webkit-transform .25s ease-in-out;
}

/***
* If the left class is present then transform
* the #page element 240px to the left.
*/	
.animating.left #page {
	transform: translate3d( -240px, 0, 0 );
	-webkit-transform: translate3d( -240px, 0, 0 );
}

/***
* If the right class is present then transform
* the #page element 240px to the right.
*/
.animating.right #page {
	transform: translate3d( 240px, 0, 0 );
	-webkit-transform: translate3d( 240px, 0, 0 );
}

/***
* If the menu-visible class is present then
* shift the #page 240px from the right edge
* via position: absolute to keep it in the 
* open position. When .animating, .left and
* .right classes are not present the CSS
* transform does not apply to #page.
*/
.menu-visible #page {
	right: 240px;
}


.box-shadow-menu {
  position: relative;
  padding-left: 1.25em;
}
.box-shadow-menu:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1em;
  height: 0.15em;
  background: #5B0006;
  box-shadow: 
    0 0.25em 0 0 #5B0006,
    0 0.5em 0 0 #5B0006;
}

/* Navigation Menu - Background */
.navigation {
  
  /* non-critical appearance styles */
  list-style: none;
  background:#88000B;
}

.navigation ul {
	list-style:none;
	color:#fff;
	margin: 0;
	padding: 0;
}
.navigation ul li {
    position:relative;
    border:none;
}
.navigation a {
    color:#fff; 
    display:block;
    
}

/* Navigation Menu - List items */
.nav-item {
  width: 100%;
}

.nav-item a {
  /* non-critical appearance styles */
  display: block;
  padding: 1em;
  color: #fff;
  font-size: 1.2em;
  text-decoration: none;
  transition: color 0.2s, background 0.5s;
}

.nav-item a:hover {
  color: #c74438;
}

/* accordion */
.navigation.accordion .opener {
    width:30px;
}
.navigation.accordion .link-holder {
    display:table;
    width:100%;
    border-top:1px solid #AE000D;
}
.navigation.accordion .slide {
    margin:0;
    background:#5B0006;
    -webkit-box-shadow:inset 0 2px 4px 0 rgba(0,0,0,.2);
    box-shadow:inset 0 2px 4px 0 rgba(0,0,0,.2);
}
.navigatio.accordionn .link-holder .link { display:table-cell; width:80%; }
.navigation.accordion .link-holder .opener { display:table-cell; width:20%; }

.navigation.accordion > li{
	border:none;
}
.navigation.accordion .opener:after,
.navigation.accordion li.active .opener:after {
	right: 15px;
	top: 15px;
}

.navigation.accordion li.nav-item:last-child {
    border-bottom:1px solid #AE000D;
}


/* 3rd level */
.navigation ul ul {
    padding-left:20px;
    padding-bottom: 10px;
}
.navigation ul ul a {
    font-size: 1em;
    padding: 10px;
}