/* Giving a background-color to the nav container. */
.toggle,
[id^=drop] {
	display: none;
}

nav { 
	margin:0;
	padding: 0;
}


/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	float: right;
	padding:0;
	list-style: none;
	position: relative;
	margin: 15px 0 0 0; z-index: 99999;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	}

/* Styling the links */
nav ul li a {
	display:block;
	padding:14px 16px;	
	color:#333333;
	font-size:15px;
	text-decoration:none; text-transform: uppercase;
}
nav ul li a .fa { font-size: 15px; color: #a4a1a1; margin-right: 5px; }

nav ul li a:hover { color: #ff9900; }
nav ul li a:hover .fa { color: #ff9900; }
nav ul li ul li:hover { background: #000; }

/* Background color change on Hover */
.logo a.logo-link { padding: 0; }
.logo a.logo-link:hover { background-color: #fff;}

nav ul li ul li a { padding:10px 20px; color: #fff; font-size: 15px; border:none; }
nav ul li ul li a:hover { border:none; color: #fff;}
/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 36px; 
	background-color: #ff9900;
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:210px;
	float:none;
	display:list-item;
	position: relative;

}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:170px; 
}

	
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ' '; }
li > a:only-child:after { content: ''; }


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

@media all and (max-width : 768px) {


	nav {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		cursor: pointer;
		padding:14px 20px;	
		color:#000;
		font-size:17px;
		text-decoration:none;
		border:none;
	}
	.menu-toggle { background-color: #000; cursor: pointer; color: #fff; transition: 0.5s ease-in;}
	.menu-toggle:hover { color: #fff!important; }
	.toggle:hover {
		background-color: #000; color: #ff9900;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul { float: left; width: 100%; background-color: #eee; margin: 0; }
	nav ul li {
		display: block;
		width: 100%; border-bottom: 1px solid #d3d3d3;
		}
		nav ul li a:hover { color: #ff9900 color: #ff9900;; }
	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
		background-color: #000000;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		padding: 10px 20px;
		border: none;
		color: #333333;
		font-size: 15px; 
	}
  
  
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #eee; 
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}
nav ul li ul li a { padding:10px 20px; color: #333; font-size: 15px; border:none; }
}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}

}