.nav {
	/* General Font */
	font-family: 'Open Sans', sans-serif; 
	font-weight: 600;
	font-size: 13px;
	line-height: 13px;
	color: #252525;

	/* General Form */
	padding: 4px 0 7px 8px;
	margin: 0;
}

/* Reset Links */
.nav a, .nav a:link, .nav a:visited, .nav a:hover, .nav a:focus {
	color: #252525;
	text-decoration: none;
}

/* Main element of the naviagtion */
.nav > li {
	display: inline-block;
	width: 100px;
	text-align: center;
	padding: 10px 0;
	margin: 0 10px;
	margin-left: -4px; /* For the inline-block spacing */
	position: relative;

	background: #f1f1f1; /* Old browsers */
	background: -moz-linear-gradient(top,  #f1f1f1 0%, #d7d7d7 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f1f1f1), color-stop(100%,#d7d7d7)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #f1f1f1 0%,#d7d7d7 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #f1f1f1 0%,#d7d7d7 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #f1f1f1 0%,#d7d7d7 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #f1f1f1 0%,#d7d7d7 100%); /* W3C */


	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;

	-webkit-box-shadow: 0px 3px 0px 0px rgba(126, 126, 126, 1);
    box-shadow: 0px 3px 0px 0px rgba(126, 126, 126, 1);

    border: 1px solid #a3a2a2;
}

.nav li {
	position: relative;
}

.nav > li:hover {
	background: #ececec;
}

.nav > li > a {
	text-shadow: 1px 1px 1px #ffffff;
}

/* Separation for the dropdown */
.nav ul .union {
	height: 25px;
	width: 100px;
	background-color: #ececec;
	position: absolute;
	top: -25px;
	left: -1px;
	border-right: 1px solid #a3a2a2;
	border-left: 1px solid #a3a2a2;
}

/* Dropdown */
.nav > li ul {
	opacity: 0;
	visibility: hidden;

	position: absolute;
	top:50px;
	left: -1px;

	list-style: none;
	background-color: #ececec;
	text-align: left;

	width: 240px;
	padding: 10px 0px 10px 0px;
	margin-top: 20px;

	-webkit-border-radius: 4px;
	-webkit-border-top-left-radius: 0;
	-moz-border-radius: 4px;
	-moz-border-radius-topleft: 0;
	border-radius: 4px;
	border-top-left-radius: 0;

	-webkit-box-shadow:  0px 3px 0px 0px rgba(126, 126, 126, 1); 
    box-shadow:  0px 3px 0px 0px rgba(126, 126, 126, 1);

    border:1px solid #a3a2a2;

    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out; /* Firefox 4 */
	-webkit-transition: all 0.2s ease-in-out; /* Safari and Chrome */
	-o-transition: all 0.2s ease-in-outs; /* Opera */

	z-index: 99;
}

/* Dropdown visible on hover */
.nav > li:hover > ul {
	opacity: 1;
	visibility: visible;
	margin-top: 0; /* No margin for animation */
}

/* Next level Dropdown */
.nav > li ul li ul {
	top:6px;
	left: 230px;

    margin-left: 20px;

    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out; /* Firefox 4 */
	-webkit-transition: all 0.2s ease-in-out; /* Safari and Chrome */
	-o-transition: all 0.2s ease-in-outs; /* Opera */
}

/* Next level Dropdown visible on hover */
.nav > li ul li:hover > ul {
	opacity: 1;
	visibility: visible;
	margin: 0;
}

/* Padding for all dropdown lists */
.nav ul li {
	padding: 8px 10px;
}

/* Hover for all dropdown lists */
.nav ul li:hover {
	background-color: #515151;
}

.nav ul li:hover > a {
	color: white;
}

/* Arrow */
.nav > li.dropdown:after {
	content: "";
	width: 0; 
	height: 0; 
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #5d5d5d;
	position: absolute;
	left:46%;
	top: 76%;
}

/* Hide arrow on hover */
.nav > li.dropdown:hover:after {
	display: none;
}

/* Arrow for lists inside dropdown */
.nav ul li.dropdown:after {
	content: "";
	width: 0; 
	height: 0; 
	border-bottom: 5px solid transparent;
	border-top: 5px solid transparent;
	border-left: 5px solid #5d5d5d;
	position: absolute;
	left:90%;
	top: 10px;
}

/* Hover status for arrow */
.nav ul li.dropdown:hover:after {
	border-left: 5px solid white;


}

/* Bubble */
.nav > li > .bubble {
	position: absolute;
	top:-6px;
	left: 85px;

	height: 13px;
	background-color: red;

	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;

	padding: 2px 6px 2px  6px;

	font-size: 10px;
	text-align: center;
	color: white;
}



/*RESPONSIVNESS*/
/******************************************************/

@media only screen and (max-width: 959px) {
	.nav > li ul li ul li ul {
		top:25px;
		left: -180px;
	}
}

@media only screen and (max-width: 767px) {
	.nav .union {
		display: none;
	}

	.nav > li > .bubble {
		top:8px;
		left: 10%;
	}

	.nav > li.dropdown:after {
		left:90%;
		top: 48%;
	}

	.nav li {
		-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
		-moz-box-sizing: border-box;    /* Firefox, other Gecko */
		box-sizing: border-box;         /* Opera/IE 8+ */
	}

	.nav > li {
		width: 50%;
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
		margin-right: 0px;
	}

	.nav > li > ul li ul {
		width: 100%;
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
		left: 100%;
		top:-11px;
	}

	.nav > li:nth-child(even) ul > li ul{
		width: 100%;
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
		left: auto;
		right: 100%;
		top:-11px;
		}

	.nav > li > ul {
		border-top: none;
		top:34px;
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
		width: 100%;
	}

	.nav > li > ul li ul li ul {
		top:25px;
		left: -50%
	}

	.nav > li:nth-child(even) > ul li ul li ul {
		top:25px;
		left: 50%
	}
}

/******************************************************/
/*END - RESPONSIVNESS*/