/* Global CSS that are applied for all screen sizes */

.nav ul {
	max-width: 1240px;
	margin: 0 0 0 0;
	padding: 0;
	list-style: none;
	font-size: 1em;
	font-weight: 300;
}

.nav li span {
	display: block;
	font-weight: bold;
	margin: 0px 0;
	/*! width: 140px; */
}

.nav a {
	display: block;
	color: #222222;
	text-decoration: none;
	-webkit-transition: color .5s, background .5s, height .5s;
	-moz-transition: color .5s, background .5s, height .5s;
	-o-transition: color .5s, background .5s, height .5s;
	-ms-transition: color .5s, background .5s, height .5s;
	transition: color .5s, background .5s, height 0.5s;
	text-align: right;
}

.nav i{
	/* Make the font smoother for Chrome */
	-webkit-transform: translate3d(0, 0, 0);
	-moz-transform: translate3d(0, 0, 0);
	-o-transform: translate3d(0, 0, 0);
	-ms-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

/* Remove the blue Webkit background when element is tapped */

a, button {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover effect for the whole navigation to make the hovered item stand out */

.no-touch .nav ul:hover a {
	color: #22222290;
}

.no-touch .nav ul:hover a:hover {
	color: #a02614;
}

/* Adding some background color to the different menu items */



/* For screen bigger than 800px */
@media (min-width: 600px) {
	/* Transforms the list into a horizontal navigation */
	.nav li {
		float: left;
		width: 100px;
		text-align: center;
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
		height: 40px;
		margin-top: 40px;
	}

	.nav a {
		/*! display: block; */
		width: 100%;
		text-align: center;
	}

	/* hover, focused and active effects that add a little colored border to the different items */
	.no-touch .nav li a:hover,
	.no-touch .nav li a:active,
	.no-touch .nav li a:focus {
		border-bottom: 4px solid #222222;
	}


/*
	.no-touch .nav li:nth-child(6n+4) a:hover,
	.no-touch .nav li:nth-child(6n+4) a:active,
	.no-touch .nav li:nth-child(6n+4) a:focus {
		border-bottom: 4px solid rgb(10, 75, 117);
	}

	.no-touch .nav li:nth-child(6n+5) a:hover,
	.no-touch .nav li:nth-child(6n+5) a:active,
	.no-touch .nav li:nth-child(6n+5) a:focus {
		border-bottom: 4px solid rgb(16, 34, 44);
	}

	.no-touch .nav li:nth-child(6n+6) a:hover,
	.no-touch .nav li:nth-child(6n+6) a:active,
	.no-touch .nav li:nth-child(6n+6) a:focus {
		border-bottom: 4px solid rgb(9, 18, 25);
	}
*/


	/* Animating the height of the element*/
	.nav a {
		height: 40px;
		display: flex;
		flex-direction: column;
	}

	.no-touch .nav a:hover ,
	.nav a:active ,
	.nav a:focus {
		height: 40px;
	}

	/* Animate the box-shadow to create the effect */
	.no-touch .nav a:hover i,
	.no-touch .nav a:active i,
	.no-touch .nav a:focus i {
		box-shadow: 0 0 0 0 rgba(255,255,255,0.2);
		-webkit-transition: box-shadow .4s ease-in-out;
		-moz-transition: box-shadow .4s ease-in-out;
		-o-transition: box-shadow .4s ease-in-out;
		-ms-transition: box-shadow .4s ease-in-out;
		transition: box-shadow .4s ease-in-out;
	}
}

@media (min-width: 960px) and (max-width: 1135px) {
	.nav li {
		width:110px;
	}
}

@media (min-width: 1136px) {
	.nav li {
		width:140px;
	}
}


/* The "tablet" and "mobile" version */

@media (max-width: 599px) {


/*
	.no-touch .nav li:nth-child(3n+4) a:hover,
	.no-touch .nav li:nth-child(3n+4) a:active,
	.no-touch .nav li:nth-child(3n+4) a:focus {
		background: rgb(31, 120, 176);
	}

	.no-touch .nav li:nth-child(6n+5) a:hover,
	.no-touch .nav li:nth-child(6n+5) a:active,
	.no-touch .nav li:nth-child(6n+5) a:focus {
		background: rgb(39, 70, 90);
	}

	.no-touch .nav li:nth-child(6n+6) a:hover,
	.no-touch .nav li:nth-child(6n+6) a:active,
	.no-touch .nav li:nth-child(6n+6) a:focus {
		background: rgb(32, 54, 68);
	}
*/
	.nav ul li {
		-webkit-transition: background 0.5s;
		-moz-transition: background 0.5s;
		-o-transition: background 0.5s;
		-ms-transition: background 0.5s;
		transition: background 0.5s;
	}

	.nav li {

	background: #fbba00ef;
	}

}

/* Styling the toggle menu link and hiding it */
.nav .navtoogle{
	display: none;
	width: 100%;
	margin-left:;
	/*! padding: 0.5em 0.5em 0.8em; */
	font-family: inherit;
	font-weight: bold;
	text-align: right;
	color: rgb(7, 16, 15);
	font-size: 1em;
	background: none;
	border: none;
	cursor: pointer;
	height: 30px;
}

.navtoogle i{
	z-index:-1;
}

.icon-menu {
	position: relative;
	top: 3px;
	line-height: 0;
	font-size: 1.6em;
}

@media (max-width: 599px) {

	/* Unhiding the styled menu link */
	.nav .navtoogle{
		margin: 0;
		display: block;
		margin-top: 50px;
		padding-right: 10px;
	}

	/* Animating the height of the navigation when the button is clicked */

	/* When JavaScript is disabled, we hide the menu */
	.no-js .nav ul {
		max-height: 30em;
		overflow: hidden;
	}

	/* When JavaScript is enabled, we hide the menu */
	.js .nav ul {
		max-height: 0em;
		overflow: hidden;
	}

	/* Displaying the menu when the user has clicked on the button*/
	.js .nav .active + ul {
		max-height: 30em;
		overflow: hidden;
		-webkit-transition: max-height .4s;
		-moz-transition: max-height .4s;
		-o-transition: max-height .4s;
		-ms-transition: max-height .4s;
		transition: max-height .4s;
	}

	/* Adapting the layout of the menu for smaller screens : icon on the left and text on the right*/

	.nav li span {
		display: inline-block;
		height: 100%;
		margin-right: 10px;
	}

	.nav a {
		/*! padding: 0.5em; */
	}

	.icon + span {
		margin-left: 1em;
		font-size: 0.8em;
	}

	/* Adding a left border of 8 px with a different color for each menu item*/
	.nav li:nth-child(3n+1) {
		/*! border-left: 8px solid #4E0B00; */
	}

	.nav li:nth-child(3n+2) {
		/*! border-left: 8px solid #003c65; */
	}

	.nav li:nth-child(3n+3) {
		/*! border-left: 8px solid #b38400; */
	}

	/* make the nav bigger on touch screens */
	.touch .nav a {
		padding: 0.8em;
	}
}
