/* CSS Document */

.toggle,
[id^=drop] {
	display: none;
}

#nav-container {
	position: sticky;
	width: 100%;
	top: 0;
	background-color: rgba(8,34,51,1.00);
	border-bottom: solid 2px rgba(255,255,255,1.00);
	z-index: +1;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0;
	padding: 0;
	width: 100%;
	max-width: 1000px;
	min-width: 380px;
	margin-left: auto;
	margin-right: auto;
	background-color: rgba(8,34,51,1.00);
	color: rgba(255,255,255,1.00);
	font-family: 'Playfair Display', serif;
	font-size: 16px;
}

/* 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 {
	float: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: rgba(8,34,51,1.00);
	}

/* Styling the links */
nav a {
	display:block;
	padding: 11px 16px;	
	color: rgba(255,255,255,1.00);
	text-decoration:none;
	line-height: 20px;
}


nav ul li ul li:hover { background: rgba(0,255,0,1.00) }

/* Background color change on Hover */
nav a:hover { 
	background-color: rgba(120,41,125,1.00); 
	color: rgba(255,255,255,1.00);	
}

/* 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: 41px; 
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:180px;
	float:none;
	display:list-item;
	position: relative;
	background-color: rgba(150,150,150,1.00);
	line-height: 14px;
}

nav ul ul li a {
	color: rgba(255,255,255,1.00);
}

nav ul ul li:hover {
	background-color: rgba(0,255,255,1.00);
}
	
/* 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:-41px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:170px; 
}

.register a {
	background: rgba(120,41,125,1.00);
	border: solid 1px rgba(255,255,255,1.00);
	margin-top: 6px;
	padding-top: 3px;
	padding-bottom: 3px;
	margin-left: 5px;
	border-radius: 5px;
}

.register a:hover {
	background: rgba(255,255,255,1.00);
	color: rgba(8,34,51,1.00);
}
	
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ' +'; }
li > a:only-child:after { content: ''; }

.mobile-only {
	visibility: hidden;
	height: 0;
}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 960px) {

	nav {
		margin-left: auto;
		margin-right: auto;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle label */
	.toggle {
		display: block;
		background-color: rgba(8,34,51,1.00);
		padding: 14px 20px;	
		color: rgba(255,255,255,1.00);
		text-decoration: none;
		border: none;
	}

	.toggle:hover {
		background-color: rgba(120,41,125,1.00);
	}

	/* Display Dropdown when clicked on Parent Label */
	[id^=drop]:checked + ul {
		display: block;
		width: 100%;
	}

	nav a {
		color: rgba(8,34,51,1.00);
	}

	/* Change menu items width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		background-color: rgba(255,255,255,1.00);
		border-bottom: solid 1px rgba(150,150,150,1.00);
	}

	nav ul li a:hover {
		background-color: rgba(120,41,125,1.00);
		color: rgba(255,255,255,1.00); 
	}
	
	/* Background for 1st level link with 2nd level items */
	nav ul li .toggle {
		background-color: rgba(255,255,255,1.00);
		color: rgba(8,34,51,1.00);
	}
	
	nav ul li .toggle:hover {
		background-color: rgba(120,41,125,1.00);
		color: rgba(255,255,255,1.00);
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
		background-color: rgba(150,150,150,1.00);
	}

	nav ul ul a:hover {
		background-color: rgba(120,41,125,1.00);
	}
	
	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
	/* [disabled]background-color: #000000; */
	}
  
	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 {
	/* [disabled]background-color: #212121; */
	}

	/* 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" */ 

	}

	.mobile-only {
		visibility: visible;
		height: auto;
	}

	.register a {
		border: none;
		margin-top: 0px;
		padding-top: 14px;
		padding-bottom: 14px;
		margin-left: 0px;
		color: rgba(255,255,255,1.00);
		background-color: rgba(120,41,125,1.00);
		border-radius: 0px;
	}
	
	.register a:hover {
		background-color: rgba(8,34,51,1.00);
		color: rgba(255,255,255,1.00);
	}
}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}

}