/*
.navbar {
  position:fixed;
  left:0;
  right:0;
  border:none;
}
*/

/* Navigation Menu - Background */
.navigation {
  /* critical sizing and position styles */
  width: 300px;
  height: 100%;
  position: fixed;
  right:-330px;
  -webkit-transition: right 0.3s ease;
  -moz-transition: right 0.3s ease;
  -o-transition: right 0.3s ease;
  transition: right 0.3s ease;
  z-index: 999;
  
  /* non-critical appearance styles */
  list-style: none;
  background-color: #851620;
    -webkit-box-shadow: -3px 0px 14px 1px rgba(0,0,0,0.5);
    -moz-box-shadow: -3px 0px 14px 1px rgba(0,0,0,0.5);
    box-shadow: -3px 0px 14px 1px rgba(0,0,0,0.5);
}

a.closemenu {
    display:block;
    width:300px;
    padding: 2.1rem;
    padding-left: 55px;
    height:60px;
    background-image:url('../images/closemenu.png');
    background-repeat:no-repeat;
    background-size:15px;
    background-position:35px 37px;
    color:#4c687e;
    font-size:1.4rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
a.closemenu:hover {
    text-decoration:none;
}
a.closemenu.shrink {
    padding: 1.4rem;
    padding-left: 55px;
    background-position:30px 28px;
}

.navigation ul {
    margin-top:0;
    /*border-top: 1px solid #25465e;*/
}

/* Navigation Menu - List items */
.nav-item {
  /* non-critical appearance styles */
  list-style-type:none;
  width: 300px;
  /*border-bottom: 1px solid #25465e;*/
}

.nav-item a, .nav-item label {
  /* non-critical appearance styles */
  display: block;
  border-left:5px solid transparent;
  width: 300px;
  padding: .5rem;
  padding-left: 30px;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s, background 0.5s;
  /*text-transform: uppercase;*/
  cursor: pointer;
  margin-bottom:0px;
  font-weight:normal;
}

.nav-item label {
    background-image:url(../images/hassubmenu.png);
    background-repeat:no-repeat;
    background-position:260px 12px;
    background-size:auto 16px;
}

.nav-item a:hover, .nav-item label:hover {
  color: #fff;
  border-color:#650607;
  background-color:#f7921d;
}

/* Site Wrapper - Everything that isn't navigation */
.site-wrap {
  /* Critical position and size styles */
  min-height: 100%;
  min-width: 100%;
  background-color: #fff; /* Needs a background or else the nav will show through */
  position: relative;
  top: 0;
  bottom: 100%;
  left: 0;
  z-index: 1;
  
  /* non-critical apperance styles */
  background-size: 200%;
}

/* Nav Trigger */
.nav-trigger, .bannernavx-trigger {
  /* critical styles - hide the checkbox input */
  position: fixed;
  clip: rect(0, 0, 0, 0);
}

label[for="nav-trigger"] {
  /* critical positioning styles */
  position: absolute;
  right: 55px;
  top: 20px;
  z-index: 4;
  transition: bottom 0.2s ease;
  
  /* non-critical apperance styles */
  height: 30px;
  width: 30px;
  cursor: pointer;
  background-image: url('../images/menu.png');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Make the Magic Happen */
.nav-trigger + label, .site-wrap, nav {
  transition: left 0.2s ease;
}
.nav-trigger + label {
  right: 35px;
  top: 35px;
  transition: all 0.2s ease;
  /* only display on mobile */
  display:none;
}
.nav-trigger:checked ~ .navigation {
  right:0px;
}
.nav-trigger:checked ~ .site-wrap div div nav {
  transition: all 0.2s ease;
}

body {
  /* Without this, the body has excess horizontal scroll when the menu is open */
  overflow-x: hidden;
}

/* Micro reset */
*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}
/*html, body { height: 100%; width: 100%; }*/


/* SHRINK STYLES */
label[for="nav-trigger"].shrink {
    top:21px;
}


/* SUB MENU STYLES */
li.has-submenu {
}
ul.submenu {
    margin-top:65px;
    position:absolute;
    top:0;
    left:0;
    width:300px;
    opacity:0;
    z-index:-1;
    background-color: #851620;
    height:100%;
    transition: all 0.2s ease;
}
ul.submenu.shrink {
    margin-top:69px;
}

.submenu-trigger {
  /* critical styles - hide the checkbox input */
  position: fixed;
  clip: rect(0, 0, 0, 0);
}
.submenu-trigger:checked ~ ul.submenu {
    opacity:100;
    z-index:5;
}

.nav-item a.submenu-back {
    margin-top:5px;
    padding-left:45px;
    line-height:28px;
    font-size:1.2rem;
    background-image:url(../images/back.png);
    background-repeat:no-repeat;
    background-position:30px 15px;
    background-size:auto 11px;
    color:#fff;
}


@media (max-width: 768px) {
    label[for="nav-trigger"].shrink {
        right:35px;
    }
    .nav-trigger + label {
    	display:block;
    }
}

@media (max-width: 510px) {
    label[for="nav-trigger"].shrink {
        right:20px;
    }
    .navigation {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .nav-trigger + label {
    	display:block;
    }    
}

@media (max-width: 440px) {
    label[for="nav-trigger"].shrink {
    	right:20px;
    }
    .navigation {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .nav-trigger + label {
    	display:block;
    	right:20px;
    }    
}
