/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : May 4, 2021, 1:35:58 PM
    Author     : Nico
*/

.header
{
    text-align: center;
    align-content: center;
    top:0;
    z-index: 10;
    border-bottom:var(--border_width) solid var(--border_color);
    background-image:url(/RAOSkyWatch/resources/img/rao.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;


    width:100%;

    /*height:var(--header_height);*/
}

.header .ui-panelgrid-cell
{
    padding:0px !important;
}

.header > .ui-panelgrid-content
{
    height:100%;
}

.header .top
{
    padding-top: var(--padding_0);
    padding-bottom: var(--padding_0);
    background-color: rgba(0,0,0,0);
    width:100%;
    height:100%;
}

.header .bottom
{

    background-color: rgba(0,0,0,0.5);

    width:100%;
    height:100%;

}

.header .title
{
    font-size:var(--font_size_2);
    text-transform: uppercase;
    font-weight: 400;
    height:100%;
    width:100%;
    align-items: center;
    display: flex;
    color:var(--light_text_color);
    border: none !important;


}

.header .title .ui-outputlabel-label
{
    width:100%;
}

.header .header_menu
{
    background:none !important;
    border:none;
    border-top:var(--border_width) solid var(--border_color);
    border-radius:0px !important;

    padding-top: var(--padding_0);
    padding-bottom: var(--padding_0);
}



.header .header_menu .ui-menuitem-text
{
    color:white !important;
    text-transform: uppercase;
    font-weight: 300;
    font-size:var(--font_size_0);
}

.header .header_menu .ui-widget-content.ui-menu-list.ui-corner-all
{
    background:var(--color5) !important;
    text-align: left;
}

.header .header_menu .ui-menuitem-link
{
}

.header.small .header_menu .ui-menuitem-link
{
    padding-top:0px !important;
    padding-bottom:0px !important;
}

.header .header_menu  .ui-menu-child .ui-menuitem-link
{
    padding:10px !important;
}

.header .header_menu .ui-menuitem-link
{
    border: 1px solid transparent !important;
}


.header .header_menu .ui-menuitem-link.ui-state-hover
{
    background-color:var(--selected_color) !important;
    transition: all 500ms ease-out;
}


body .ui-menuitem-link.header_menu_current
{
    border:var(--border_width) solid var(--selected_color) !important;
    background-color:color-mix(in srgb, var(--selected_color) 50%, transparent) !important;
}

.header .header_menu .header_menu_current > .ui-menuitem-link .ui-menuitem-text,
.header .header_menu .ui-menuitem-link.header_menu_current .ui-menuitem-text
{
    font-weight: 400;
}

.header .header_menu .ui-menuitem-link.ui-state-hover .ui-menuitem-text
{
    color:white !important;
}

.header .header_menu .ui-menuitem-link.ui-state-hover .ui-icon
{
    color:white !important;
    transition: all 500ms ease-out;
}

.header .header_menu .ui-menu-child
{
    border-top: 100px solid rgb(100,100,100) !important;
    border-radius: 0px !important;
}

div.header_menu
{
    text-align: center;
}
.header_menu div.ui-menubar
{
    text-align: center;
}
.header_menu .ui-menu-list
{
    width:100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-evenly;
}
div.header_menu>ul.ui-menu-list>li>a
{
    width: 100%;
}
div.header_menu>ul.ui-menu-list>li
{
    width: 100%;
}
.ui-menuitem-text
{
    float: none!important;
}

.header.large
{
    padding:0px;
}

.header.small
{
    display:none;
    padding:0px;
}

.header.small .ui-menuitem-icon.ui-icon.fa.fa-bars
{
    font-size:25px;
}

.header.small .ui-icon.ui-icon-triangle-1-s
{
    display:none !important;
}

.header a
{
    text-decoration: none !important;
    color: var(--text_color_1) !important;
}


.header .ui-commandlink:hover
{
    color:var(--selected_light_color) !important;
}

/* Compact RAO header: reference-site layout, SkyWatch colours. */

.header
{
    background-color: #05080d;
    border-top: 4px solid var(--selected_light_color);
    border-bottom: none;
}

.header .top
{
    padding: 10px 0 6px;
    background: transparent;
}

.header .top .container
{
    max-width: 1280px;
    min-height: 150px;
    max-height: 150px;
    margin: 0 auto;
}

/*
 * The reference header uses the observatory name beneath the UCalgary
 * logo, rather than a large centred site title.
 */
.header .title
{
    /*display: none;*/
}

/* Make the left and right header columns fill the upper-header height. */
.header.content-desktop .top .left.no-padding
{
    display: flex !important;
    flex-direction: column;
    min-height: 150px;
}



.header .top .left img
{
    height: 2.25rem !important;
}

.header .bottom
{
    /*background-color: #05080d;*/
}

.header .header_menu
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.header .header_menu .ui-menu-list
{
    justify-content: flex-start;
}

.header div.header_menu > ul.ui-menu-list > li
{
    width: auto;
    flex: 0 0 auto;
}

.header div.header_menu > ul.ui-menu-list > li > a
{
    width: auto;
    padding: 10px 18px 11px;
}

.header .header_menu .ui-menuitem-text
{
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.header .header_menu .header_menu_current > .ui-menuitem-link,
.header .header_menu .ui-menuitem-link.header_menu_current
{
    background-color: var(--selected_light_color) !important;
}

/* Desktop navigation: centred, square RAO-style tabs. */
.header.content-desktop .header_menu .ui-menu-list
{
    justify-content: center;
}

.header.content-desktop div.header_menu > ul.ui-menu-list > li,
.header.content-desktop div.header_menu > ul.ui-menu-list > li > a,
.header.content-desktop .header_menu .ui-menuitem-link
{
    border-radius: 0 !important;
}

body .ui-menu.ui-menubar 
{
    padding:0px !important;
}

/* Keep the SkyWatch title centred independently of the side columns. */
.header.content-desktop .top .container
{
    position: relative;
}

.header.content-desktop .title
{
    position: absolute;
    top: 18px;
    left: 50%;
    width: auto !important;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Full-width, square navigation tabs in title case. */
.header.content-desktop .header_menu .ui-menu-list
{
    justify-content: stretch;
}

.header.content-desktop div.header_menu > ul.ui-menu-list > li
{
    flex: 1 1 0;
    width: auto;
}

.header.content-desktop div.header_menu > ul.ui-menu-list > li > a
{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 0 !important;
}

.header.content-desktop .header_menu .ui-menuitem-link
{
    border-radius: 0 !important;
}

.header.content-desktop .header_menu .ui-menuitem-text
{
    text-transform: none;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
}

/* Position the two secondary labels against the navigation baseline. */
.header.content-desktop .top .container
{
    position: relative;
}

.header.content-desktop .header_observatory_label,
.header.content-desktop .header_faculty_label
{
    position: absolute;
    bottom: 8px;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 1.15;
}

.header.content-desktop .header_observatory_label
{
    left: 0;
}

.header.content-desktop .header_faculty_label
{
    right: 0;
    text-align: right;
}

/* Larger UCalgary logo, vertically centred in the desktop header. */
.header.content-desktop .top .container
{
    position: relative;
}

/* Visible UCalgary logo in the desktop header. */
.header.content-desktop .top .ui-commandlink > img[alt="Image Description"]
{
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    height: 3.5rem !important;
    width: auto;
    transform: translateY(-50%);
}

.header.content-desktop .header_faculty_label
{
    width: auto !important;
}

.header.content-desktop .header_faculty_label
{
    right: 0;
    width: auto !important;
    text-align: right;
}







