


.mobile-nav,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0 auto;
	padding-top:1px;
	background-color: #00B5D3;

 	text-align: center;
}


/* 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 {
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0;
	display:inline-block;
	background-color: #00B5D3;
	
	}

/* Styling the links */
nav a {
	display:block;
	padding:6px 10px;	
	color:#1E2A5C;
	font-size:16px;
	text-decoration:none;
}


nav ul li ul li:hover { background: #1E2A5C; }

/* Background color change on Hover */
nav a:hover { 
	background-color: #1E2A5C; 
}

/* 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: 32px; 
	text-align: left;

}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:180px;
	display:list-item;
	position: relative;
}

/* sAFARI AND cHROME HACK */

@media screen and (-webkit-min-device-pixel-ratio:0)
{
nav ul ul li {
	left:-60px;
}
}


/* 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:-32px;
	/* 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 all and (max-width : 820px) {
/* Styling the links */
nav a {
	display:block;
	padding:6px 9px;	
	color:#1E2A5C;
	font-size:15px;
	text-decoration:none;
}

}

@media all and (max-width : 768px) {
	nav a {
	display:block;
	padding:6px 9px;	
	color:#1E2A5C;
	font-size:14px;
	text-decoration:none;
}
}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

	nav {
		margin: 0;
		
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.mobile-nav + a,
	.menu {
		display: none;
	}

	/* Stylinf the mobile-nav lable */
	.mobile-nav {
		display: block;
		
		padding:6px 10px;	
		color:#ffffff;
		font-size:18px;
		font-weight: bold;
		text-decoration:none;
		border:none;
	}

	.mobile-nav:hover {
		background-color: #1E2A5C;
	}

	/* 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%;
		text-align: left;
		}

	nav ul ul .mobile-nav,
	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: #1E2A5C;
	}
  
	nav ul li ul li .mobile-nav,
	nav ul ul a,
  nav ul ul ul a{
		padding:6px 10px;	
		color:#1E2A5C;
		font-size:14px; 
	}
  
  
	nav ul li ul li .mobile-nav,
	nav ul ul a {
		background-color: #00B5D3; 
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #1E2A5C;
		/* 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%;
		padding-left: 80px;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}

}

/* 330 and under */
@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}

}