
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Bree+Serif);


.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
navp { 
        /* position:absolute; */
       /* left:0; */
       /* right:0; */
         width: 90%;
;         width: 1000px;
	margin:0;
	padding: 0;
	background-color: #254441;
        position: relative;
        z-index : 999999;
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 20px;
}

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

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

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
navp ul {
	float: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
navp ul li {
;	margin: 0px;
        margin: auto;
	display:inline-block;
	float: left;
	background-color: #6b6d6e;
	}

/* Styling the links */
navp a {
	display:block;
	padding:9px 12px;	
	color:#FFF;
	font-size:16px;
	text-decoration:none;
}


navp ul li ul li:hover { background: #000000; }

/* Background color change on Hover */
navp a:hover { 
	background-color: #000000; 
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
navp ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 38px; 
}
	
/* Display Dropdowns on Hover */
navp ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
navp ul ul li {
	width:170px;
	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.
*/
navp ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "navp 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) {

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	navp {
		margin: 0;
	}

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

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		background-color: #254441;
		padding:14px 20px;	
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #000000;
	}

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

	/* Change menu item's width to 100% */
	navp ul li {
		display: block;
		width: 100%;
		}

	navp ul ul .toggle,
	navp ul ul a {
		padding: 0 40px;
	}

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

	navp a:hover,
 	navp ul ul ul a {
		background-color: #000000;
	}
  
	navp ul li ul li .toggle,
	navp ul ul a,
  navp ul ul ul a{
		padding:14px 20px;	
		color:#FFF;
		font-size:17px; 
	}
  
  
	navp ul li ul li .toggle,
	navp ul ul a {
		background-color: #212121; 
	}

	/* Hide Dropdowns by Default */
	navp 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 */
	navp ul ul li:hover > ul,
	navp ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	navp ul ul li {
		display: block;
		width: 100%;
	}

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

	}

}

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

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

}
