/* CSS Document */


.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0 auto;
	width:45em;
	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: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	}

/* Styling the links */
nav a {
	display:block;
	padding:1em;	
	color:#444;
	text-decoration:none;
}


nav ul li ul li:hover { background-color: #e8e8e8; }

/* Background color change on Hover */
nav a:hover { 
	background-color: #f8f8f8; 
}

/* 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:3.2em;
	background-color:#fff;
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:14em;
	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:-3.2em;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:14em; 
	background-color:#fff;
}

	
/* 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 : 720px) {

	nav {
		margin:0;
		width:100%;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		padding:1em;	
		color:#444;
		text-decoration:none;
		border:none;
		background-color: #eee;
		border-bottom:1px solid #ccc;
	}

	.toggle:hover {
		background-color: #ccc;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		border-bottom:1px solid #ccc;
	}

	nav .toggle,
	nav ul a,
	nav ul ul a,
	nav ul ul ul a {
		padding-top:.4em!important;
		padding-bottom:.4em!important;
		font-size:1.4em;
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding-left:2em!important;
		color:#444;
		background-color: #fff!important;
		
	}

	nav ul ul ul a {
		color:#444;
		padding-left:4em!important;
		background-color: #fff!important;
	}

	nav a:hover,
 	nav ul ul ul a {
		color:#444;
		background-color: #ccc;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		color:#444;
	}
  
  
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #212121; 
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* 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" */ 

	}

}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}

}