#body-container {
  z-index: 10;
  min-width: 320px;
  background: #fff;
  overflow: hidden;
  box-shadow: 10px -10px 10px -7px rgb(21, 46, 99);
}

#nav-close {
  position: absolute;
  width: 0;
  height: 0;
  left: -9999em;
  transition: all .2s ease;
}

#nav-close.overlay-active {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 999;
  right: 20%;
  box-shadow: -3px 0 3px 0 rgba(0, 0, 0, 0.05);
}


/* General styles for all menus */
#side-nav {
  background: #fff;
  position: absolute;
  top:0;
  display:none;
}

#side-nav h3 {
  color: #afdefa;
  font-size: 1.9em;
  padding: 20px;
  margin: 0;
  font-weight: 300;
  background: #0d77b6;
}

#side-nav a {
  display: block;
  color: #fff;
  font-size: 1.1em;
  font-weight: 300;
}

#side-nav a:hover {
  color: $cerulean;
}

#side-nav a:active {
  background: #afdefa;
  color: #47a3da;
}


/* Vertical menu that slides from the left or right */

#side-nav {
  width: 20%;
  display: block;
  right: 0 !important;
}

#side-nav.menu-open {
 	right:0 !important;
 	display:block;
}

/* Push classes applied to the body */

.nav-push{
  position: relative;
  right: 0;
}

.slide-left {
  right: 20%;
}

.cbp-spmenu-push-toleft {
  right: -230px;
}

/* Transitions */

.cbp-spmenu,
.nav-push {
  -webkit-transition: all 0.4s ease ;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

#nav-control {
  width: 40px;
  height: 46px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
}
#nav-control .menu-text {
  bottom: 0;
  position: absolute;
	padding: 0;
	margin: 0;
	color: rgb(47, 68, 97) !important;
	background: transparent;
	text-align: center;
}
#nav-control .menu-text:after {
  content: "";
  font-size: 13.5px;
  left: 0;
  position: absolute;
  top: 0;
  color: rgb(47, 68, 97);
}
#nav-control.active .menu-text:after {
  content: '';
  left: 0;
}
.lines-button {
  display: inline-block;
  padding: 0.65rem 0.325rem;
  cursor: pointer;
  user-select: none;
}
.lines-button:hover {
  opacity: 1;
}
.lines-button:active {
  transition: .2s;
  background: rgba(0, 0, 0, 0.1);
}

.lines {
  display: inline-block;
  width: 35px;
  height: 6px;
  border-radius: 10px;
  background: rgb(47, 68, 97);
  transition: 0.2s;
  position: relative;
  padding:0;
  margin:0;
  /*create the upper and lower lines as pseudo-elements of the middle line*/
}
.lines:before, .lines:after {
  display: inline-block;
  width: 35px;
  height: 6px;
  border-radius: 10px;
  background: rgb(47, 68, 97);
  transition: 0.2s;
  position: absolute;
  left: 0;
  content: '';
  -ms-transform-origin:  0.09286rem center; /* IE 9 */
  -webkit-transform-origin:  0.09286rem center; /* Chrome, Safari, Opera */
  transform-origin: 0.09286rem center;
  margin:0;
}
.lines:before {
  top: 14px;
}
.lines:after {
  top: -14px;
}

.lines-button.x .lines {
    transition: background 0.2s ease 0.3s;
}
.lines-button.x .lines:before, .lines-button.x .lines:after {
    -ms-transform-origin: 50% 50% 0; /* IE 9 */
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    transition: top 0.2s 0.3s ease, -webkit-transform 0.3s ease;
    transition: top 0.2s 0.3s ease, transform 0.2s ease;
}
.lines-button.x.active .lines {
    background: none repeat scroll 0 0 transparent;
    transition: background 0.2s ease 0s;
}
.lines-button.x.active .lines:before, .lines-button.x.active .lines:after {
    top: 0;
    transition: top 0.2s ease, -webkit-transform 0.2s 0.3s ease;
    transition: top 0.2s ease, transform 0.2s 0.3s ease;
    width: 40px;
}
.lines-button.x.active .lines:before {

  -webkit-transform: rotate3d(0, 0, 1, 45deg);
  transform: rotate3d(0, 0, 1, 45deg);

}
.lines-button.x.active .lines:after {
  -webkit-transform: rotate3d(0, 0, 1, -45deg);
  transform: rotate3d(0, 0, 1, -45deg);
    transform: rotate(-45deg);
}

