body {
  -webkit-animation: bugfix infinite 1s;
  /* needed for checkbox hack */
}

@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}

#nav h1 {
	font-size: 15px;
	color: black;
}

#nav h2 {
	font-size: 13px;
	color: black;
}

#nav h3 {
	font-size: 11px;
	color: black;
}

#nav {
  position: relative;
  z-index: 1000;
  font-size: calc(14px + (2)*(100vw - 400px)/400);
}

@media only screen and (min-width: 60em) {
	#nav {
	 	font-size: calc(16px + (2)*(100vw - 400px)/600);
	}
	
	#nav ul li a {
  		padding: 0.6em;
	}
}

#nav ul {
  display: none;
  width: 100%;
  list-style: none;
  margin: 0px;
  padding: 0px;
}

#nav ul li a {
  font-weight: 500;
  display: block;
  /*VB padding: 1em;*/
  padding: 1.1em;
  background: #C30;
  color: white;
  text-decoration: none;
  border-right: 2px solid silver;
}

#nav ul li a:hover {
  background: #b22222;
}
#nav ul li:last-of-type a {
  border-right: 0px;
}
#nav ul li ul li a {
  background: maroon;
  padding-left: 1.5em;
}
#nav ul li ul li ul li a {
 padding-left: 3.125em;
}
#nav input.trigger {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
  display: block !important;
}
@media (min-width: 48em) {
  #nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
    /* older flexbox */
    display: -webkit-box;
    display: -moz-box;
    display: box;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
  }
  
#nav ul li a {
  padding: 8px;
}
  
}
#nav label {
  position: relative;
  display: block;
  min-height: 2em;
  padding: .45em;
  font-size: 1.2em;
  margin: 0;
  cursor: pointer;
  background: #005292;
  line-height: 1.5em;
  color: #bfe1fb;
}

#nav label:after {
  position: absolute;
  right: 1em;
  top: .2em;
  content: "\2261";
  font-size: 1.5em;
  color: white;
}
@media (min-width: 20em) {
  #nav ul {
    /* older flexbox */
    display: -ms-flexbox;
    flex-direction: -ms-row;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
  }
  #nav ul li {
    position: relative;
    background-color: #C30;
    /*VB text-align: center; */ 
    /* older flexbox */
    -ms-flex: 1;
    /* newer flexbox */
    flex: 1;
  }
  #nav ul li ul {
    display: none !important;
    position: absolute;
    top: 2.0625em;
    left: 0;
    display: block;
    width: 12.5em;
    z-index: 200;
  }
  #nav ul li ul li {
    text-align: left;
  }
  #nav ul li ul li ul {
    z-index: 300;
    top: 0px;
    left: 12.4em;
  }
  #nav ul li ul li ul li a {
	padding-left: 30px !important;
  }
  #nav ul li:hover > ul {
    display: block !important;
  }
  #nav label {
    display: none;
  }
}
