
#menu, 
#toggle-menu {
	/*background: #000;*/
	/* gradient */
	/*background: -webkit-gradient(linear, left top, left bottom, from(#b9b9b9), to(#6a6a6a));
	background: -moz-linear-gradient(top,  #b9b9b9,  #6a6a6a);
	background: linear-gradient(-90deg, #b9b9b9, #6a6a6a);*/
	/* rounded corner */
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	border-radius: 1px;
	/* box shadow */
	/*-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);*/
}

#menu {
	/*background: #000;
	border-top: 5px solid #000;
	border-bottom: 5px solid #000;*/
}	

#menu ul {
	margin: 0 auto;
	padding: 0;
	text-align: center;
	width: calc(100% - 20px);
}

#menu .main-menu {
	display: none;
}

#tm:checked + .main-menu {
	display: block;
}

#menu input[type="checkbox"], 
#menu ul span.drop-icon {
	display: none;
}

#menu li, 
#toggle-menu, 
#menu .sub-menu {
	/*border-style: solid;
	border-color: rgba(0, 0, 0, .20);*/
}

#menu li, 
#toggle-menu {
	/*border-width: 0 0 1px;*/
}

label#toggle-menu { padding-left: 1em; }

#menu .sub-menu {
	/*background-color: #444;
	border-width: 1px 1px 0;*/
	margin: 0 1em;
}

#menu .sub-menu li:last-child {
	border-width: 0;
}

#menu li, 
#toggle-menu, 
#menu a {
	position: relative;
	display: block;
	color: #FF5000;
	font-family: arial, helvetica, sans-serif;
	/*text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);*/
	line-height: 2.5em;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: .1em;
	text-decoration: none;
}

#menu li { 
	width: 25%; /* for browsers that don't understand "calc" (was issue on ipad) */
	width: -webkit-calc(25% - 92px);
	width: -moz-calc(25% - 92px);
	width: calc(25% - 92px);
	text-align: center; 
}

#menu li { 
	background: url(../images/nav-bg.png) repeat-x; height: 55px;
}

#menu li:nth-child(4) { border: 0; width: 225px !important; background: url(../images/nav-bg.png) repeat-x; }

#menu li:first-child { border: 0; width: 70px !important; background: url(../images/nav-bg-l.png) no-repeat; }

#menu li:last-child { border: 0; width: 70px !important; background: url(../images/nav-bg-r.png) no-repeat; }


#toggle-menu, 
#menu a {
	/*padding: .6em 1.75em;*/
	/*padding: .25em auto;*/
	white-space: nowrap;
	margin-top: 10px;
}

#menu a {
	transition: all .125s ease-in-out;
	-webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
	/*background-color: #aba095;*/
	color: #40b4e5;
	text-decoration: none;
}

#menu li:first-child a:hover {
	/* rounded corner */
	-webkit-border-radius: 1px 0px 0px 1px;
	-moz-border-radius: 1px 0px 0px 1px;
	border-radius: 1px 0px 0px 1px;
}

#menu li:last-child a:hover {
	/* rounded corner */
	-webkit-border-radius: 0px 1px 1px 0px;
	-moz-border-radius: 0px 1px 1px 0px;
	border-radius: 0px 1px 1px 0px;
}

#menu .sub-menu {
	display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
	display: block;
}

#menu .sub-menu a:hover {
	color: #444;
}

#toggle-menu .drop-icon, 
#menu li label.drop-icon {
	position: absolute;
	right: .65em;
	top: .1em;
	font-size: 1.75em;
	font-weight: 700;
}

#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: #c96;
}

#menu .drop-icon {
	line-height: 1;
	font-weight: 700;
}

ul#footer-menu li {
	position: relative;
	display: block;
	color: #333;
	font-size: 12px;
	letter-spacing: .1em;
	width: calc(16.667% - 1px); 
	text-align: center;
	font-weight: 700;
}

ul#footer-menu li.nav-pipe { font-weight: 700; } 

ul#footer-menu li a {
	color: #222;
}


