/*Strip the ul of padding and list styling*/
#menu {
	z-index:1000;
	padding-top: 28px;
}
#menu ul {
	list-style-type:none;
	margin:0;
	padding:0;
	position: absolute;
	z-index:1000;
}

/*Create a horizontal list with spacing*/
li {
	display:inline-block;
	float: left;
	margin-right: 1px;
}
/*Style for menu links*/
li a {
	display:block;
	min-width:100px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: black;
	background: transparent;
	text-decoration: none;
	margin-right: 5px !important;
}

/*Hover state for top level links*/
li:hover a {
	background: #38A015;
	color: white !important;
}

/*Style for dropdown links*/
li:hover ul a {
	background: #f0efef;
	color: #2f3036 !important;
	height: 40px;
	line-height: 40px;
	z-index:1000;
}

/*Hover state for dropdown links*/
li:hover ul a:hover {
	background: #38A015 !important;
	color: #fff !important;
}

/*Hide dropdown links until they are needed*/
li ul {
	display: none;
	border-right-width: 15px;
	border-bottom-width: 15px;
	border-left-width: 15px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: white;
	border-bottom-color: white;
	border-left-color: white;
	margin-left:-15px !important;
}

/*Make dropdown links vertical*/
li ul li {
	display: block;
	float: none;
	margin-right: 0px;
}

/*Prevent text wrapping*/
li ul li a {
	width: auto;
	min-width: 100px;
	padding: 0 17px;
	text-align: left;
	margin: 0px !important;
}

/*Display the dropdown on hover*/
ul li a:hover + .hidden, .hidden:hover {
	display: block;
}

/*Style 'show menu' label button and hide it by default*/
.show-menu {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	text-decoration: none;
	color: #fff;
	background: #38A015;
	text-align: center;
	padding: 10px 0;
	display: none;
	float: right;
}

/*Hide checkbox*/
#header input[type=checkbox]{
    display: none;
    -webkit-appearance: none;
}

/*Show menu when invisible checkbox is checked*/
#header input[type=checkbox]:checked ~ #menu{
    display: block;
}


/* for 910px or less */
@media screen and (max-width: 910px) {
	ul {
		position: static;
		display: none;
	}
	/*Create vertical spacing*/
	li {
		margin-bottom: 1px;
	}
	/*Make all menu links full width*/
	ul li, li a {
		width: 100%;
	}
	/*Display 'show menu' link*/
	.show-menu {
		display:block;
		padding-left:5px;
		padding-right:5px;
		margin-right: 5px;
	}
}
@media screen and (max-width: 400px) {
	.show-menu {
		display:block;
		padding-left:5px;
		padding-right:5px;
		margin-right: 5px;
		margin-bottom: 10px;
		float:left;
	}
}
