/*
 * This file is part of the eduroam project.
 * 2013 - 2018 / RENATER
 */

header { 
    width: 100%;
    margin:0;
    margin-top: 10px;
    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;
}

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

}
.top-bar-left {
    float: left;
}
.top-bar-right {
    float: right;
    margin-right: 5%;
}
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;
}
.top-bar .top-bar-right > * label {
    color: #fff;
}
.menu{
    display:table;
}
.menu > li > b.current, .menu > li > a {
    padding: 0;
    line-height: 1;
}
.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;
}
/*.menu > li > a img, .menu > li > a i {*/
    /*margin-right: 0.25rem;*/
    /*display: inline-block;*/
    /*vertical-align: middle;*/
/*}*/
.menu.icon-top a, .menu.icon-right a, .menu.icon-bottom a, .menu.icon-left a {
    display: unset;
}
.menu.icon-top > li > a img.lang_img,.menu.icon-top > li > a img.support_img {
    margin-top: 16px;
}
.menu.icon-top > li > a img.user_img {
    margin-top: 9px;
}
.menu.icon-top > li > a img.managers_img {
    margin-top:9px;
    margin-left:12px;
}
.menu.icon-top > li > a img.user_connected_img {
    margin-top:10px;
    margin-left:12px;
}
.menu.icon-top > li > a img.ressources_img {
    margin-top:7px;
}
.menu.icon-top > li > a img.stats_img {
    margin-top:15px;
}
.menu.icon-top li a {
    -ms-flex-flow: unset;
    flex-flow: unset;
}
/**
 * Dropdown menus
 */

.dropdown {
    display:table;
    height:90px;
    vertical-align: middle;
    margin-right: -1.5rem;
}
.dropdown.menu > li > a {
    display: table-cell;
    vertical-align: middle;
    padding: 0;
    background-color: #4382aa !important;
    width: 70px;
    height: 70px;
    cursor: pointer;
}
.dropdown.menu > li >  a:hover, .dropdown.menu > li:hover > a, .dropdown.menu > li:hover > a:hover {
    background-color: #4382aa;
}

.dropdown.menu > li.is-dropdown-submenu-parent > a {
    padding: 0;
}

.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
    display:none;
}

.dropdown.menu > li.opens-left > .is-dropdown-submenu {
    right: 1.5rem;
    background-color:#4382aa;
    border:none;
}
.dropdown.menu > li.opens-left:hover > .is-dropdown-submenu {
    display: block;
    position: absolute;
    width:100%;
    width: intrinsic;           /* Safari/WebKit uses a non-standard name */
    width: -moz-max-content;    /* Firefox/Gecko */
    width: -webkit-max-content; /* Chrome */
    width: -max-content; /* Opera */
    width:max-content;
}
.dropdown.menu > li.opens-left > .is-dropdown-submenu: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;

}
.dropdown .is-dropdown-submenu a {
    padding: 0.7rem 1.5rem;
    display: block !important;

}
.dropdown.menu > li.opens-left > .is-dropdown-submenu > .is-dropdown-submenu-item {
    padding: 0;
    list-style-type: none;
    width: 100%;
    text-align: left;
    transition: all 0.25s ease-out;

}
.dropdown.menu > li.opens-left > .is-dropdown-submenu > .is-dropdown-submenu-item:hover {
    background-color:#055284;
}

.top-bar .top-bar-right > ul > li > a [class*="fi-"]::before,
.top-bar .top-bar-right > ul > li > a [class*="fa-"]::before {
    color: #fff;
}
li.is-dropdown-submenu-item a label{
    cursor:pointer;
    display:inline-block;
    white-space:nowrap;
}
/**
 * Title bar only shown for < medium screens
 */
.title-bar {
    display:block;
    height: 50px;
    background: transparent;
    color: #0973ff;
}

.title-bar .menu-icon {
    height: 35px;
    background-color:transparent;
}

.title-bar .menu-icon::after {
    height: 3px;
    width: 120%;
    margin-top: 8px;
    background: #0973ff;
    box-shadow: 0 8px 0 #0973ff, 0 16px 0 #0973ff;
    border-radius: 5px;
}

.title-bar-title {
    margin-top:12px;
    font-style: italic;
    margin-right: 0.2rem !important;
}