@media only screen and (max-width: 899px) and (min-width: 600px) {

	nav#menu {
		clear: left;
		POSITION: RELATIVE;
		TOP: -14PX; 
		Z-INDEX: 999;
	}

	#menu li, 
	#toggle-menu, 
	#menu a {
		/*line-height: 3.25em;*/
	}

	#menu li {
		width: 25%; /* for browsers that don't understand "calc" (was issue on ipad) */
		width: -webkit-calc(25% - 35px);
		width: -moz-calc(25% - 35px);
		width: calc(25% - 35px);
		text-align: center; 
	}

	#menu .sub-menu li {
		width: auto;
	}

	li.hide-at-899 { display: none !important; }
}

@media only screen and (min-width: 600px) {
	#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;
	}

	#menu .sub-menu li {
		float: none;
	}

	#menu .sub-menu {
		border-width: 0;
		margin: 0;
		position: absolute;
		top: 100%;
		left: 0;
		width: 12em;
		z-index: 3000;
	}

	#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: 0;
		left: 100%;
	}

	#menu li:hover > input[type="checkbox"] + .sub-menu {
		display: block;
	}

	ul.footer-menu {
		display: inline-block;
	}

	.footer-menu li {
		float: left;
		white-space: nowrap;
		list-style-type: none;
		padding: 0 .25em;
		color: #222;
	}

	.footer-menu a {
		color: #222;
		font-weight: bold;
		white-space: nowrap;
		text-decoration: none;
		/*text-shadow:
			-1px -1px 0 #B2966E,
			1px -1px 0 #B2966E,
			-1px 1px 0 #B2966E,
			1px 1px 0 #B2966E;*/
	}

	.footer-menu a:hover {
		color: #111;
		text-decoration: underline;
	}

	li.top-link {display: none}
}

@media only screen and (max-width: 599px) {

	nav#menu {
		clear: left;
		POSITION: RELATIVE;
		TOP: -20PX; 
		Z-INDEX: 999;
	}
 
	#menu ul {
		width: 100%;
	}

	#menu li, #menu a {
		line-height: 3em;
		border-top: 0;
		/*border-bottom: 1px solid rgba(204, 153, 102, .95);*/
	}

	#menu li:last-child a {
		line-height: 3em;
		border-top: 0;
		/*border-bottom: 2px solid rgba(204, 153, 102, .95);*/
	}

	#menu li { 
		width: 100%; 
		text-align: center;
	}

	#menu li:first-child { padding-left: 0; }

	#menu li:last-child { border: 0; }

	label#toggle-menu { background: url(../images/nav-bg.png) repeat-x; }

	#toggle-menu, 
	#menu a {
		padding: .6em 1.75em;
		/*padding: .25em auto;*/
		white-space: nowrap;
		margin-top: 5px;
	}

	#menu a {
		transition: all .125s ease-in-out;
		-webkit-transition: all .125s ease-in-out;
	}

	#menu a:hover {
		/*background-color: #aba095;
		color: #000;*/
		text-decoration: none;
	}

	#menu li:first-child a:hover {
		/* rounded corner */
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		border-radius: 0;
	}

	#menu li:last-child a:hover {
		/* rounded corner */
		/*-webkit-border-radius: 0px 0px 1px 1px;
		-moz-border-radius:  0px 0px 1px 1px;
		border-radius:  0px 0px 1px 1px;*/
	}

	#toggle-menu .drop-icon, #menu li label.drop-icon {
		top: .5em;
	}

	.footer-menu li {
		width: 100%;
		border-top: 1px dotted #ccc;
		color: #333;
		display: block;
		line-height: 2em;
	}

	.footer-menu a {
		color: #333;
		width: 100%;
		white-space: nowrap;
		text-decoration: none;
		display: block;
	}

	.footer-menu a:hover {
		color: #fff;
		text-decoration: none;
		background-color: #999;
		-webkit-border-radius: 1px;
		-moz-border-radius: 1px;
		border-radius: 1px;
	}

	li.nav-pipe {display: none} 

	li.top-link {
		display: inherit; 
		font-weight: 700;
	}

	li.hide-at-599, li.hide-at-899 { display: none !important; }
}