
body{
	margin:0;
	padding:0;
}
body {
    background-color: #fff;
}
body header .subheader {
    padding: 0;
    background-color: rgba(0, 90, 169, 0.9);
    width: 100%;
    z-index: 998;
}
body header .subheader ul{
	width:auto;
}
#menu{
    height: auto;
    flex: auto;
    align-content: center;
    flex-direction: row;
    flex-basis: auto;
    flex-flow: row;
    justify-content: center;
    display: flex;
	
	font-family: "OswaldMedium";
	font-weight: 500;
	font-size: 16px;
	line-height: 15px;
	text-transform:uppercase;
}

#menu ul {
  margin: 0;
  padding: 0;
}

#menu .main-menu {
  display: none;
}

#tm:checked + .main-menu {
  display: block;
}

#menu input[type="checkbox"]{
  display: none;
}

#menu .submenu-toggle{
  display: none;
}

#menu li, 
#toggle-menu, 
#menu .sub-menu {
  border-style: none;
  border-color: rgba(0, 0, 0, .08);
}

#menu li, 
#toggle-menu {
  border-width: 0 0 1px;
}

#menu .sub-menu {
  border-width: 1px 1px 0;
  margin: 0 1em;
  /* background-color: rgba(0, 90, 169,.8); */
  text-transform: none;
}

#menu .sub-menu:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 90, 169,.8);
  left: -2000px;
  right: -2000px;
}

#menu .sub-menu li:last-child {
  border-width: 0;
}

#menu li, 
#toggle-menu, 
#menu a {
  position: relative; /*to disable if centered elements*/
  display: block;
  color: white;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
  text-decoration:none;
}

#menu, 
#toggle-menu {
  background-color: #09c;
  background-color: rgba(0, 90, 169, 1);
}

#toggle-menu, 
#menu a {
  padding: 1em 1.5em;
}

#menu a {
  transition: all .125s ease-in-out;
  -webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
  /* background-color: white; */
  /* color: #09c; */
  text-decoration: underline;
}

#menu li.active > a {
  text-decoration: underline;
}

#menu .sub-menu {
  display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
  display: block;
}

#toggle-menu .drop-icon, 
#menu li label.drop-icon {
  position: absolute;
  right: 1.5em;
  top: 1.25em;
}

#menu label.drop-icon, #toggle-menu span.drop-icon {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  text-align: center;
  background-color: rgba(0, 0, 0, .125);
  text-shadow: 0 0 0 transparent;
  color: rgba(255, 255, 255, .75);
}

#menu .drop-icon {
  line-height: 1;
}

header .subheader #menu ul li a{
  font-size: 150%;
  height: 100%;
}
header .subheader #menu ul li ul.sub-menu li {
  height: auto;
  z-index: 3002;
}
header .subheader #menu ul li ul.sub-menu li a{
  font-size: 140%;
}
#menu a#btn_menu.navbar-toggle-always.navbar-text.navbar-center.navbar-description {
  display: none !important;
}

@media only screen and (max-width: 64em) and (min-width: 52.01em) {
  #menu li {
    width: 33.333%;
  }

  #menu .sub-menu li {
    width: auto;
  }
}

@media only screen and (min-width: 1400px) {
  #menu .main-menu {
    display: block;
  }

  #toggle-menu, 
  #menu label.drop-icon {
    display: none;
  }

  #menu ul span.drop-icon {
    display: inline-block;
  }

  #menu li {
    float: left;
    border-width: 0 1px 0 0;
	height:50px;
  }

  #menu .sub-menu li {
    float: left;
  }

  #menu .sub-menu {
    border-width: 0;
    margin: 0;
    position: absolute;
    top: 50px;
    left: 0;
	  right:0;
    z-index: 3000;
    height: auto;
    flex: auto;
    align-content: center;
    flex-direction: row;
    flex-basis: auto;
    flex-flow: row;
    justify-content: center;

    /* display: flex; */

    width: 2000px;
  }

  #menu .sub-menu, 
  #menu input[type="checkbox"]:checked + .sub-menu {
    display: none;
  }

  #menu .sub-menu li {
    border-width: 0 0 1px;
  }

  #menu .sub-menu .sub-menu {
    top: 50px;
    left: 0;
  }

  #menu li:hover > input[type="checkbox"] + .sub-menu,#menu li.active > input[type="checkbox"] + .sub-menu {
    display: flex;
    display: block;
  }
}

/*<768px*/
@media only screen and (max-width: 1400px) {
  #menu {
    align-content: flex-start;
    justify-content: flex-start;
  }
  #tm:checked + .main-menu {
    display: block;
    background-color: #005aa9;
    width: 100%;
    z-index: 2;
  }
  #menu li {
    width: 100%;
  }
  header .subheader #menu ul li a {
      font-size: 150%;
      padding-left: 0;
      padding-right: 0;
      height: 100%;
      float: left;
      text-align: left;
      padding-left: 10px;
  }
  #menu #toggle-menu > div{
    position: relative;
  }
  #menu #toggle-menu .drop-icon{
    float: right;
    font-size: 180%;
    padding: 0;
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-55%);
    background-color: transparent;
  }
  #menu .submenu-toggle {
    display: block;
    float: right;
    height: 100%;
    text-align: left;
    align-content: baseline;
    align-self: baseline;
    align-items: baseline;
    padding: .45em;
    font-size: 230%;
    width: 40px;
  }
  #menu .sub-menu:before {
      content:none;
  }
  #menu input[type="checkbox"]:checked + .sub-menu {
    display: block;
    float: left;
    text-align: left;
    width: 100%;
  }
  #menu ul li a {
    width: 60%;
  }

  #menu a#btn_menu.navbar-toggle-always.navbar-text.navbar-center.navbar-description {
    display: block !important;
    position: absolute;
    right: 0;
    text-align: right;
    z-index: 1;
    margin-right: 0;
  }
  header .subheader #menu ul li {
    height: 50px;
  }
  header .subheader #menu ul li ul.sub-menu li {
    height: 50px;
    z-index: 3002;
  }
}