/* Small screen behaviour - minimal header, dropdown menu, no quicklinks */

#main {
    padding-top: 20px;
    padding-bottom: 1em;
}

#header-container {
	position: relative;
}

#header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
}

#header-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
    height: 0px;
    width: 100%;
    background: transparent url(/image/header-footer/background.jpg) no-repeat 50% 0;
    background-size: cover;
	-ms-behavior: url(/file/ie-compatibility/backgroundsize.min.htc);
}

#header-bar {
    margin-top: 50px;
}

#uwa-logo-container {
    display: none;
}

#uwa-logo {
    display: inline-block;
    padding: 10px;
}

#uwa-logo p {
    margin: 0;
}

#uwa-logo a {
    display: block;
}

#uwa-logo img {
    width: 100%;
    height: auto;
    opacity: 1;
}

#title-bar {
    position: fixed;
    top: 0;
    height: 50px;
    overflow: hidden;
    max-width: 90%;
    z-index: 100;
    pointer-events: none;
}

#title h1 {
    margin: 0;
    padding: 5px 10px;
    color: white;
}

#quick-links-bar {
    display: none;
    pointer-events: auto;
}

#addthis-container {
    display: none;
    pointer-events: auto;
}

.menu li,
.menu .menuitem {
    cursor: pointer;
}

#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #27348b;
	border-bottom: 6px solid #e2b600;
    z-index: 99;
}

#nav .expand {
    display: block;
    font-size: 30px;
    color: white;
    text-align: right;
    padding: 8px 10px;
    height: 100%;
    line-height: 30px;
}

#header .main-nav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 0;
}

#header .main-nav.open {
    display: block;
}

#header .main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding-left: 15px;
}

#header .main-nav > li {
    display: block;
    background: #383838;
    height: 50px;
    line-height: 50px;
}

#header .main-nav > li.parent > ul {
    display: none;
}

#header .main-nav li.selected > a,
#header .main-nav li:hover > a,
#header .main-nav .selected > .menu-item-container > a,
#header .main-nav li:hover > .menu-item-container > a {
    color: #383838;
    background-color: #e2b600;
}

#header .main-nav .external > a:after {
    content: " \f0da";
    font-family: "FontAwesome";
    position: relative;
    font-size: 20px;
    line-height: 16px;
    top: 2px;
}

/* Sidebar menu */

#sidebar-menu-container {
    display: none;
}

#sidebar-menu {
    margin-top: 0;
}

/* Medium screen behaviour - full header, dropdown menu, quicklinks bar */

@media only screen and (min-width: 40.063em) {

	#header-container {
		background-color: white;
		border-bottom: 6px solid #e2b600;
	}

    #header-background {
        height: 104px;
    }

    #uwa-logo-container {
        height: 94px;
        width: 200px;
        display: table;
        float: left;
    }

    #uwa-logo {
		display: table-cell;
        height: 94px;
		text-align: center;
		vertical-align: middle;
    }

    #title-bar {
        position: relative;
        height: 94px;
        margin-left: 200px;
        padding-top: 0;
        max-width: none;
        z-index: 2;
		overflow: visible;
    }

    #title h1 {
        padding: 45px 20px 0 0;
		text-align: right;
		color: #27348b;
    }

    #quick-links-bar {
        display: block;
        background-color: #27348b;
        position: absolute;
        top: 0;
        right: 20px;
        margin: 0;
        padding: 0;
        list-style-type: none;
        z-index: 1;
    }

    #quick-links-bar a {
        color: white;
        font-size: 10px;
        line-height: 1em;
        text-decoration: none;
        margin: 0;
    }

	#quick-links-bar li:hover {
		
	}

    #quick-links-bar ul {
        float: left;
        list-style-type: none;
        margin: 0;
    }
    
    #quick-links-bar ul:focus {
        outline: none;
    }
    
    #quick-links-bar ul.focus {
        background-color: #384bc7;
    }
    
    #quick-links-bar ul.focus li.selected,
    #quick-links-bar ul.hover li.hover {
        background-color: #e2b600;
        outline: none;
    }
    
    #quick-links-bar ul.hover li.selected:not(.hover) {
        background-color: transparent;
    }
    
    #quick-links-bar ul.focus li.selected a,
    #quick-links-bar ul.hover li.hover a {
        color: #383838;
    }
    
    #quick-links-bar ul.hover li.selected:not(.hover) a {
        color: white;
    }
    
    #quick-links {
        float: none;
        position: absolute;
        top: 34px;
        background-color: #27348b;
    }
    
    #quick-links-bar li {
        float: left;
        padding: 0px 6px 3px;
    }
    
    #quick-links li {
        float: none;
    }

    #quick-links li:before {
        font-family: 'FontAwesome';
        content: '\f0da';
        font-size: 8px;
        color: white;
        padding-left: 6px;
        padding-right: 2px;
    }

    #addthis-container {
        position: absolute;
        display: none;
        right: 10px;
        bottom: 10px;
    }

}

