/* Main */
#menu{
	width: 100%;
	margin: 0;
	padding: 6px 0 0 0;
	list-style: none;
	background: #1e3a5f;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
	border-bottom: 3px solid #5b9bd5;
}

#menu li{
	float: left;
	padding: 0 0 6px 0;
	position: relative;
}

#menu a{
	float: left;
	height: 28px;
	padding: 0 22px;
	color: #c8ddf5;
	text-transform: uppercase;
	font: 600 12px/28px Arial, Helvetica;
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: color 0.15s;
}

#menu li:hover > a{
	color: #ffffff;
}

#menu li:hover > ul{
	display: block;
}

/* Sub-menu */

#menu ul{
	list-style: none;
	margin: 0;
	padding: 4px 0;
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: -1px;
	z-index: 99999;
	background: #1e3a5f;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
	border: 1px solid rgba(91,155,213,0.3);
	min-width: 160px;
}

#menu ul li{
	float: none;
	margin: 0;
	padding: 0;
	display: block;
}

#menu ul li:last-child{
	box-shadow: none;
}

#menu ul a{
	padding: 8px 16px;
	height: auto;
	line-height: 1.4;
	display: block;
	white-space: nowrap;
	float: none;
	text-transform: none;
	font-weight: normal;
	letter-spacing: 0;
	border-radius: 4px;
	margin: 1px 4px;
	transition: background 0.15s;
}

#menu ul a:hover{
	background: #5b9bd5;
	color: #ffffff;
}

#menu ul li:first-child a{
	border-radius: 4px;
}

#menu ul li:first-child a:after{
	content: '';
	position: absolute;
	left: 24px;
	top: -7px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 7px solid #1e3a5f;
}

#menu ul li:first-child a:hover:after{
	border-bottom-color: #1e3a5f;
}

#menu ul li:last-child a{
	border-radius: 4px;
}

/* Clear floated elements */
#menu:after{
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}
