/* CSS Document */


#BUcontainer {
	margin: 0 auto;
	max-width: 890px;
}



.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the bunav container. */
bunav { 
	margin:0;
	padding: 0;
	background-color: #dfdede;
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 60px;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

bunav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
bunav ul {
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the bunavigation items inline */
bunav ul li {
	margin: 0px;
	display:inline-block;

	background-color: #dfdede;
	}

/* Styling the links */
bunav a {
	display:block;
	padding:14px 20px;	
	color:#404040;
	font-size:17px;
	text-decoration:none;
}


bunav ul li ul li:hover { background: #0077c0; }

/* Background color change on Hover */
bunav a:hover { 
	background-color: #0077c0; 
			color:white;


}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
bunav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "bunav a" */
	top: 60px; 
}
	
/* Display Dropdowns on Hover */
bunav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
bunav 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.
*/
bunav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "bunav 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;
	}

	bunav {
		margin: 0;
	}

	/* Hide the bunavigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		background-color: #0077c0;
		opacity:.8;
		padding:14px 20px;	
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #0077c0;
		opacity:.6;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	bunav ul li {
		display: block;
		width: 100%;
		}

	bunav ul ul .toggle,
	bunav ul ul a {
		padding: 0 40px;
	}

	bunav ul ul ul a {
		padding: 0 80px;
	}

	bunav a:hover,
 	bunav ul ul ul a {
		background-color: #0077c0;
		opacity:.6;
	}
  
	bunav ul li ul li .toggle,
	bunav ul ul a,
  bunav ul ul ul a{
		padding:14px 20px;	
		color:#FFF;
		font-size:17px; 
	}
  
  
	bunav ul li ul li .toggle,
	bunav ul ul a {
		background-color: #212121; 
	}

	/* Hide Dropdowns by Default */
	bunav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "bunav a" */
	}
		
	/* Hide menus on hover */
	bunav ul ul li:hover > ul,
	bunav ul li:hover > ul {
		display: none;

	}
		
	/* Fisrt Tier Dropdown */
	bunav ul ul li {
		display: block;
		width: 100%;
	}

	bunav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "bunav ul ul li" */ 

	}

}

@media all and (max-width : 330px) {

	bunav ul li {
		display:block;
		width: 94%;
	}

}

