/* Some stylesheet reset */
.nav, .nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}

/* The main container */
.nav {
	/* Layout and positioning */
	display: block;
	position: relative;
	height: 44px;
	width: 752px; /* CHANGE this if you want another width or remove it if you want the width of the container */
	border-radius: 5px;
    border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: #808080







	/* Background and effects */

}

.nav>li {
	display: block;
	position: relative;

	float: left;
	margin: 0;
	padding: 0 1px 0 0;
}

/* The main navigation links */
.nav>li>a {
	/* Layout */
	display: block;
	padding: 13px 30px;

	/* Typography */
	font-family: Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: bold;
	text-decoration: none;
	color: #007aee;
	text-shadow: 0 2px rgba(0, 0, 0, .8);

	/* Effects */
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	-ms-transition: all .3s;
	-o-transition: all .3s;
	transition: all .3s;
}

/* The hover state of the navigation links */
.nav>li>a:hover, .nav>li:hover>a {
	background: #3d3d3d;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	box-shadow: #808080
}

.nav>li:first-child>a {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;

}

.nav>.dropdown>a {
	padding-right: 26px;
}

/* The arrow indicating a dropdown menu */
.nav>.dropdown>a::after {
	 content: "";
	 position: absolute;
	 top: 14px;
	 right: 11px;
	 width: 4px;
	 height: 4px;
	 border-bottom: 1px solid #eee;
	 border-right: 1px solid #eee;
	 -webkit-transform: rotate(45deg);
	 -ms-transform: rotate(45deg);
	 -moz-transform: rotate(45deg);
	 -o-transform: rotate(45deg);
	}

/* Changing the color of the arrow on hover */
.nav>.dropdown>a:hover::after, .nav>.dropdown:hover>a::after {
	border-color: #fff;


}

.nav ul {
	position: relative;
	position: absolute;
	left: -9999px;
	display: block;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

/* Level 1 submenus */
.nav>li>ul {
	padding-top: 0px;
	z-index: 99;
	border-top: 1px solid #222;
	top: 34px;
}

/* Making the level 1 submenu to appear on hover */
.nav>li:hover>ul {
	left: -1px;

}

/* Level 2+ submenus */
.nav ul ul {
	left: -9999px;
	top: 0px;
	z-index: 999;
}

/* Making the level 2+ submenu to appear on hover */
.nav ul>li:hover>ul {
	left: 120px;
	top: -1px;
}

/* The submenu link containers */
.nav ul li {
	position: relative;
    display: block;
	border-left: 1px solid #222;
	border-right: 1px solid #222;

	/* Creating the slide effect. The list elements which contain the links have 0 height. On hover, they will expand */
	height: 0px;
	-webkit-transition: height .3s;
	-moz-transition: height .3s;
	-o-transition: height .3s;
	-ms-transition: height .3s;
}

/* Expanding the list elements which contain the links */
.nav li:hover>ul>li {
	height: 5px;


}

.nav ul li:hover>ul>li:first-child {
	height: 26px;
}

/* The links of the submenus */
.nav ul li a {
	/* Layout */
	display: block;
	width: 360px;
	padding: 6px 10px 6px 20px;
    border: 2px solid #111111;




	/* Typography */
	font-size: 12px;
	color: #eaeaea;
	font-family: Helvetica, Arial, sans-serif;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .8);

	/* Background & effects */

     background-image: -webkit-gradient(linear, top, bottom, color-stop(0, #6D6555), color-stop(1, #39352D));


	background-image: -ms-linear-gradient(top, #6D6555, #39352D);
	background-image: -o-linear-gradient(top, #6D6555, #39352D);
	background-image: -moz-linear-gradient(top, #6D6555, #39352D);
	background-image: -webkit-linear-gradient(top, #6D6555, #39352D);
	background-image: linear-gradient(to bottom, #6D6555, #39352D);
	border-top-left-radius: 9px;
	border-top-right-radius: 9px;
	border-bottom-left-radius: 9px;
	border-bottom-right-radius: 9px
}

/* The hover state of the links */
.nav ul li>a:hover, .nav ul li:hover>a {

	color: #fff;
	text-shadow: 0 1px 0 #000;
}

.nav ul ul>li:first-child>a {
	border-top: 1px solid #222;
}

.nav ul>li:last-child>a {
	border-bottom: 1px solid #222;
}

/* The arrow indicating a level 2+ submenu */
.nav ul>.dropdown>a::after {
	content: "";
	 position: absolute;
	 top: 10px;
	 right: 8px;
	 width: 4px;
	 height: 4px;
	 border-bottom: 1px solid #eaeaea;
	 border-right: 1px solid #eaeaea;
	 -webkit-transform: rotate(-45deg);
	 -ms-transform: rotate(-45deg);
	 -moz-transform: rotate(-45deg);
	 -o-transform: rotate(-45deg);
}

.nav ul>.dropdown:hover>a::after, .nav ul>.dropdown>a:hover::after {
	border-color: #fff;
}
