nav {
	width: 40%;
}

nav li {
	list-style: none;
}

nav a {
	text-decoration: none;
	color: #8f5822ff;
	font-family: "PT Sans Caption";
	text-transform: uppercase;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

nav ul li:hover {
	transition: .5s;
}

nav ul li:after {
	display: block;
	content: "";
	background-color: #8f5822ff;
	height: 5px;
	width: 0%;
	transition: width .3s ease-in-out;
	transform: translateX(-50%);
	position: absolute;
	left: 50%;
}

nav ul li:hover:after,
nav ul li:focus:after {
	width: 100%;
}

.nav-item {
	zoom: 1;
	position: relative;
}

.nav-item a {
	display: block;
	color: #8f5822ff;
	padding: 15px 0;
}

.nav-submenu-item a {
	padding: 15px 0 15px 5px;
	position: relative;
	z-index: 10000;
}

.nav-item:hover .nav-submenu {
	display: block;
}
/* Navigation submenu */
.nav-submenu {
	display: none;
	position: absolute;
	left: 0;
	width: 180px;
}
.nav-submenu-item a {
	background: #f5e5d6ff;
	display: block;
}
.nav-submenu-item a:hover {
	background:#fdfaf7ff;
}
/* Mobile navigation */
.nav-mobile {
	display: none; /* Hide from browsers that don't support media queries */
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 10px;
	background: url(../images/nav.svg) no-repeat center center;
	background-size: 50px;
	height: 50px;
	width: 50px;
}
/* Mobile navigation, clickable area for revealing <ul> */
.nav-click {
	position: absolute;
	top: 0;
	right: 30px;
	display: none;
	border-left: 1px solid #f5e5d6ff;
	height: 49px;
	width: 100%;
	cursor: pointer;
}
.nav-click i {
	display: block;
	height: 48px;
	width: 48px;
	background: url(../images/drop.svg) no-repeat center center;
	background-size: 20px;
	float: right;
}

.nav-rotate {
	-webkit-transform:rotate(180deg);
	-moz-transform:rotate(180deg);
	-ms-transform:rotate(180deg);
	-o-transform:rotate(180deg);
	transform:rotate(180deg);
}

/*------------------------------------*\
    Media Queries
\*------------------------------------*/

@media only screen and (min-width: 320px) and (max-width: 800px) {
	.nav-mobile {
		display: block;
	}
	.nav {
		width: 100%;
		padding: 50px 0 0;
	}
	.nav-list {
		display: none;
	}
	.nav-item {
		width: 100%;
		float: none;
	}
	.nav-item > a {
		padding: 15px;
	}
	.nav-click {
		display: block;
	}
	.nav-mobile-open {
		border-radius: 5px 5px 0 0;
		-webkit-border-radius: 5px 5px 0 0;
		-moz-border-radius: 5px 5px 0 0;
	}
	.nav-item:hover .nav-submenu {
		display: none;
	}
	.nav-submenu {
		position: static;
		width: 100%;
	}
}