/* 
    Created on : Nov 22, 2016, 7:56:43 PM
    Author     : Miki
*/

/* HEADER */

#header
{
    /*width:100%;*/
    /*height:140px;*/
}
#header p
{
    margin: 0;
}
#header a
{
    text-decoration: none;/* No link underline is displayed. */
    font-weight: normal;
}
#header_top_track
{
    /*width: 100%;    */
    height: 30px;
    background-color: #0e82b8;
    z-index: 2; /* Logo shadow doesn't go in front of this track. */
    color:white;
    display:flex;
    justify-content: space-between;
}
.header_top_group
{
    display:flex;
    height: 100%;
}
.header_top_group_icon
{    
    height: 15px;
    padding: 0 10px 0 0;
    align-self: center;
}
.header_top_group_text
{    
    color:white;
    align-self: center;
    font-family: Calibri;
}
.header_top_group_text:hover
{
    color:#84c3f1;
}

/***** SEARCH *****/
.search *
{
    height:100%;
    align-self: center;
    border:none;
}
#search_text
{
    padding-left: 7px;
    margin-right:2px;
    height:18px;
    border-radius: 20px 0 0 20px;
}
#search_button
{
    padding-right:7px;
    border-radius: 0 20px 20px 0;
    height:18px;
    cursor:pointer;
    background-color: #6fa1cc;
}
#search_button:hover
{
    background-color: #b2c8e2;
}
#search_button:active
{
    border:0;
}
/***** END SEARCH *****/

#header_middle_track
{
    width: 100%;
    height:110px;
    position: relative; /* Needed so #menu can use absolute position*/
    user-select:none;
    cursor: context-menu;
}
#header_logo_div
{
    width:300px;
    height: 120px; 
    position: absolute;
    left: 30px;
    z-index: 1; /* Display in front of other content */
    padding: 10px 0 0 10px;
    border-radius: 0 0 10px 10px;
    background:linear-gradient(to bottom, rgb(178, 200, 226), rgb(255, 255, 255));
    box-shadow: 0 0px 10px 1px gray;
        transition:1s;
}
@media screen and (max-width: 980px)
{
    #header_logo_div
    {
        height: 70px;
        width:225px;
        transition:1s;
    }
}
@media screen and (max-width: 900px)
{
    #header_logo_div
    {
        height: 55px;
        width:150px;
        transition:1s;
    }
}
#header_data_div
{
    position: absolute;
    right: 10px;
    top:23px;
    display:flex;
    height:30px;
    animation: fadein 1s;
}
.language_flag
{
    display: inline-block;
    width:20px;
    height:12px;
    margin-right:3px;
}
@keyframes fadein
{
    from{right:-300px;}
    to{right:10px;}
}
#header_data_div p
{
    /*margin: 0;*/ /* Already set. */
    color:gray;
    font-size:13px;
    font-family: Calibri;
}
.header_data_item
{
    height: 100%;
    display:flex;
    flex-flow:column;
    justify-content: space-around;
    padding-left:4px;
}
.header_data_icon
{
    height:100%;
    padding-left: 15px;
}
.header_data_text_top
{
    font-weight:bold;
}
.header_data_text_bottom
{
    
}
#header_menu
{
    position: absolute;
    bottom: 1px;   
    width: 100%;
    height:40px;
    display:flex;
    justify-content: flex-end
}
#header_menu a
{
    color:inherit;
}
#header_menu_items
{
    position:relative;
    height:100%;
    /*display: inline-block;*/
    flex:0 0 auto;
    padding: 0 15px 0 25px;
}
.header_menu_item
{
    height:100%;
    background-color: white;
    color:#9facb3;
    /*padding:10px 15px;*/
    border-radius: 10px 10px 0 0;
    display: inline-block;
    transition:background-color 1s, color 0.5s;
    text-decoration: none;
    position:relative;
}
.header_menu_item p
{
    padding: 10px;
}
#header_menu_item_selected
{
    background-color: #0e82b8;
    color:white;
}
.header_menu_item.arrow-down
{
    border-top-color: #9facb3;
    transition:0.5s;
}
#header_submenu_item_selected
{
    border: 1px solid black;
}
.menu_drop_down
{
    background-color: white;
    color:black;
    z-index: 50;
    display: none;
    margin:0;
    /*border:1px solid black;*/
    position:absolute;
    top:100%;
    left:0;
    min-width: 140%;
    padding:0;
    list-style-type: none;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    border:1px solid rgba(0,0,0,.15);
}
.menu_drop_down_item
{
    display:block;
}
.menu_drop_down_item a
{
    display:block;
    padding:10px 20px 10px 20px;
}
.menu_drop_down_item:hover
{
    background:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);
    /*cursor: pointer;*/
}
.header_menu_item:hover .menu_drop_down
{
    display:block;    
    cursor: pointer;
}
.header_menu_item:hover
{
    transition: background-color 1s, color 0.5s;
    background-color:#b2c8e2;
    color:black;
    cursor: pointer;
}
.header_menu_item .arrow-down
{
    border-top-color: #9facb3;
}
.header_menu_item:hover .arrow-down
{
    border-top-color: black;
    transition:0.5s;
}

#header_login_register_section
{
    
}
#header_login_register_section a
{
    color:white;
}
#header_login_register_section a:hover
{
    cursor: pointer;
    color:#84c3f1;
}