/*
 * This file is part of the Moment project.
 * 2013 - 2016 / RENATER
 */

header { 
    width: 100%;
    margin:10px 0;
    padding:0;
    background-color: #fff;
    -webkit-box-shadow: 0px 2px 45px -10px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 2px 45px -10px rgba(0,0,0,0.75);
    box-shadow: 0px 2px 35px -10px rgba(0,0,0,0.6)
}

header img {
    background-color: transparent;
    border-width: 0;
    vertical-align:middle;
}
header + h1 {
    font-family: "foobar_proregular";
    color: #304c6f;
    margin:0;
    font-size: 1.5rem!important;
    -webkit-mask-image: none;
    text-align: center;
    display: none;
}

.top-bar, .top-bar ul {
    background-color: transparent;
}
.top-bar {
    display: block;
    padding:0;
    line-height: inherit;

}
.top-bar-left {
    float: left;
    margin:0;
}
.top-bar-right {
    float: right;
    margin-top: 0;
    margin-bottom: 0;
}
header menu.top-bar-right > ul > li {
    padding-right: 1.5rem;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
menu.top-bar-right > ul > li:last-child {
    margin-right: 0;
}
.menu{
    display:table;
    list-style: none;
    position: relative;
    padding: 0;
    margin: 0;
}
.menu .menu-text {
    padding: 0;
    display: table-cell;
    height: 90px;
    vertical-align: middle;
}
li.menu-text > a {
    padding: 0;
    display: table-cell;
    vertical-align: middle;
}

/**
 * Dropdown menus
 */

.dropdown {
    display:table-cell;
    height:90px;
    vertical-align: middle;
    margin-right: -1.5rem;
}


.topnav {
    overflow: hidden;
}
.topnav menu {
    display: table-cell;
}

.topnav li a.img  {
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    padding: 0;
    background-color: #304c6f;
    width: 70px;
    height: 70px;
    cursor: pointer;
}
.topnav li a.text {
    display: none;
}
.topnav menu.top-bar-left li a{
    background-color: transparent;
    width:auto;
    height:auto;
}

.active {
    background-color: #4CAF50;
    color: white;
}

.topnav .icon {
    display: none;
}

.dropdown {
    overflow: hidden;
}

ul.dropdown-content {
    display: none;
    position: absolute;
    background-color: #304c6f;
    border: none;
    margin: 0;
    padding: 0;
    list-style-type: none;
    width: 11rem;
    text-align: left;
    z-index: 1;
}

.dropdown-content li {
    margin: 0;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.dropdown-content li a {
    display: block;
    width: auto;
    height:auto;
    float: none;
    padding: .7rem 1rem;
    text-decoration: none;
    text-align: left;
    color: white;
}

.dropdown-content li a label {
    cursor: pointer;
}

.topnav li a:hover{
    background-color: #263548;
    color: white;
}

.dropdown-content li a:hover {
    background-color: #263548;
}
.dropdown-content li:hover a {
    background-color: #263548;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content::before {
    content: ' ';
    height: 0;
    position: absolute;
    width: 0;
    top: 0;
    right: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    font-size: 0;
    line-height: 0;
    z-index:100;
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child), .dropdown .is-dropdown {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav.responsive .dropdown {float: none;}
    .topnav.responsive .dropdown-content {position: relative;}
    .topnav.responsive .dropdown .is-dropdown {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/* Small screens */

/* Define mobile styles */

/* max-width 450px, mobile-only styles, use when QAing mobile issues */
@media only screen and (max-width: 28em){

}

/* max-width 640px, mobile-only styles, use when QAing mobile issues */
@media only screen and (max-width: 40em) {
    header {
        margin-top: 0;
        -webkit-box-shadow: 0px 2px 15px -5px rgba(0,0,0,0.6);
        -moz-box-shadow: 0px 2px 15px -5px rgba(0,0,0,0.6);
        box-shadow: 0px 2px 15px -5px rgba(0,0,0,0.6);
        height: 50px;
    }
    header + h1 {
        display: none;
    }
    .menu-text a img {
        height: 35px;
        margin-left: -2.5rem;
    }
    .menu .menu-text {
        height:50px;
    }
    .top-bar .top-bar-left, .top-bar .top-bar-right {
        margin-left: 0;
        padding: 0;
    }
    ul.dropdown-content {
        top:50px;
    }
    .top-bar-right li:last-child ul.dropdown-content {
        right:0;
    }
    .top-bar-right li:nth-child(2) ul.dropdown-content {
        right:30px;
    }
    header menu.top-bar-right > ul > li > a.img {
        width: 40px;
        height: 40px;
    }
    header menu.top-bar-right > ul > li > a.img img{
        height: 27px;
    }
    header menu.top-bar-right > ul > li:first-child > a.img img{
        height: 20px;
    }
    header menu.top-bar-right > ul > li:last-child > a.img img{
        height: 30px;
    }
    header menu.top-bar-right > ul > li {
         padding-right: 0;
         height: 50px;
     }
    ul.dropdown-content::before {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid #fff;
    }
    .top-bar-right li:nth-child(2) ul.dropdown-content::before {
        right: 23px;
    }
    .top-bar-right li:last-child ul.dropdown-content::before {
        right: 18px;
    }
}


/* Medium screens */

/* min-width 641px, medium screens */
@media only screen and (min-width: 40.063em) {

}

@media only screen and (max-width: 64em) {
    .top-bar-right {
        margin-right: 0;
    }
    .top-bar .top-bar-left, .top-bar .top-bar-right {
        margin:0;
        padding: 0;
    }
    .top-bar .top-bar-right ul{
        margin:0;
        padding: 0;
    }
}

@media only screen and (min-width:  40.063em) and (max-width: 800px)
{
    header menu.top-bar-right > ul > li {
        padding-right: 0.5rem;
        height: 75px;
    }
    .menu-text a img {
        height: 40px;
        margin-left: -1.5rem;
    }
}
@media only screen and (max-width: 800px)
{
    /*header menu.top-bar-right > ul > li > a.img{*/
        /*display: none;*/
    /*}*/
    /*header menu.top-bar-right > ul > li > a.text{*/
        /*display: table-cell;*/
    /*}*/

}
@media only screen and (min-width: 801px) and (max-width: 64em)
{
    .menu-text a img {
        height: 50px;
    }
    .top-bar .top-bar-right > * label {
        font-size: 0.7rem;
    }
}

/* min-width 641px and max-width 1024px, use when QAing tablet-only issues */
@media only screen and (min-width: 40.063em) and (max-width: 50em) {

}

/* min-width 641px and max-width 1024px, use when QAing tablet-only issues */
@media only screen and (min-width: 40.063em) and (max-width: 64em) {
    header menu.top-bar-right > ul > li > a.img{
        width: 60px;
        height: 60px;
    }
    header menu.top-bar-right > ul > li {
        padding-right: 1rem;
        height: 75px;
    }
    ul.dropdown-content::before {
        content: ' ';
        height: 0;
        position: absolute;
        width: 0;
        right:23px;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid #fff;
        font-size: 0;
        line-height: 0;
    }
    .top-bar-right li:last-child ul.dropdown-content::before {
        right: 30px;
    }
    header, .menu .menu-text{
        height:75px;
    }
    .topnav {
        height:75px;
        vertical-align: middle;
        margin-right: 0;

    }
    ul.dropdown-content {
        top:85px;
    }
    .top-bar-right li:last-child ul.dropdown-content {
        right:0.5rem;
    }
    .top-bar-right li:nth-child(2) ul.dropdown-content {
        right:calc(2rem + 60px);
    }
    .top-bar-right li:last-child ul.dropdown-content {
        right:1rem;
    }
}

/* Large screens */

/* min-width 1025px, large screens */
@media only screen and (min-width: 64.063em) {
    header{
        height:90px;
    }
    ul.dropdown-content {
        top:100px;
    }
    .top-bar-right li:last-child ul.dropdown-content {
        right:1.5rem;
    }
    .top-bar-right li:nth-child(2) ul.dropdown-content {
        right:calc(3rem + 70px);
    }
}

/* min-width 1025px and max-width 1440px, use when QAing large screen-only issues */
@media only screen and (min-width: 64.063em) and (max-width: 90em) {
    .menu-text a img{
        height:55px;
    }
}


/* XLarge screens */

/* min-width 1441px, xlarge screens */
@media only screen and (min-width: 90.063em) {

}

/* min-width 1441px and max-width 1920px, use when QAing xlarge screen-only issues */
@media only screen and (min-width: 90.063em) and (max-width: 120em) {
    .menu-text a img{
        height:55px;
    }

}


/* XXLarge screens*/

/* min-width 1921px, xxlarge screens */
@media only screen and (min-width: 120.063em) {}


