@font-face {
	font-family: 'icomoon';
	src: url('../_fonts/icomoon.eot');
	src: url('../_fonts/icomoon.eot?#iefix') format('embedded-opentype'),
		url('../_fonts/icomoon.woff') format('woff'),
		url('../_fonts/icomoon.ttf') format('truetype'),
		url('../_fonts/icomoon.svg#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}
* {
	padding:0;
	margin:0;
}

/* Windows Chrome ugly fix http://stackoverflow.com/questions/13674808/chrome-svg-font-rendering-breaks-layout/14345363#14345363 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
	@font-face {
		font-family: 'icomoon';
		src: url('../_fonts/icomoon.svg#icomoon') format('svg');
	};
}

.icon-team, .icon-blog, .icon-home, .icon-portfolio, .icon-services, .icon-contact, .icon-menu {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

.icon-team:before {
	content: "\e000";
}

.icon-blog:before {
	content: "\e001";
}

.icon-home:before {
	content: "\e002";
}

.icon-portfolio:before {
	content: "\e003";
}

.icon-services:before {
	content: "\e004";
}

.icon-contact:before {
	content: "\e005";
}

.icon-menu:before {
	content: "\f0c9";
}

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


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

.nav ul {
	max-width: 100vw;
	margin:auto;
	padding: 0;
	list-style: none;
	font-size: 1.5em;
	font-weight: 300;
	
}

.nav li span {
	display: block;
	font-size: 18px;
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-style: normal;
	padding-top: 10px;
	padding-bottom: 0px;
}

.nav a {
	display: block;
	color: rgba(249, 249, 249, .9);
	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 .5s;
}

.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: rgba(249, 249, 249, .6);
}

.no-touch .nav ul:hover a:hover {
	color: rgba(249, 249, 249, 1.0);
}

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

.nav li:nth-child(8n+1) {
	background: rgb(208, 101, 3);
}

.nav li:nth-child(8n+2) {
	background: rgb(233, 147, 26);
}

.nav li:nth-child(8n+3) {
	background: rgb(22, 145, 190);
}

.nav li:nth-child(8n+4) {
	background: rgb(22, 107, 162);
}

.nav li:nth-child(8n+5) {
	background: rgba(39,211,26,1.00);
}

.nav li:nth-child(8n+6) {
	background: rgba(5,116,37,1.00);
}
.nav li:nth-child(8n+7) {
	background: rgba(245,12,196,1.00);
}
.nav li:nth-child(8n+8) {
	background: rgba(110,5,165,1.00);
}

/* For screen bigger than 481px */
@media (min-width: 481px) {

	/* Transforms the list into a horizontal navigation */
.container img {
	display: none;
}
.container nav {
	padding:0;
	margin:0;
	z-index:999;
	height:90px;
}
	.nav li {
		float: left;
		width: 12.5%;
		text-align: center;
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
		
	}

	.nav a {
		display: block;
		width: 100%;
		
	}
	/* hover, focused and active effects that add a little colored border to the different items */
	.no-touch .nav li:nth-child(8n+1) a:hover,
	.no-touch .nav li:nth-child(8n+1) a:active,
	.no-touch .nav li:nth-child(8n+1) a:focus {
		border-bottom: 4px solid rgb(174, 78, 1);
	}

	.no-touch .nav li:nth-child(8n+2) a:hover,
	.no-touch .nav li:nth-child(8n+2) a:active,
	.no-touch .nav li:nth-child(8n+2) a:focus {
		border-bottom: 4px solid rgb(191, 117, 20);
	}

	.no-touch .nav li:nth-child(8n+3) a:hover,
	.no-touch .nav li:nth-child(8n+3) a:active,
	.no-touch .nav li:nth-child(8n+3) a:focus {
		border-bottom: 4px solid rgb(12, 110, 149);
	}

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

	.no-touch .nav li:nth-child(8n+5) a:hover,
	.no-touch .nav li:nth-child(8n+5) a:active,
	.no-touch .nav li:nth-child(8n+5) a:focus {
		border-bottom: 4px solid rgba(20,158,10,1.00);
	}

	.no-touch .nav li:nth-child(8n+6) a:hover,
	.no-touch .nav li:nth-child(8n+6) a:active,
	.no-touch .nav li:nth-child(8n+6) a:focus {
		border-bottom: 4px solid rgba(2,72,22,1.00);
	}
	.no-touch .nav li:nth-child(8n+7) a:hover,
	.no-touch .nav li:nth-child(8n+7) a:active,
	.no-touch .nav li:nth-child(8n+7) a:focus {
		border-bottom: 4px solid rgba(192,10,154,1.00);
	}
	.no-touch .nav li:nth-child(8n+8) a:hover,
	.no-touch .nav li:nth-child(8n+8) a:active,
	.no-touch .nav li:nth-child(8n+8) a:focus {
		border-bottom: 4px solid rgba(50,3,95,1.00);
	}

	/* Placing the icon */
	
	.icon {
		padding-top: 1.4em;
	}

	.icon + span {
		margin-top: 2.1em;
		-webkit-transition: margin .5s;
		-moz-transition: margin .5s;
		-o-transition: margin .5s;
		-ms-transition: margin .5s;
		transition: margin .5s;
	}

	/* Animating the height of the element*/
	.nav a {
		height: 70px;
	}

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

	/* Making the text follow the height animation */
	.no-touch .nav a:hover .icon + span {
		margin-top: 3.2em;
		-webkit-transition: margin .5s;
		-moz-transition: margin .5s;
		-o-transition: margin .5s;
		-ms-transition: margin .5s;
		transition: margin .5s;
	}

	/* Positioning the icons and preparing for the animation*/
	.nav i {
	position: relative;
	display: inline-block;
	margin: 0 auto;
	padding: 5px;
	border-radius: 10%;
	font-size: 18px;
	box-shadow: 0 0 0 30px transparent;
	background: rgba(255,255,255,0.1);
	-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);
	-webkit-transition: box-shadow .6s ease-in-out;
	-moz-transition: box-shadow .6s ease-in-out;
	-o-transition: box-shadow .6s ease-in-out;
	-ms-transition: box-shadow .6s ease-in-out;
	transition: box-shadow .6s ease-in-out;
	}	
	
	/* 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;
	}
		
}






/* Adapting the font size and width for smaller screns*/
@media (min-width: 320px) and (max-width: 480px) {
	
	.nav li span.icon {
		width: 50%;
	}

	.nav li .icon + span {
		font-size: 0.9em;
	}


}

/* Styling the toggle menu link and hiding it */

.nav .navtoogle{
	display: none;	
	width: 100%;
	padding: 0.5em 0.5em 0.8em;
	font-family: 'Lato',Calibri,Arial,sans-serif;
	font-weight: normal;
	text-align: left;
	color: rgb(7, 16, 15);
	font-size: 1.2em;
	background: none;	
	border: none;
	border-bottom: 4px solid rgb(221, 221, 221, 0);
	cursor: pointer;
}

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

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

@media (max-width: 480px) {

	/* Unhiding the styled menu link */
	.container img {
		text-align:center;
		margin: auto;
		margin-left:30px;
		margin-top:60px;
 	}
.container nav {
	position: fixed;
	height: 50px;
	/* [disabled]text-align: left; */
	background-color: rgba(24,63,121,1.0);
	z-index: 999999;
	}
	
	.nav .navtoogle{
		margin: 0;
		display: block;
		color:rgba(255,255,255,1.0);
		z-index: 999999;
		
	}
	.nav ul {
		width:70%;
		float:left;
	}
	
	/* 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;
		z-index: 999999;
	}

	/* 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%;
	}

	.nav a {
		padding-left:20px;

	}
	
	.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(8n+1) {
		border-left: 8px solid rgb(174, 78, 1);
	}

	.nav li:nth-child(8n+2) {
		border-left: 8px solid rgb(191, 117, 20);
	}

	.nav li:nth-child(8n+3) {
		border-left: 8px solid rgb(13, 111, 150);
	}

	.nav li:nth-child(8n+4) {
		border-left: 8px solid rgb(10, 75, 117);
	}

	.nav li:nth-child(8n+5) {
		border-left: 8px solid rgba(39,149,26,1.00);
	}

	.nav li:nth-child(8n+6) {
		border-left: 8px solid rgba(4,83,9,1.00);
	}
	.nav li:nth-child(8n+7) {
		border-left: 8px solid rgba(192,10,154,1.00);
	}
	.nav li:nth-child(8n+8) {
		border-left: 8px solid  rgba(80,5,134,1.00);
	}

	/* make the nav bigger on touch screens */
	.touch .nav a {
		padding-left:20px;
		padding-bottom:3px;
	}
}
