/* CSS Document */

@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Bree+Serif);

nav a:link {
	color: #EEEEEE;
	text-decoration: none;

}
nav a:visited {
	color: #FFFFFF;
}
nav a:hover {
	color: #EEEEEE;
}

body {
	word-wrap: break-word !important;
	}


.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
 nav { 
	margin:0;
	padding: 0;
	background-color: #444;
}

/* 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;
	background-color: #444;
	}

	nav ul ul li {
	border-bottom: 1px solid #EEE;
}
nav ul ul ul li {
	border-bottom: 1px solid #EEE;
	background-color: #555;
}
/* Styling the links */
nav a {
	display:block;
	width: 156px;
	padding: 0px 10px 0px;	
	font-size: 14px;
	line-height: 34px;
	text-decoration:none;
}


nav ul li ul li:hover,
nav ul li:hover
{ background: #666; }

/* Background color change on Hover */
	nav a:hover { 
	background-color: #666; 
}

/* 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: 34px; 
	border-top: 1px solid #EEE;
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:176px;
	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:-35px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:176px; 
}
nav ul ul ul li:first-child {
	border-top: none;	
}
nav ul ul ul li:last-child {
	border-bottom: none;	
}
	
/* 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: 1240px) {
	
/* Styling the links */
nav a {
	width: 140px;
	padding: 9px 10px 8px;	
	font-size: 13px;
	line-height: 17px;
	text-decoration: none;
}
nav ul ul li {
	width: 160px;
}
	nav ul ul ul li {
	position: relative;
	top:-35px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left: 160px; 
}	
nav ul ul ul li:first-child {
	border-top: none;	
}	
}

@media all and (max-width : 839px) {
nav {
		margin: 0;
		background: none;
	}
	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	
	.toggle {
		display: block;
		background: none;
		padding: 8px 40px 6px;	
		color:#EEE;
		font-size: 14px;
		line-height: 24px;
		text-decoration:none;
		border:none;
	}
	nav a   {
		display: block;
		background: none;
		padding: 8px 40px;	
		color:#EEE;
		font-size: 14px;
		line-height: 24px;
		text-decoration:none;
		border:none;
		}
		
	.toggle:hover {
		background: none;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav a,
	nav ul li {
		display: block;
		width: 100%;
		}
	
	nav ul ul {
	border-top: 1px solid #EEE;
}	
	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 80px;
	}


	nav a:hover {
		background-color: #555;
	}
	
 	nav ul ul ul a {
		background-color: #444;
		padding: 0 100px;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a {
		padding: 0px 60px;	
		color:#EEE;
		font-size:14px; 
		line-height: 40px;
	}
  nav ul ul ul a {
		padding: 0px 80px;	
		color:#EEE;
		font-size: 14px; 
		line-height: 40px;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #555; 
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #EEE;
		/* 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%;
	}

}