.toggle,
[id^=drop] {
	display: none;
	text-align: center;
	margin: 0 auto;
	padding-top: 60px;
}

.toggler {
	padding-top: 50px;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0 auto;
	padding: 20px 0;
	background-color: #e5e5e5;
	border-bottom: thin solid #ccc;
	
}


/* 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;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #e5e5e5;
	border-top: none;
	}

/* Styling the links */
nav a {
	display:block;
	padding:14px 20px;	
	color: teal;
	font-size:17px;
	text-decoration:none;
}

nav ul li ul li:hover { 
	color: #333; 
}

/* Background color change on Hover */
nav a:hover { 
	color: #444;
	text-decoration: none;
}

/* 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: 50px;
	z-index: 888;
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* First Tier Dropdown */
nav ul ul li {
	width:170px;
	margin-left: -90px;
	float: none;
	display:list-item;
	position: relative;
	color: teal
	background: #fff;
}

nav ul ul li a {
	border-bottom: thin solid #ccc;
	background: #fff;
}

nav ul ul li a:hover {
	color: #ccc;
}

/* 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;
	}

/* Styling the toggle lable */
	.toggle {
		display: block;
		background-color: #e5e5e5;
		color: teal;
		font-size: 17px;
		text-decoration:none;
		border: none;
		margin: 0 auto;
		width: 100%;
		font-weight: 300'
	}

	.toggle:hover {
		color: #333;
	}

.toggler {
	padding-top: 0;
}

/* 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%;
		margin: 0 auto;
		text-align: center;
		padding: 0;
		border-top: thin solid #fff;
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0;
		text-align: center;
		margin: 0 auto;
	}

	nav ul ul ul a {
		padding: 0;
	}

	nav a:hover,
 	nav ul ul ul a {
		color: #333;
	}
  
	nav ul li ul li .toggle,
	nav ul ul a,
  	nav ul ul ul a{
		padding: 14px 0;	
		color: teal;
		font-size: 17px;
		margin: 0 auto;
		border-bottom: thin solid #ccc;
	}
   
	nav ul li ul li .toggle,
	nav ul ul a {
		color: teal; 
	}

/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #fff;
		/* 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;
	}
		
/* First Tier Dropdown */
	nav ul ul li {
	display: block;
	width: 300px;
	padding: 0 30px;
	margin: 0 auto;
	}

	nav ul ul ul li {
		position: static;
/* has to be the same number as the "width" of "nav ul ul li" */ 

	}
}

