﻿/* General menu styling for new_menu.php */
.nav {
position: relative;
margin: 0;
padding: 0px 0px 0px 30px; /*space LH edge to first menu item*/
line-height: 12px;/*12 gives gap, 14 merged*/

/*background-color: #1a184b;*/
}
/* The main navigation link containers */
.nav>li {
display: block;
float: left; /* Displaying them on the same line */;
margin: 0;
padding: 0; /*space between top menu items*/
}
/* The main navigation links */
.nav>li>a {
	/* Layout */
display: block;
	position: relative;
	padding: 2px 4px;/*adjust spacing between menu items*/
	z-index: 1000; 
/* Text */;
	font-family: "Arial", Open Sans Condensed, Helvetica, sans-serif;
	color: rgba(255, 255, 255, 0);
	font-size: 14px;
	text-decoration: none; /* Background */;
	background-color: #ffffff; /* CAM BLUE For older browsers */;
	background: rgba(255, 255, 255, 0);
/* 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;
}
/* Changing the color on hover */
.nav>li>a:hover, .nav>li:hover>a {
	color: rgba(255, 255, 255, 0);
	background-color: #ffffff; /* grey background on hover */;
	background: rgba(255, 255, 255, 0);
	font-weight: normal;
}
/* The links which contain dropdowns menu are wider, because they have a little arrow */
.nav>.dropdown>a {
	padding: 30px 0px 0px 0px; /*distance drop downs from MENU */
	/* border-width: 1px;   
	border-color: #666;
	border-style: solid;
	border-radius: 5px;border */
}
/* The arrow indicating the dropdown */
.dropdown>a::after {
	content: "";
	position: absolute;
	top: 12px;
	right: 8px;
	width: 5px;
	height: 5px;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	border-bottom: 1px solid #a3c1ad;/*change colour line in menu header...see also hover below*/
	border-right: 1px solid #a3c1ad;/*change colour line in menu header*/
	/*background-image: url('p7exp/images/p7PM_dark_south.gif');*/
}
/* Changing the color of the arrow on hover */	
.dropdown>a:hover::after, .dropdown:hover>a::after {
border-color: #a3c1ad;/*change colour line in menu header on mouseover*/
}
/* The submenus */
.nav ul {
position: absolute;
margin: 0px;
padding: 0px 0px 0px 10px;  /*distance sub menu from menu*/
list-style: none;
display: block;
}
/* General layout settings for the link containers of the submenus */
.nav ul li {
position: absolute;
top: -9999px; /* Hiding them */
height: 0px;
display: block;
margin: 0;
padding: 0px 0px 0px -2px;
z-index:10000;
/* 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: 22px;/* 20 - larger than this produces gap between */
position: relative;
top: auto;
}
/* The submenu links */
.nav ul li a {
/* Layout */
padding: 4px 10px;/*4 20*/
width: 150px;/*120*/
display: block;
position: relative;
/* Text */
font-family: "Arial", Open Sans Condensed, Helvetica, sans-serif;
color: #666;
text-decoration: none;
font-size: 11px;
/* Background & effects */
background: grey;
background: rgba(218, 218, 218, 1);
-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;

-moz-box-shadow: 4px 4px 6px #333;
-webkit-box-shadow: 6px 6px 9px #333;
box-shadow: 6px 6px 9px #333;
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=6, Direction=135, Color='#333333')";/* For IE 8 */;
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=6, Direction=135, Color='#333333');

}
/* Changing the link's color and background on hover */
.nav ul li:hover>a, .nav ul li a:hover {
color: #ffffff;
background: rgba(102, 102, 102, 1);/*dark blue*/
}
/* Making the level 2 (or higher) submenus to appear at the right of their parent */
.nav ul .dropdown:hover ul {
left: 160px;/*160 POSITION SUB MENU FLY OUT*/
top: 0px;
z-index:1000;
}
/* The submenu links have a different arrow which indicates another dropdown submenu */
.nav ul .dropdown a::after {
width: 5px;
height: 5px;
border-bottom: 0;
border-right: 1px solid #666666;
border-top: 1px solid #666666;
top: 8px;
}
/* Changing the color of the arrow on hover */
.nav ul .dropdown:hover>a::after, .nav ul .dropdown>a:hover::after {
border-right: 1px solid #ffffff;
border-top: 1px solid #ffffff;
}