﻿/*********************************
 * Header css
 * Contains logo and nav menu
 *
 *********************************/
 
header a{
	border:none;
	text-decoration:none;
}
header{
	min-height:80px;
	margin:5px 5px 10px 5px;
	background: #fff;
}
#headerlink{
	float:left;
}

/*----------------------------Logo settings--------------------------------*/
#logo{
	display:inline;
	margin:10px 5px 5px 20px; /* margin location is top, right, bottom, left */
	vertical-align:top;
	width:250px; /* need to play around with this size - to get size of logo right*/
}

/*----------------------------Text to the right of logo--------------------------------*/
#sitename{
	font-size:7.2em;
	color: #2A343D; /* #fff */
	line-height:100px;
	margin-left:20px;
}

/*----------------------------Nav menu settings--------------------------------*/
nav{
	font-size:1.4em;
	text-transform:uppercase;
	font-weight:600;
	display:inline-block;
	float:right;
	margin-right:20px;
	margin-top:50px; /* change this setting to move menu up and down - align it with the logo */
}
#nav a{
	/*color:#e5e5e5; */
	color: #2A343D; /* i am not sure what this does, what color is changed */
}

/*----------------------------Mobile Version--------------------------------*/
@media all and (max-width:780px) {
    header{
	    padding-top:25px;
    }
    #headerlink{
	    float:none;
	    display:block;
    }
    nav{
	    margin:0 0 25px 0;
	    float:none;
    }
}


/*----------------------------------------------------------------------------
Navigation Menu
----------------------------------------------------------------------------*/
ul#nav{
	position:relative;
    list-style:none;
    overflow:visible; /* makes sure the container fits the floated list-items below */
}
ul#nav li.current > a{
	color:#fff;
}
ul#nav:hover li.current > a{
	background:none;
	color:#e5e5e5;
}
ul#nav > li a{
	padding:5px 10px;
	transition:background 0.3s, color 0.3s;
	-moz-transition:background 0.3s, color 0.3s;
	-webkit-transition:background 0.3s, color 0.3s;
	-o-transition:background 0.3s, color 0.3s;
}
ul#nav ul li a{
	padding:3px 15px;
}
ul#nav > li{
    float:left; /* floats list items to the left, creating a horizontal menu */
	position:relative;
	line-height:50px;
}
ul#nav li span{
	position:relative; /* must have position set to anything other than static to use z-index */
    z-index:600;
}
ul#nav:hover > li:hover > a{
	color: #FFF;
}
ul#nav > li li{
	border-left:3px solid;
}
ul#nav ul{
	display:none;
	position:absolute;
	top:40px;
	z-index:550;
	text-align:left;
	line-height:1.3em;
	box-shadow:0 0 10px 0 rgba(0,0,0,0.5);
}
ul#nav li li span{
	font-weight:normal;
	text-transform:none;
	line-height:2em;
}
ul#nav li li a:hover span{
	font-weight:bold;
}
ul#nav li:hover li{
	background:#404040;
	list-style:none;
	float:none;
}
ul#nav li li a{
	background:url(../images/css/navitem.png) right center; /* provides extra colour/depth to the sub-menu box in the drop-down menu */
	display:block;
	width:130px;
	transition: background 0.3s, color 0.3s;
	-moz-transition: background 0.3s, color 0.3s;
	-o-transition: background 0.3s, color 0.3s;
	-webkit-transition: background 0.3s, color 0.3s;
}
ul#nav li li a:hover{
	background-position:left center;
	color:#fff;
}
nav > select{
	display:none;
	width:310px;
	background-color:#e5e5e5;
	color:#404040;
	padding:5px 0 0 5px;
	margin-left:auto;
	margin-right:auto;
}
nav > select:hover{
	background-color:#f4f4f4;
}
nav > select > option{
	padding:5px;
}
ul#nav li.current > a,
ul#nav li li a,
ul#nav:hover > li:hover > a
{
	background-color:#0d1e87; /* color for the hover-over for the navigation menu bar */
}

/*----------------------------Mobile Version--------------------------------*/
@media all and (max-width:780px) {
    ul#nav{
	    display:none;
    }
    nav > select{
	    display:block;
    }
}

