/* SPRY don't work on Mobile
re-design ,basically cut&paste to save time */

@import url(http://fonts.googleapis.com/css?family=Open+Sans);
@import url(http://fonts.googleapis.com/css?family=Bree+Serif);

/* Giving a background-color to the nav container. */
nav { 
	/*margin: 50px 0;*/
	/*background-color: #E64A19;*/
	background-color: #A3AAC6;
	width: auto;
	float: right;
	
	/*float: top;*/
}

/* 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;
	z-index: 100;
	/*z-index ctrl object priority in front of behind
	without this (try 0 too see, ori is 100), nar dropdown menu behind image or others*/
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px; 
    padding: 0px; /*this work*/
	display:inline-block;
	float: left; /*if right, order is reverse*/
	background-color: #A3AAC6;
	/*below copy from SPRY*/
	cursor: pointer;
	/*padding: 0.75em;*/
	color: #FFF;
	text-decoration: none;
	border: 2px solid;
	border-top-color:#C4C9DB;
	border-right-color:#565968;
	border-bottom-color:#565968;
	border-left-color:#C4C9DB;
	}

	
/* Styling the links */
nav a {
	display:block;
	padding:0 20px;  /*0 for top/bot, 20px for left/right*/
	color:#FFF;
	font-size:16px;
	line-height: 40px;
	text-decoration:none;
}

/* Background color change on Hover */
nav a:hover { 
	background-color: #7A85AD ;
	color: #333 ;
	/*display: block;*/
}

/* 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: 40px; 

}
	
/* Display Dropdowns on Hover -->don't work
nav ul li:hover > ul {
	display:inherit;
} */
	
nav ul li:hover > ul {
	display: block;
} 	
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:170px;  /*the width of menu*/
	float:none;
	display:list-item;
	position: relative;
	z-index: 200; 
	/*elevate it to 200, default is 100. If not 1st tier blk by 2nd tier menu*/
}

/* 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:-40px;  /*top position of 2nd tiers
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:170px;  /*ori is 170px*/
}

	
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  '>>'; }
li > a:only-child:after { content: ''; }