﻿/* ---------- MENU CODING ---------- */


#nav
		{
			width: 100%; /* 1000 */
			font-family:Arial, Helvetica, sans-serif;
			position: relative;
			float:left;
			top:0;
			left: 0%;
			margin:3px 0 0 -10px; 
			background-color:transparent;
			z-index:200;
		}

			#nav > a
			{
				display: none;
				}

			#nav li
			{
				position: relative;
				list-style:none;
				padding:0;
				}
				#nav li a
				{
					color:#333;
					display: block;
					text-decoration: none;
					border:2px solid transparent; /* Set transparent border to avoid jumping between live menu items  */
					}
				#nav li:hover  {
					color: #333; 
					background-color: transparent;
					}
				#nav li a:active
				{
					background-color: #A8A8A8 !important;
					}
				#nav .live
				{
					color: #fff; 
					background-color:#A8A8A8;
					border-left: 2px solid #000;
					border-top: 2px solid #000;
					border-right:2px solid #fff;
					border-bottom:2px solid #fff;
					}
					
			#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: transparent; /* dark blue #003D5C */
				}
				#nav > ul > li
				{
					height: 100%;
					float: left;	
					}
				
					#nav > ul > li > a  /* spec for main menu bar  */
					{
						height: 100%;
						font-size: 0.9em;
						line-height: 2.2; 
						text-align: left;
						padding: 0px 9px;
						}
						#nav > ul > li:not( :last-child ) > a
						{
							border-right:0px solid #FFFFFF; /* vertical line between menu items  */
							}
						#nav > ul > li:hover > a,
						#nav > ul:not( :hover ) > li.active > a
						{
							color:#fff;
							background-color: #262698 /* blue */
							}


				/* second level DROP DOWN MENU ITEMS */
				
				#nav li ul
				{
					background-color:#5C5C5C;
					display: none;
					width:220%;
					margin-left:1px;
					position: absolute;
					top: 100%;
					}
					#nav li:hover ul
					{
						display: block;
						border:none;
						left: 0;
						right: 0;
						}
						#nav li:not( :first-child ):hover ul
						{
							left: -1px;
							}
						#nav li ul a
						{
							font-size: 0.9em;
							line-height:1.1; 
							color:#FFFFFF;
							border-bottom: 0px solid #F0F0F0;
							margin-left:-40px;
							padding: 10px 5px 10px 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:#fff;
								background-color: #262698;
								}
						
						#nav li ul .live
						{
							color: #333333;
							background-color: #A8A8A8;
							border: none;
						}
		
						
					/* third level */

				#nav li li ul
				{
					background-color: #5F5F5F;
					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
						{
							font-size: 0.9em;
							line-height:1.1; 
							border-top: none;
							margin-left:-40px;
							padding: 10px 10px 5px 10px; /* 15 (20) */
							}
							#nav li ul ul li a:hover,
							#nav li ul ul:not( :hover ) li.active a
							{
								background-color: #262698;
								}

@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:10px 0 0 10px; /* space around hamburger */
				}

			#nav
			{
				position: fixed;  /* CHANGED FROM RELATIVE TO STOP MENU JUMPING TO TOP ON CLICK----*/
				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: #262698; /*colour of mobile menu icon  */
					position: relative;
					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: #A8A8A8;
						border:none;
						}

			/* first level drop down */

			#nav > ul
			{
				width: 80%;
				height: auto;
				display: none;
				position: absolute;
				left: 0;
				right: 0;
				background-color:#5C5C5C;
				}
				#nav:target > ul
				{
					display: block;
					}
				#nav > ul > li
				{
					float: none;
					}
					#nav > ul > li > a
					{
						height: auto;
						text-align: left;
						color:#fff;
						padding: 3px 0 3px 5px; /* 20 (24) */
						margin-left:-30px;
						}
						#nav > ul > li:not( :last-child ) > a
						{
							border-right: none;
							border-bottom: 0px solid #fff;
							}


				/* second level */
				
				
				#nav li ul
				{
					position: static;
					width: 80%;
					text-align:left;
					padding: 0; /* 20 */
					margin-left:20px;					
					}
				#nav li ul a
				{
					font-size: 1em;
					line-height: 1.1;
					padding: 7px 5px 7px 10px;
					background-color: #A8A8A8;
				}
					/* third level */


				#nav li li ul
				{
					display: none;
					visibility:hidden; 
					width:160%;
					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: 1em;
							line-height:1.1; 
							border-top: none;
							margin-left:5px;
							margin-right:5px;
							padding: 6px 0px 6px 5px; /* 15 (20) */
							}
							#nav li ul ul li a:hover,
							#nav li ul ul:not( :hover ) li.active a
							{
								background-color: #262698;
								}
			
					}


@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 */

					}

	}
