/*Adding Menu Styles*/

/*Hide image in weird rendering issue*/

header{
    position: relative;
}


nav label img {visibility:hidden;}

/* CSS Document */
.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0;
	padding: 0;
	font-family: "DM Serif Display", serif;
	letter-spacing:0.03em;
    font-size: 22px;
}
nav a:hover {
   text-decoration:underline; 
	text-decoration-color: #46aae6;
  /* color: #46aae6 !important;
	text-decoration: none;*/
  
}
nav a.active {
  font-weight:bold;
  border-bottom: 3px solid #46aae6;
}

nav a.active:hover {
  text-decoration: none;
}

#logo {
	display: block;
	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. */

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

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	right: 0;
	list-style: none;
	position: absolute;
	
  	/*top: 30px;
      width:710px;*/
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0 0 0 25px;
	display:inline-block;
	float: left;
	}
nav ul li.active a {
	border-bottom:3px solid #46aae6;
}
nav ul li.active ul li a {border:none;}

/* Styling the links */
nav ul li a {
	display:block;
  text-align: left;
  color: #fff;
  text-decoration: none;
  padding:15px 0 10px 0;
  line-height:normal;
}

nav ul li a:hover{
color: #46aae6;
}

nav ul li a.parentMenuItem {
	color:#4A4A4A;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute; 
	background: rgba(28,30,70,0.85);
  box-shadow: 0 12px 10px 0 rgba(0,0,0,0.23), 0 2px 5px 0 rgba(0,0,0,0.29);
  width:290px;
  right:auto;
  padding:5px 0;
  /*margin-top:12px;*/
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	display:list-item;
	position: relative;
  clear:both;
  margin:0px;

}
nav ul li ul li a {
  padding:10px 15px;
}
nav ul li ul li a:hover {color:#fff;}
	
/* Change ' +' in order to change the Dropdown symbol */
 li > a:after { content:  ''; }
 li > a:only-child:after { content: ''; } 

/* if off screen */
.edge ul {
    right:0;
}


/* Media Queries
--------------------------------------------- */

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

	#logo {
		padding: 0;
		text-align: center;
		float: left;
	}

	nav {
		margin: 0;
	}

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

	/* Stylinf the toggle lable */
	.toggle {
		display: block;	
		text-decoration:none;
		border:none;
    text-indent:-9000px;
    float:right;
    cursor:pointer;
    width:30px;
	height:30px;
    margin:10px 29px 0 0;
	}
	
nav .menu li label.toggle {
	background:url("/images/mobile_menu_accordian.png") top center no-repeat;
}
	nav .menu li label.active-menu {
		background-position:bottom center;
	}

	
	.toggleButton{
		width: 30px;
		position: absolute;
		z-index: 1000;
    right:30px;
    top:30px;
    text-indent:0px;
    background:url("/images/mobile_menu.png") top center no-repeat;
    color:#fff;
    margin:0;
	}
	nav label.darkMenuIcon {
		background-position: center;
	}
	nav label.active-menu{
		background-position:bottom center;
	}
	

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
    width:100%;
    top:0;
    background: rgba(32,33,79,0.95);
    padding:90px 0 60px 0;
	}


	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
    margin:0px;
		}
  nav ul li a {
    float:left;
    margin-left:15px;
	  font-size:25px;
  }
	
	nav ul li a.parentMenuItem {
		color:#ffffff;
	}
  nav ul ul {
    margin:0px;
    padding:0px!important;
  }
	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}


  
	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		/*padding:14px 20px;	*/
		color:#FFF;
		
	}
  
  
	nav ul li ul li .toggle,
	nav ul ul a {
    background: rgba(26,27,62,0.95);
    font-size:20px;
    width:100%;
    margin:0px;
	}

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

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

	}

	li > a:after { content:  ''; }
   li > a:only-child:after { content: ''; }
}


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

	nav ul li {
		display:block;
		width: 94%;
	}
	
	
	li > a:after { content:  ''; }
   li > a:only-child:after { content: ''; }

}