
#menu, 
#toggle-menu {
	background: #111;
	color: #fff;
	/* border radius */
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

#menu {
	background: transparent;
}	

#menu ul {
	margin: 0;
	padding: 0;
	padding-top: 2px;
}

#menu ul.sub-menu {
	padding-top: 0px;
}

#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:rgba(0,0,0,0.8);
	border-width: 1px 1px 0;
	margin: 0 1em;
	font-size: 14px;
}

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

#menu li, 
#toggle-menu, 
#menu a {
	position: relative;
	display: block;
	color: #fff !important;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .75);
	line-height: 2.5em;
	font-size: 15px;
	letter-spacing: .1em;
	/*text-transform: uppercase;*/
	font-weight: bold;
}

#toggle-menu { color: #000; }

#menu .sub-menu a {
	padding: 0 .5em;
	font-size: 14px;
}

#menu li { 
	width: 16.667%; /* for browsers that don't understand "calc" (was issue on ipad) */
	width: -webkit-calc(16.667% - 20px);
	width: -moz-calc(16.667% - 20px);
	width: calc(16.667% - 20px); 
	text-align: center; 
	/*-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.5);
	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.5);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.5);*/
}

#menu.member-menu li {
        width: 14.285%; /* for browsers that don't understand "calc" (was issue on ipad) */
        width: -webkit-calc(14.285% - 20px);
        width: -moz-calc(14.285% - 20px);
        width: calc(14.285% - 20px);
        text-align: center;
        /*-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.5);
        -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.5);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.5);*/
}

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

#menu li.nav-icon { 
	width: 40px;
}

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

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

#menu a:hover {
	background-color: rgba(255,0,0,1);
	color: #fff;
	text-decoration: none;
}

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

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

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

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

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

#toggle-menu .drop-icon, 
#menu li label.drop-icon {
	position: absolute;
	right: .65em;
	top: .5em;
	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: rgba(255, 255, 255, .95);
}

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

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

ul#footer-menu li a {
		color: #c7ac7f;
		font-weight: normal;
}


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

	nav#menu {clear: both;}

	#menu ul {padding-top: 0px;}


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

	#menu li {
		width: 16.667%;
		width: calc(16.667% - 2px);
		padding: 0; margin: 0; text-align: center;
	}

/*	#menu li:nth-child(2), #menu li:nth-child(5) {
		width: calc(34% - 2px);
		padding: 0; margin: 0; text-align: center;
	}

	#menu li:first-child, #menu li:first-child a:hover {
		border-width: 0 1px 1px 0;
		-webkit-border-radius: 5px 0px 0px 0px;
		-moz-border-radius: 5px 0px 0px 0px;
		border-radius: 5px 0px 0px 0px;
	}

	#menu li:nth-child(2), #menu li:nth-child(2) a:hover {
		border-width: 0 1px 1px 0;
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
	}

	#menu li:nth-child(3), #menu li:nth-child(3) a:hover {
		border-width: 0 0 1px 0;
		-webkit-border-radius: 0px 5px 0px 0px;
		-moz-border-radius: 0px 5px 0px 0px;
		border-radius: 0px 5px 0px 0px;
	}

	#menu li:nth-child(4), #menu li:nth-child(4) a:hover {
		-webkit-border-radius: 0px 0px 0px 5px;
		-moz-border-radius: 0px 0px 0px 5px;
		border-radius: 0px 0px 0px 5px;
	}

	#menu li:nth-child(5), #menu li:nth-child(5) a:hover {
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
	}

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

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

@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: right;
		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;*/
		width: auto;
		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 .5em;
		color: #fff;
		font-weight: bold;
	}

	.footer-menu a {
		color: #fff;
		font-weight: bold;
		white-space: nowrap;
		text-decoration: none;
	}

	.footer-menu a:hover {
		color: rgba(255,0,0,1);
		text-decoration: none;
	}

	li.top-link {display: none}
}

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

	nav#menu {
		clear: both;
		padding-top: .75em;
	}

	#menu ul {padding-top: 0px;}

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

	#menu.member-menu li {
		margin: 0 auto;
		width: 99%;
	}

	#menu li { 
		width: 100%; 
		text-align: center;
		background-color: rgba(0,0,0,.5);
	}

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


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

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

	#menu a:hover {
		background-color: rgba(255,0,0,1); /*#bbbfc0;*/
		color: #333;
		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 5px 5px;
		-moz-border-radius:  0px 0px 5px 5px;
		border-radius:  0px 0px 5px 5px;
	}

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

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

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

	li.nav-pipe {display: none} 

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