/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup,
	menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
	float: right;
	margin: 0px;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

/* Default Styles 
--------------------------------------------------------------------*/
.clearfix {
	clear: both;
}

.wrap {
	margin-top: -49px;
	border-top: #e0e0e0 1px solid;
}

nav {
	background: -webkit-gradient(linear, center top, center bottom, from(#fff),
		to(#ccc));
	background-image: linear-gradient(#fff, #ccc);
	border-radius: 6px;
	/* box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.4); */
	padding: 0 10px;
	position: relative;
}

.menu li {
	float: left;
	position: relative;
}

.menu li a {
	color: #666;
	display: block;
	font-size: 14px;
	line-height: 20px;
	padding: 6px;
	margin: 8px 8px;
	vertical-align: middle;
	text-decoration: none;
}

.menu li a:hover {
	background: -webkit-gradient(linear, center top, center bottom, from(#ededed),
		to(#fff));
	background-image: linear-gradient(#ededed, #fff);
	border-radius: 12px;
	box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
	color: #666;
}

/* Dropdown styles */
.menu ul {
	position: absolute;
	left: -9999px;
	list-style: none;
	opacity: 0;
	transition: opacity 1s ease;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.menu ul li {
	float: none;
}

.menu ul a {
	white-space: nowrap;
	margin-left: -32px;
}

/* Displays the dropdown on hover and moves back into position */
.menu li:hover ul {
	background: rgba(240, 240, 240, 1);
	border-radius: 0 0 6px 6px;
	box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.4);
	left:auto;
    right:0;
	opacity: 1;
}

/* Persistant Hover State */
.menu li:hover a {
	background: -webkit-gradient(linear, center top, center bottom, from(#ccc),
		to(#ededed));
	background-image: linear-gradient(#ccc, #ededed);
	border-radius: 6px;
	box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
	color: #666;
}

.menu li:hover ul a {
	background: none;
	border-radius: 0;
	box-shadow: none;
}

.menu li:hover ul li a:hover {
	background: -webkit-gradient(linear, center top, center bottom, from(#eee),
		to(#fff));
	background-image: linear-gradient(#ededed, #fff);
	border-radius: 6px;
	box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.3);
}