/* Large screen behaviour - full menu, full quick links bar */

@media only screen and (min-width: 64.063em) {

	#main {
		padding-top: 120px;
	}

	#header-background {
		height: 150px;
	}
	
	#header-background.menu-helper {
		height: 50px;
		background: #e2b600;
		top: 150px;
	}

    #header-bar {
        margin-top: 0;
    }

    #nav {
        position: absolute;
		top: 6px;
        height: 50px;
		border-bottom: none;
        background-color: transparent;
    }

    #nav .expand {
        display: none;
    }

    #header .main-nav {
		position: relative;
        top: 0;
        display: block;
		width: 100%;
        height: 50px;
		margin: 0;
        padding: 0;
        list-style-type: none;
        text-align: center;
        white-space: nowrap;
		background-color: #27348b;
        background: linear-gradient(rgba(0,0,0,0) 25%, rgba(0,0,0,0.4) 100%);
		background: -webkit-linear-gradient(rgba(0,0,0,0) 25%, rgba(0,0,0,0.4) 100%);
		background: -moz-linear-gradient(rgba(0,0,0,0) 25%, rgba(0,0,0,0.4) 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr=#00000000, endColorstr=#66000000, startY=25%);
    }
    
    #header .main-nav.focus {
        background: initial;
        background-color: #384bc7;
    }

    #header .main-nav li {
        display: inline-table;
        height: 100%;
        background: none;
        overflow: hidden;
    }

    #header .main-nav a {
        display: table-cell;
        height: 100%;
        vertical-align: middle;
        text-align: center;
        padding: 0px 16px;
		font-size: 16px;
    }

    #header .main-nav a:hover,
    #header .main-nav a:active {
        background-color: #e2b600;
        color: #383838;
    }

    #header .main-nav li > ul {
        display: none;
    }

    #header .main-nav li.selected > ul {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 50px 0 0;
        padding: 0;
        height: 50px;
        background-color: #e2b600;
    }

    #header .main-nav li.selected > ul ul {
        display: none;
    }
    
    #header .main-nav.focus,
    #header .main-nav li:focus,
    #header .main-nav a:focus {
        outline: none;
    }
    
    #quick-links {
        float: inherit;
        position: initial;
        background-color: transparent;
    }
    
    #quick-links li {
        float: inherit;
    }

    #sidebar-menu-container.visible {
        display: block;
    }

    #sidebar-menu-container + .sections > .section:first-child {
        border-top: none;
        padding-top: 0;
    }

    #sidebar-menu-container.visible + .sections > .section:first-child {
        border-top: initial;
        padding-top: 20px;
    }

    #sidebar-menu .menu-list {
        margin: 0;
    }

    #sidebar-menu .menu-item {
        list-style-type: none;
        padding: 6px 0;
        line-height: 1.25em;
    }

}