.top-bar .top-bar-right .fa::before,
.top-bar .top-bar-right [class^="fi-"]::before {
    color: #fff!important;
}

/* 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;
    }
    .top-bar-left a img {
        height: 35px;
    }
    .top-bar .top-bar-left, .top-bar .top-bar-right {
        margin-left: 0;
    }
    .top-bar .top-bar-right {
        width: 100%;
        position: absolute;
        z-index: 100;
        animation-name: theFade; /* nom de l'animation */
        animation-duration: 0.25s; /* temps de l'animation (4s) */
        animation-iteration-count: 1; /* nombre de boucles (infinie) */
        animation-timing-function: linear; /* accelération de l'animation (constant) */
        box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 10px -2px;
    }
    ul.menu {
        width: 100%;
    }
    ul.menu a label{
        cursor: pointer;
    }
    .menu li.has-submenu ul.submenu{
        margin-left:0;
    }
    menu.top-bar-right div.is-drilldown ul.drilldown li{
        background-color:#fff;
        line-height: 1.5;
        padding: 0.5rem;
        color:#0973ff;
    }
    .top-bar .top-bar-right > * label {
        color: #0973ff;
        display:inline-block;
    }
    .menu.icon-top > li > a img,
    .menu.icon-top > li > a i,
    .menu.icon-top > li > a span {
        display: inline-block;
        margin: 0 0.25rem;
    }
    .is-drilldown {
        min-height: auto !important;
        width:100%;
    }
    .is-drilldown li.hide-for-small-only {
        display: none!important;
    }
    .is-drilldown li.show-for-small-only {
        display: block!important;
    }

    .drilldown .is-drilldown-submenu-parent > a::after {
        position: relative;
        right: 0;
        display: inline-block;
        border-color: transparent transparent transparent #4382aa;
    }
    .top-bar .top-bar-right .fa::before,
    .top-bar .top-bar-right [class^="fi-"]::before {
        width: 1rem;
        color:#0973ff!important;
    }
}

/* 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;
    }
    .dropdown {
        height:75px;
        vertical-align: middle;
        margin-right: 0;

    }
    .dropdown.menu > li > a {
        width: 60px;
        height: 60px;
    }
    .menu.icon-top > li > a img.lang_img,.menu.icon-top > li > a img.support_img {
        margin-top: 13px;
    }
    .menu.icon-top > li > a img.user_img {
        margin-top: 6px;
    }
    .menu.icon-top > li > a img.managers_img {
        margin-top:6px;
        margin-left:8px;
    }
    .menu.icon-top > li > a img.user_connected_img {
        margin-top:7px;
        margin-left:8px;
    }
    .menu.icon-top > li > a img.ressources_img {
        margin-top:2px;
    }
    .top-bar .top-bar-left, .top-bar .top-bar-right {
        margin-left: 0;
    }
    .tooltip-for-small{
        display:inherit;
    }
    .dropdown.menu > li.opens-left > .is-dropdown-submenu: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;
    }
}

@media only screen and (min-width:  40.063em) and (max-width: 800px)
{
    .menu-text a img {
        height: 55px;
    }
/*    .top-bar .top-bar-right > * label {
        display: none;
    }*/
    menu.top-bar-right > ul > li {
        padding-right: 0.75rem;
    }
}
@media only screen and (min-width: 801px) and (max-width: 64em)
{
    .menu-text a img {
        height: 70px;
    }
    .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 > h1 {
        font-size:1.9rem;
    }
    header, .menu .menu-text{
        height:75px;
    }
}

/* Large screens */

/* min-width 1025px, large screens */
@media only screen and (min-width: 64.063em) {
    header > h1 {
        font-size:2.2rem;
    }
    header{
        height:90px!important;
    }
}

/* 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:85px;
    }
    .top-bar-right {
        margin-right: 5%;
    }
    .top-bar .top-bar-left, .top-bar .top-bar-right {
        margin-left: 5%;
    }
}


/* XLarge screens */

/* min-width 1441px, xlarge screens */
@media only screen and (min-width: 90.063em) {
    .top-bar-right {
        margin-right: 10%;
    }
    .top-bar .top-bar-left, .top-bar .top-bar-right {
        margin-left: 10%;
    }
    .menu-text a img{
        height:90px;
    }
}

/* 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) {
}


/* XXLarge screens*/

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