/*Nav Styles */

#side-nav {
  width: 20%;
}

#side-nav ul {
  margin: 0;
  padding: 0;
}

ul#responsive-nav li {
  border-bottom: 1px solid rgb(59, 85, 122);
  color: #6d6e71;
  display: block;
  list-style: outside none none;
  text-align: left;
  width: 100%;
}

ul#responsive-nav li.hasAccordion {
  background: #2d52a1;
  position: relative;
  transition: background 0s;
}

ul#responsive-nav li.hasAccordion:after, ul#responsive-nav li.hasAccordion:before{
  background: none repeat scroll 0 0 #fff;
  border-radius: 10px;
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  right: 5%;
  top: 22px;
  width: 4%;
  transition: transform 0.2s ease, background 0s ease;
}

ul#responsive-nav li.hasAccordion:before {
  -webkit-transform: rotate3d(0, 0, 1, 90deg);
  transform: rotate3d(0, 0, 1, 90deg);
}

ul#responsive-nav li.hasAccordion.accOpen:before {
  -webkit-transform: rotate3d(0, 0, 1, 0deg);
  transform: rotate3d(0, 0, 1, 0deg);
}

ul#responsive-nav li.hasAccordion.accOpen:before,
ul#responsive-nav li.hasAccordion.accOpen:after {
  background: #fff;
}

ul#responsive-nav li.hasAccordion.accOpen {
  background: #2d52a1;
}

ul#responsive-nav li.hasAccordion.accOpen ul {
  background: #fff;
}

ul#responsive-nav li:nth-child(3n+1):hover {
    background: #FFB12C;
}
ul#responsive-nav li:nth-child(3n+2):hover {
    background: #42B367;
}
ul#responsive-nav li:nth-child(3n+3):hover {
    background: #ED443C;
}

#side-nav li {
    background: rgb(47, 68, 97);
}

ul#responsive-nav li a {
  list-style: none;
  color: #fff;
  text-align: left;
  padding: 1em 0 1em 1.2em;
  width: 100%;
  display: inline-block;
  border-bottom: none;
  background: transparent;
  text-decoration: none;
  box-sizing: border-box;
}

ul#responsive-nav  ul.sub-nav {
  border-left: 5px solid #2d52a1;
}

ul#responsive-nav  ul.sub-nav li {
  border-top: 1px solid #2d52a1;
  background:#fff;
}

ul#responsive-nav  ul.sub-nav li a {
  list-style: none;
  color: #444;
  text-align: left;
  padding: 0.5em 1em;
  border-bottom:none;
  background:#fff;
}

#nav-toggle {
  display: none;
}

#nav-control {
  display: block !important;
}

#nav {
	display:none
}

/*
* Media Queries
*/

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {


}


@media only screen and (max-width: 959px) {
  #side-nav {
    width: 50%;
  }
  .slide-left {
    right: 50%;
  }
}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {

  #side-nav {
    right: -40%;
    width:60%;
  }
  .slide-left {
  	right:60%;
  }
  header .contact-text {
    font-size: 20px;
  }
  ul.banner-txt {
    position: absolute;
    display: block;
    margin-top: 40px;
    line-height: 3em;
    list-style-type: none;
  }
  img.white-note {
    display: none;
  }
  .banner-txt li {
    text-shadow: 3px 3px 50px black;
  }
  .about-banner-txt .banner-txt li {
    font-size: 3em;
  }
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
}

/* Portrait and Landscape - iPhone6/7/8/X */
@media only screen
  and (min-device-width: 375px)
  and (max-device-width: 667px)
  and (-webkit-min-device-pixel-ratio: 2) {
    header {
      height: 180px;
    }
    h1#title a {
      height: 136px;
      width: 350px;
    }
    h1#title a {
      height: 136px;
      width: 350px;
      margin-left: -15px;
    }
    nav ul.social-media li {
      float: left;
    }
    header .contact-text {
      position: inherit;
    }
    .hp-banner-text span:first-of-type {
      font-size: 2.4em;
    }
    .hp-banner-text span:first-of-type {
      font-size: 2.4em;
      padding: 20px;
    }
}

/* Portrait and Landscape - iPhone 5, 5S, 5C and 5SE  */

/* Portrait and Landscape */
@media only screen
  and (min-device-width: 320px)
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {
    h1#title a {
      margin-left: -40px;
    }
}
