/*Strip the ul of padding and list styling*/
#menu {
	position: relative;
	list-style-type:none;
	margin: 0px;
	margin-top: -2px;
	padding: 0px;
}

/*Create a horizontal list with spacing*/
#menu li {
	display: inline-block;
	float: left;
	margin-right: 0px;
}

/*Style for menu links*/
#menu li a {
	display:block;
	width:12.5vw; /* width of each menu item */
	height: 40px;
	text-align: center;
	line-height: 40px;
	font-family: "Georgia";
	border-top: 2px solid gold;
	border-bottom: 2px solid gold;
	color: #fff;
	background: #2f3036;
	text-decoration: none;
}

/*Hover state for top level links*/
#menu li:hover a {
	background: brown;
	text-decoration: none;
}

/*Style for dropdown links*/
#menu li:hover ul a {
	background: #f3f3f3;
	color: #2f3036;
	height: 40px;
	border-top: 1px solid white;
	border-bottom: 1px solid white;
	line-height: 40px;
}

/*Hover state for dropdown links*/
#menu li:hover ul a:hover {
	background: brown;
	color: #fff;
}

/*Hide dropdown links until they are needed*/
.hidden {
	display: none;
	padding: 0px;
}

/*Make dropdown links vertical*/
#menu li ul li {
	display: block;
	float: none;
	margin-right: -50px; /* set this so the sub menu does not cause the main menu to shift */
}

/*Prevent text wrapping*/
#menu li ul li a {
	width: auto;
	min-width: 50px;
	padding: 0 5px;
}

/*Display the dropdown on hover*/
#menu li a:hover + .hidden, .hidden:hover {
	display: block;
}

/*Style 'show menu' label button and hide it by default*/
.show-menu {
	font-family: "Georgia";
	text-decoration: none;
	color: #fff;
	background: brown;
	text-align: center;
	padding: 10px 0;
	display: none;
}

/*Hide checkbox*/
input[type=checkbox]{
    display: none;
}

/*Show menu when invisible checkbox is checked*/
input[type=checkbox]:checked ~ #menu{
    display: block;
}
