
body {
 /* margin: 25px; */
  -webkit-animation: bugfix infinite 1s;
  /* needed for checkbox hack */
 /* background: #000; */
}

@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}
#nav {
  position: relative;
}
#nav ul {
  display: none;
  width: 100%;
  list-style: none;
  margin: 0px;
  padding: 0px;
}
#nav ul li a {
	display: block;
	color: #000;
	text-decoration: none;
	padding-top: 1em;
	padding-right: 0.5em;
	padding-bottom: 1em;
	padding-left: 0.5em;	
	background-image: linear-gradient(#1a1a1a, #8f6100);
	box-shadow: inset 2px 2px 2px rgba(255, 255, 255, .4), inset -2px -2px 2px rgba(0, 0, 0, .4);
}

/*
#nav li.has-child > a:after {
	color: #000;
	content: ' ▾';
	font-size: 90%;
}
*/
#nav ul li a:hover {
	background-color: #000;
	background-image: none;
	color: #FFCC00;
}
#nav ul li:last-of-type a {
  border-right: 0px;
}
#nav ul li ul li a {
	padding-left: 2%;
	padding-top: 3%;
	padding-right: 2%;
	padding-bottom: 3%;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #000;
	
}
#nav ul li ul li ul li a {
  padding-left: 3.125em;
  background: #a386bd none repeat scroll 0 0;
}
#nav input.trigger {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
  display: block !important;
}
/* addaptations */
@media screen and (max-width: 980px) {
	#nav ul li a {
      padding: 0.5em 0.5em;
   }
}
@media screen and (max-width: 900px) {
	#nav ul li a {
      padding: 0.5em 0.25em;
   }
}
@media screen and (max-width: 800px) {
	#nav ul li a {
	background-image: none;
	box-shadow: none;
	background-color: #8f6100;	
  }
}
/* remainder */
@media (min-width: 55.5625em) {
  #nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
    display: flex;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    flex-direction: row;
  }
}
#nav label {
	position: relative;
	display: block;
	min-height: 2em;
	padding: .45em;
	font-size: 1.1em;
	margin: 0;
	cursor: pointer;
	line-height: 2em;
	color: #000;
	background-color: #8f6100;
}
#nav label:after {
  position: absolute;
  right: 1em;
  top: .2em;
  content: "\2261";
  font-size: 1.8em;
  color: #000;
}
@media (min-width: 55.5625em) {
  #nav ul {
    display: flex;
    flex-direction: row;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
	  border-top: 1px solid #996600;
	  border-bottom: 1px solid #996600;
	  padding: 0.5% 0 0.5% 0;
	  margin-top: 2%;
}
  #nav ul li {
    position: relative;
    text-align: center;
   flex-grow: 1;
  }
 	#nav ul li ul {
	display: none !important;
	position: absolute;
	display: block;
	z-index: 200;
	top: 45px;
}
  #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;
  }
}
