/* Some stylesheet reset */
ul.nav, .nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	line-height: 1;
}

/* The container */
.nav {
	display: block;
	position: relative;
}

/* The list elements which contain the links */
.nav>li {
	display: block;
	float: left;
	margin: 0;
	padding: 0;	
}

	/* General link styling */
	.nav>li>a, .nav ul li a {
		/* Layout */
		display: block;
		position: relative;
		margin: 0;
		padding: 20px 30px;

		/* Typography */
		font-family: 'Yanone Kaffeesatz', Helvetica, Arial, sans-serif;
		color: #523000;
		text-decoration: none;
		text-transform: uppercase;
		text-shadow: 0 1px 0px #fff;
		font-size: 16px;

	}

	/* The main menu links */
	.nav>li>a {
		border-right: 1px dotted #fff;
		border-left: 1px dotted #d9d9d9;
	}

	/* Rounded corners for the first link of the main menu */
	.nav>li:first-child>a {
		border-left: 0;
	}

	/* Rounded corners for the last link of the main menu */
	.nav>li:last-child>a {
		border-right: 0;
	}

	/* The submenu links */
	.nav ul li a {
		/* Layout */
		border-top: 1px dotted #fff;
		border-bottom: 1px dotted #d9d9d9;
		padding: 11px 30px;
		width: 100px;

		/* Background */
		background: #eaeaea;
	}

	/* The hover state of the menu/submenu links */
	.nav>li>a:hover, .nav>li:hover>a, .nav ul li a:hover, .nav ul li:hover>a {
		color: #fff;
		text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
		background: #f06343;
		background: -webkit-linear-gradient(bottom, #f06343, #f27d63);
		background: -ms-linear-gradient(bottom, #f06343, #f27d63); 
		background: -moz-linear-gradient(bottom, #f06343, #f27d63);
		background: -o-linear-gradient(bottom, #f06343, #f27d63);
		border-color: transparent;
	}

	/* The links which have submenus have more space to the left */
	.nav>.dropdown>a {
		padding-right: 35px;
	}

	/* The arrow indicating a dropdown menu */
	.nav>.dropdown>a::after {
		content: "";
		position: absolute;
		top: 22px;
		right: 14px;
		width: 0px;
		height: 0px;

		/* Creating the arrow using borders */
		border: 4px solid transparent;
		border-top: 4px solid #e4433c; 
	}

	/* The same arrow, but with a darker color, to create the shadow effect */
	.nav>.dropdown>a::before {
		content: "";
		position: absolute;
		top: 23px;
		right: 14px;
		width: 0px;
		height: 0px;

		/* Creating the arrow using borders */
		border: 4px solid transparent;
		border-top: 4px solid #fff;
	}

	/* Changing the color of the arrow on hover */
	.nav>li>a:hover::after, .nav>li:hover>a::after {
		border-top: 4px solid #fff;
	}

	.nav>li>a:hover::before, .nav>li:hover>a::before {
		border-top: 4px solid rgba(0, 0, 0, .3);
	}

	/* THE SUBMENUS */
		.nav ul {
			position: absolute;
		}

		/* Level 1 submenu */
		.nav>li>ul {
			padding-top: 5px;
			top: -9999px;
			opacity: 0;
			-webkit-transition: opacity .3s ease-in;
			-moz-transition: opacity .3s ease-in;
			-o-transition: opacity .3s ease-in;
			-ms-transition: opacity .3s ease-in;
		}

		/* Showing the submenu when the user is hovering the parent link */
		.nav>li:hover>ul {
			top: 46px;
			opacity: 1;
		}

		/* Level 2+ submenus */
		.nav ul ul {
			left: 160px;
			top: -9999px;
			padding-left: 5px;
			opacity: 0;
			-webkit-transition: opacity .3s ease-in;
			-moz-transition: opacity .3s ease-in;
			-o-transition: opacity .3s ease-in;
			-ms-transition: opacity .3s ease-in;
		}

		/* Showing the submenu when the user is hovering the parent link */
		.nav ul>li:hover>ul {
			top: 0px;
			opacity: 1;
		}

		/* The containers of the submenu links */
		.nav ul li {
			margin: 0;
			padding: 0;
			display: block;
			position: relative;
		}

		/* Rounded corners for the first link of the submenu */
		.nav ul>li:first-child>a {
			border-top: 0;
			border-top-left-radius: 4px;
			border-top-right-radius: 4px;
		}

		/* Rounded corners for the last link of the submenu */
		.nav ul>li:last-child>a{
			border-bottom: 0;
			border-bottom-left-radius: 4px;
			border-bottom-right-radius: 4px;
		}

		/* The arrow indicating a level 2+ submenu */
		.nav ul>.dropdown>a::after {
			content: "";
			position: absolute;
			top: 16px;
			right: 10px;
			width: 0px;
			height: 0px;

			/* Creating the arrow using borders */
			border: 4px solid transparent;
			border-left: 4px solid #e4433c; 
		}

		/* The same arrow, but with a darker color, to create the shadow effect */
		.nav ul>.dropdown>a::before {
			content: "";
			position: absolute;
			top: 17px;
			right: 10px;
			width: 0px;
			height: 0px;

			/* Creating the arrow using borders */
			border: 4px solid transparent;
			border-left: 4px solid #fff;
		}

		/* Changing the color of the arrow on hover */
		.nav ul>li>a:hover::after, .nav ul>li:hover>a::after {
			border-left: 4px solid #fff;
		}

		.nav ul>li>a:hover::before, .nav ul>li:hover>a::before {
			border-left: 4px solid rgba(0, 0, 0, .3);
		}