
#nav{
	
	width:700px;
	height: 30px;
	list-style:none;
	font-weight:bold;
	margin:5px auto 0px auto;
	font-size: 90%;
	text-align: left;

	
}
#nav li{
	float:left;
	margin-right:10px;
	position:relative;
	display:block;
}
#nav li a{
	display:block;
	padding:5px;
	color:#fff;
	background:#555;
	text-decoration:none;

	
	text-shadow:1px 1px 1px rgba(0,0,0,0.75); /* Text shadow to lift it a little */
	-moz-border-radius:2px;
	-webkit-border-radius:2px;
	border-radius:2px;
}
#nav li a:hover{
	color:#fff;
	background:#416770; /* Solid colour fall-back */
	background:rgba(65,103,112,0.75); /* It'll look nice semi-transparent */

	text-decoration:none;
}

/*--- DROPDOWN ---*/
#nav ul{
	list-style:none;
	position:absolute;
	left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
	opacity:0; /* Set initial state to transparent */
	-webkit-transition:0.35s linear opacity;  /* Make the dropdown fade-in in Webkit */
	z-index: 1000;
}

#nav ul li{
	padding-top:0px; /* Introducing a padding between the li and the a gives the illusion of spaced items */
	border-top: solid 1px #ccc;
	float:none;
}

#nav ul a{
	white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
	display:block;
}
#nav li:hover ul{ /* Display the dropdown on hover */
	left: -40px; /* Bring back on-screen when needed */
	opacity:1; /* Fade to opaque */

}
#nav li:hover a{ /* Set styles for top level when dropdown is hovered */

	background:#416770; /* Solid colour fall-back */
	background:rgba(65,103,112,0.75); /* It'll look nice semi-transparent */
	text-decoration:none;
}
#nav li:hover ul a{ /* Override some top level styles when dropdown is hovered */
	text-decoration:none;
	-webkit-transition:-webkit-transform 0.075s linear;
}
#nav li:hover ul li a:hover{ /* Set styles for dropdown when items are hovered */
	background:#333; /* Solid colour fall-back */

	background:rgba(51,51,51,0.75); /* It'll look nice semi-transparent */
	text-decoration:none;
	-moz-transform:scale(1.05);
	-webkit-transform:scale(1.05);
}
