/* Navigation Menu - Background */
.navigation {
  /* critical sizing and position styles */
  width: 300px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  
  /* non-critical appearance styles */
  list-style: none;
  background-color: #d4d4d4;
}

a.closemenu {
    display:block;
    width:300px;
    padding: 2.1rem;
    padding-left: 55px;
    background-image:url('../images/closemenu.png');
    background-repeat:no-repeat;
    background-size:15px;
    background-position:30px 37px;
    color:#747474;
    font-size:1.2rem;
    line-height: 36px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    padding: 1.4rem;
    padding-left: 55px;
    background-position:30px 28px;    
}
a.closemenu:hover {
    text-decoration:none;
}
a.closemenu.shrink {
    padding: 1.4rem;
    padding-left: 55px;
    background-position:30px 28px;
}

.navigation ul {
    border-top: 1px solid #c3c3c3;
}

/* Navigation Menu - List items */
.nav-item {
  /* non-critical appearance styles */
  width: 300px;
  border-bottom: 1px solid #c3c3c3;
}
.nav-item span {
  padding: .7rem;
  padding-left: 30px;
  color: #747474;
  font-size: 1.2rem;
  font-weight:500;
  text-transform: uppercase;
  height:49px;
  line-height:49px;
}
.nav-item a, .nav-item label {
  /* non-critical appearance styles */
  display: block;
  width: 300px;
  padding: .7rem;
  padding-left: 30px;
  color: #747474;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s, background 0.5s;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom:0px;
  font-weight:500;
}

.nav-item label {
    background-image:url(../images/hassubmenu.png);
    background-repeat:no-repeat;
    background-position:260px 15px;
    background-size:auto 16px;
}

.nav-item a:hover, .nav-item label:hover {
  /*color: #fff;*/
  background-color:#c3c3c3;
}

/* 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: fixed;
  right: 55px;
  /*top: 31px;*/
  top:66px;
  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 {
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
*/
.nav-trigger + label {
  right: 55px;
  top: 66px;
  transition: all 0.2s ease;
}

/* when the google translation is open... */
.translated-ltr .nav-trigger + label, .translated-rtl .nav-trigger + label {
  top: 109px;
}

.nav-trigger:checked + label {
  right: 355px;
}

.bannernavx-trigger:checked ~ nav {
    left:-300px;
    right: 300px;
}

.nav-trigger:checked ~ .navigation {
  border: 4px solid red;
}
.nav-trigger:checked ~ .site-wrap, .nav-trigger:checked label[for="search-trigger"] {
  left: -300px;
  /*box-shadow: 0 0 5px 5px rgba(0,0,0,0.1);*/
}

.nav-trigger:checked ~ .site-wrap div div nav {
  left: -300px;
  right: 300px;
  transition: all 0.2s ease;
  /*transition: right 0.2s;*/
}

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; */
    top:66px;
}

.translated-ltr label[for="nav-trigger"].shrink, .translated-rtl label[for="nav-trigger"].shrink {
    top:109px;
}


/* SUB MENU STYLES */
li.has-submenu {
}
ul.submenu {
    /*
    margin-top:89px;
    */
    margin-top:65px;
    position:absolute;
    top:0;
    left:0;
    width:300px;
    opacity:0;
    z-index:-1;
    background-color: #d4d4d4;
    height:100%;
    transition: all 0.2s ease;
}
ul.submenu.shrink {
    margin-top:65px;
}

.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 {
    padding-left:47px;
    background-image:url(../images/back.png);
    background-repeat:no-repeat;
    background-position:30px 18px;
    background-size:auto 16px;
    color:#747474;
}


@media (max-width: 768px) {
    label[for="nav-trigger"].shrink {
        right:35px;
    }
    .nav-trigger:checked + label {
      right: 335px;
    }
}

@media (max-width: 510px) {
    label[for="nav-trigger"].shrink {
        right:35px;
    }
    .nav-trigger:checked + label {
      right: 335px;
    }
    .navigation {
        overflow-y: auto;
        overflow-x: hidden;
    }    
}

@media (max-width: 440px) {
    label[for="nav-trigger"].shrink {
    	right:15px;
    }
    .nav-trigger:checked + label {
    	right:315px;
    }
    .nav-trigger + label {
    	right:15px;
    }
    .navigation {
        overflow-y: auto;
        overflow-x: hidden;
    }    
}

/* when the google translation is open... */
.translated-ltr .navbar-fixed-top, .translated-rtl .navbar-fixed-top {
    top:39px;
}

.translated-ltr .navbar, .translated-rtl .navbar {
    top:39px;
}