/* General menu styling */
.nav {
	margin: 0;
	padding: 0;
	line-height: 22px;
	z-index: 999;
	
}
	
	/* The main navigation link containers */
	.nav>li {
		display: block;
		float: left; /* Displaying them on the same line */
		margin: 0;
		padding: 0;
	}

		/* The main navigation links */
		.nav>li>a {
			/* Layout */
			display: block;
			position: relative;
			padding: 10px 20px;

			/* Text */
			font-family: "Open Sans Condensed", Arial, Helvetica, sans-serif;
			color: #fff;
			font-size: 17px;
			text-decoration: none;
			letter-spacing: 0.07em;
			/* Background */
			background: #000066; /* For older browsers */
			background: rgba(0, 0, 102, .8); /* Transparent background for modern browsers */
			
			/* Making the color to change on hover with a transition */
			-webkit-transition: color .3s ease-in;
			-moz-transition: color .3s ease-in;
			-o-transition: color .3s ease-in;
			-ms-transition: color .3s ease-in;
		}
		
		
		
		nav.primary select {
			display: none;
			width:  100%;
			height: 28px;
			border: none;
			margin: 10px 0;
			color:#00066
		}

		

		/* Changing the color on hover */
		.nav>li>a:hover, .nav>li:hover>a {
			color: #000066;
			background: #fff;
			background-repeat: repeat;
			cursor: pointer;
			
		}

		/* The links which contain dropdowns menu are wider, because they have a little arrow */
		.nav>.dropdown>a {
			padding: 10px 30px 10px 20px;
		}

		/* The arrow indicating the dropdown */
		.dropdown>a::after {
			 content: "";
			 position: absolute;
			 top: 17px;
			 right: 10px;
			 width: 7px;
			 height: 7px;
			 -webkit-transform: rotate(45deg);
			 -ms-transform: rotate(45deg);
			 -moz-transform: rotate(45deg);
			 -o-transform: rotate(45deg);
			 border-bottom: 1px solid #fff;
			 border-right: 1px solid #fff;
			}

		/* Changing the color of the arrow on hover */	
		.dropdown>a:hover::after, .dropdown:hover>a::after {
			  border-color: #000066;
			  
		}

		/* The submenus */
		.nav ul {
			position: absolute;
			margin: 0;
			padding: 0;
			list-style: none;
			display: block;
			z-index: 999;
			white-space: nowrap;
			color: #000066;
			
		}

		
		
		
		
		
		nav.primary ul li span {
			display: none;
		}


		/* General layout settings for the link containers of the submenus */
		.nav ul li {
			position: absolute;
			top: -9999px; /* Hiding them */
			height: 40px; 
			display: block;

			margin: 0;
			padding: 0;


			/* Making them to expand their height with a transition, for a slide effect */
			-webkit-transition: height .2s ease-in;
			-moz-transition: height .2s ease-in;
			-o-transition: height .2s ease-in;
			-ms-transition: height .2s ease-in;
		}

		/* Displays the submenu links, by expading their containers (with a transition, previously defined) and by repositioning them */
		.dropdown:hover>ul>li {
			height: 45px;
			position: relative;
			top: auto;
		}

			/* The submenu links */
			.nav ul li a {
				/* Layout */
				padding: 5px 20px;
				width: 100%;
				display: block;
				position: relative;
				line-height: 35px;
				

				/* Text */
				font-family: "Open Sans Condensed", Arial, Helvetica, sans-serif;
				color: #fff;
				text-decoration: none;
				font-size: 16px;
				letter-spacing: 0.07em;
				
				/* Background & effects */
				background: #000066;
				-webkit-transition: color .3s ease-in, background .3s ease-in;
				-moz-transition: color .3s ease-in, background .3s ease-in;
				-o-transition: color .3s ease-in, background .3s ease-in;
				-ms-transition: color .3s ease-in, background .3s ease-in;
			}

			/* Changing the link's color and background on hover */
			.nav ul li:hover>a, .nav ul li a:hover {
				color: #000066;
				background: #FFF;
			}

			/* Making the level 2 (or higher) submenus to appear at the right of their parent */
			.nav ul .dropdown:hover ul {
				left: 100%;
				top: 0px;			

			}

			/* The submenu links have a different arrow which indicates another dropdown submenu */
			.nav ul .dropdown a::after{
				width: 6px;
				height: 6px;
				border-bottom: 0;
				border-right: 1px solid #fff;
				border-top: 1px solid #fff;
				top: 19px;
			}

			/* Changing the color of the arrow on hover */
			.nav ul .dropdown:hover>a::after, .nav ul .dropdown>a:hover::after {
				border-right: 1.5px solid #000066;
				border-top: 1.5px solid #000066;
			}
			/* Pull anchor*/
			nav a#pull {
	            display: none;
			}
			/*page highlight*/
			body#home a#homenav,
			body#about a#aboutnav,
			body#events a#eventnav,
			body#doitforthebabies a#doitqnav,
			body#marchofdimes a#marchnav,
			body#contact a#connav {
			color: #93F;
			background:url(../images/dots_bg.png);
			background-repeat: repeat;
			}
			
		/* #Media Queries
		================================================== */
		
			/* Smaller than standard 960 (devices and browsers) */
			@media only screen and (max-width: 959px) {}
		
			/* Tablet Portrait size to standard 960 (devices and browsers) */
			@media only screen and (min-width: 768px) and (max-width: 959px) {}
		
			/* All Mobile Sizes (devices and browser) */
			@media only screen and (max-width: 767px) {
					nav.primary select {
						display: block;
					}
						
					nav.primary ul {
						display: none;
					}
					
					
						
				}
		
			/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
			@media only screen and (min-width: 480px) and (max-width: 767px) {}
		
			/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
			@media only screen and (max-width: 479px) {}		
					
		
			