﻿/* ---------- MENU CODING ---------- */


#nav
		{
			width: 750px; /* 1000 */
			font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
			position: relative;
			float:left;
			top:0;
			left: 0%;
			background-color:none;
			margin-left: 10px; /* 30 480 */
			z-index:200;
		}

			#nav > a
			{
				display: none;
				}

			#nav li
			{
				position: relative;
				list-style:none;
				padding:0;
				}
				#nav li a
				{
					color: #FFFFFF;
					display: block;
					text-decoration: none;
					border:none;	
					}
				#nav li:hover  {
					background-color:none;  
					color:#FFFFFF;
					}
				#nav li a:active
				{
					background-color: #106AB4 !important;
					}
				#nav .live
				{
					color: #56AAF0; 
					/*background-color: #4B1F69; #9467B5;*/
					}
			#nav span:after
			{
				width: 0;
				height: 0;
				border: 0.313em solid transparent; /* 5 */
				border-bottom: none;
				border-top-color: #BC9CD4; /* colour of drop down arrows  */
				content: '';
				vertical-align: middle;
				display: inline-block;
				position: relative;
				right: -0.313em; /* 5 */
				}

			/* first level MAIN MENU BAR*/

			#nav > ul
			{
				height: 35px; 
				background-color: none; /* dark blue #003D5C */
				}
				#nav > ul > li
				{
					height: 100%;
					float: left;	
					}
				
					#nav > ul > li > a  /* spec for main menu bar  */
					{
						height: 100%;
						font-size: 1em;
						line-height: 2.5; /* 60 (24) */;
						text-align: left;
						padding: 0px 10px;
						}
						#nav > ul > li:not( :last-child ) > a
						{
							border-right:0px solid #FFFFFF;  /* green */
							}
						#nav > ul > li:hover > a,
						#nav > ul:not( :hover ) > li.active > a
						{
							color:#FFFFFF;
							background-color: #56AAF0; /* yellow */
							}


				/* second level DROP DOWN MENU ITEMS */

				#nav li ul
				{
					background-color: #686868;
					display: none;
					width:170%;
					position: absolute;
					top: 100%;
					}
					#nav li:hover ul
					{
						display: block;
						left: 0;
						right: 0;
						}
						#nav li:not( :first-child ):hover ul
						{
							left: -1px;
							}
						#nav li ul a
						{
							font-size: 0.9em;
							line-height:1; 
							color:#FFFFFF;
							border-top: 1px solid #555;
							margin-left:-40px;
							padding: 5px 5px 5px 10px; /* 15 (20) */
							transition:0.3;
							-webkit-transition: all 0.3s; 
							-moz-transition: all 0.3s; 
							-o-transition: all 0.3s;
							}
							#nav li ul li a:hover,
							#nav li ul:not( :hover ) li.active a
							{
								color:#FFFFFF;
								background-color: #56AAF0;
								}
						
						#nav li ul .live
						{
							color:#FFFFFF;
							background-color: #56AAF0;
							}
		
						
					/* third level */

				#nav li li ul
				{
					background-color: #5F5F5F;
					display: none;
					visibility:hidden; 
					width:70%;
					position: absolute;
					top: 0%;
					margin-left:100%;
					}
					#nav li li:hover ul
					{
						display: block;
						visibility:visible;
						left: 0;
						right: 0;
						}
						#nav li:not( :first-child ):hover ul ul
						{
							left: -1px;
							}
						#nav li ul ul a
						{
							font-size: 12px;
							line-height:15px; 
							border-top: 1px solid #777;
							margin-left:-40px;
							padding: 5px 0px 5px 5px; /* 15 (20) */
							}
							#nav li ul ul li a:hover,
							#nav li ul ul:not( :hover ) li.active a
							{
								background-color: #56AAF0;
								}

@media only screen and ( max-width: 1100px ) 
			{
					#nav > ul > li > a
					{
						padding: 0px 7px 0px 8px;
						}

				}

@media only screen and ( max-width: 1023px ) 
		{			
			#nav
			{
				width: 55%;  /* width of hamburger dropdown  */
				position: static;  /* position of hamburger icon  */
				float:left;	
				margin:13px 0 0 0px; /* space around hamburger */
				}
							
			html
			{
				font-size: 1em;/* 12 */
				line-height:3;
				}

			#nav
			{
				position: relative;
				top: auto;
				left: auto;
				}
				
				#nav > a
				{
					width: 2.5em; /* 50 mobile menu size  */
					height: 2.5em; /* 50 */
					text-align: left;
					text-indent: -9999px;
					background-color: #56AAF0; /*colour of mobile menu icon  */
					position: relative;
					border: 2px solid #f00;
					border:none;

					}
					#nav > a:before,
					#nav > a:after  /*  Menu ICON  */
					{
						position: absolute;
						border: 2px solid #fff; /* bar width in icon menu  */
						top: 35%; /* bars in icon menu  */
						left: 25%;
						right: 25%;
						content: '';
						}
					#nav > a:after
					{
						top: 60%;
						}

				#nav:not( :target ) > a:first-of-type,
				#nav:target > a:last-of-type
				{
					display: block;
					}
				#nav .live
				{
					color:#FFFFFF;
					background-color: #56AAF0;
					}

			/* first level drop down */

			#nav > ul
			{
				width: 80%;
				height: auto;
				display: none;
				position: absolute;
				left: 0;
				right: 0;
				background-color:#686868;
				}
				#nav:target > ul
				{
					display: block;
					}
				#nav > ul > li
				{
					float: none;
					}
					#nav > ul > li > a
					{
						height: auto;
						text-align: left;
						color:#fff;
						padding: 0 0 0 5px; /* 20 (24) */
						margin-left:-30px;
						}
						#nav > ul > li:not( :last-child ) > a
						{
							border-right: none;
							border-bottom: 1px solid #555;
							}


				/* second level */
				
				
				
				
				#nav li ul
				{
					position: static;
					width: 80%;
					text-align:left;
					padding: 0 5px 0 0px; /* 20 */
					margin-left:20px;					
					}
				#nav li ul a
				{
					
					font-size:1em;
					line-height:1.7;
					background-color:#A0A0A0;
					}
					/* third level */

				#nav li li ul
				{
					display: none;
					visibility:hidden; 
					width:100%;
					position: absolute;
					top: 0%;
					margin-left:100%;
					}
					#nav li li:hover ul
					{
						display: block;
						visibility:visible;
						left: 0;
						right: 0;
						}
						#nav li:not( :first-child ):hover ul ul
						{
							left: -1px;
							}
						#nav li ul ul a
						{
							background-color: #555;
							font-size: 12px;
							line-height:15px; 
							border-top: 1px solid #777;
							margin-left:-5px;
							margin-right:-5px;
							padding: 5px 0px 5px 5px; /* 15 (20) */
							}
							#nav li ul ul li a:hover,
							#nav li ul ul:not( :hover ) li.active a
							{
								background-color: #FFD42F;
								}
			
					}


@media only screen and ( max-width: 737px )  /* iPhone 7 Plus is 736 x 414  */
					{

					#nav > ul > li > a  /* spec for main menu bar  */
					{
					font-size: 1em;
					line-height: 1.7; /* 60 (24) */;
					}
}


@media only screen and ( max-width: 480px ) 
				{
				
				#nav > a  {
				
					width: 2.3em; /* 50 */
					height: 2.3em; /* 50 */

					}

	}
