@import url("keeps.css");
/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* CUSTOM DESIGN - Torre de Moncorvo                                                                                              */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i');


@font-face {
    font-family: 'Lucida-Sans';
    font-style: normal;
    font-weight: 300;
    src: url(fonts/LucidaSans.TTF) format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

@font-face {
    font-family: 'Trebuchet-MS';
    font-style: normal;
    font-weight: 300;
    src: url(fonts/trebuc.ttf) format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

@font-face {
    font-family: 'Trebuchet-MS';
    font-style: normal;
    font-weight: 600;
    src: url(fonts/trebucbd.ttf) format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* RESET                                                                                                                   */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

body {
    height: initial !important;
    /*max-width: 1600px;*/
}

.font-bold {
    font-weight: bold;
    display: inline;
}

span.spanBr {
    margin-left: 0px !important;
    margin-right: 0px !important;
    display: block;
}

/* .js-text-lang-en {
    display: none;
} */

#opac-main a,
#opac-main a:visited {
    color: #1899ac;
}

#opac-main .cc-cookies a {
    color: #fff;
}

#opac-main .ui-tabs .ui-state-default a,
#opac-main .ui-tabs .ui-state-default a:link,
#opac-main .ui-tabs .ui-state-default a:visited {
    color: #135355;
}

#wrap {
    min-height: 0;
}


/* tooltip */

.tooltip-keeps {
    background-image: url(/opac-tmpl/bootstrap/images/keeps/header/menu-account.png);
    background-size: 15px 16px;
    width: 15px;
    height: 46px;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Lucida-Sans', sans-serif;
    font-size: 14px;
    color: #5c656c;
    text-transform: none;
}

.tooltip-keeps .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 111%;
    left: 50%;
    margin-left: -64px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.tooltip-keeps .tooltiptext:lang(en) {
    margin-left: -75px;
}


.tooltip-keeps .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.tooltip-keeps .tooltiptext::before {
    content: "";
    position: absolute;
    top: 101%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #dfdfdf transparent transparent transparent;
}

.tooltip-keeps:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext {
    left: 13%;
}

.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext:lang(en) {
    left: 37%;
}

.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext::after,
.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext::before {
    left: 80%;
}


/* END tooltip */


/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* HEADER                                                                                                                  */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* LOGIN BAR                                                                                                               */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

#header {
    height: 264px;
    background-image: url(/opac-tmpl/bootstrap/images/keeps/header/background-header.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-position: bottom;
}

.navbar .nav.pull-right {
    float: right;
    margin-right: 0;
}

.navbar .nav {
    position: relative;
    left: 0;
    display: block;
    float: left;
    margin: 0 10px 0 0;
}

.navbar .nav>li {
    float: left;
}

#header .loginbar .logobar {
    display: inline-block;
    width: 100%;
}

#header .logos {
    display: inline-block;
}

#header .logos img {
    margin-left: 2rem;
    margin-top: 43px;
}

#header .logo1 {
    display: inline-block;
}

#header .logo2 {
    position: absolute;
    right: 72px;
    top: 38px;
}

#header .cartlabel {
    display: none;
}

#header .navbar-inner .nav--separator {
    line-height: 50px;
    font-size: 17px;
    color: #FFFFFF;
    display: none;
}

#header .loginbar .logo1 a:hover,
#header .loginbar .logo1 a:focus {
    text-decoration: none;
}

#header .loginbar .navbar-inner .pull-right {
    margin-right: 30px;
    margin-bottom: -18px;
}

#header .loginbar .pull-right a {
    padding: 0 2px;
    text-transform: uppercase;
    line-height: 46px;
}

#header .loginbar.navbar {
    margin-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    position: absolute;
    bottom: 6px;
    right: 0px;
    z-index: 1;
}

#header .loginbar .navbar-inner {
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-top: -10px;
}

#carticon {
    background-image: url(../../images/keeps/header/menu-cart.png);
    background-size: 26px 24px;
    width: 26px;
    height: 24px;
    background-position: 0px -3px;
}

#cartDetails {
    position: absolute !important;
    top: 53px !important;
    right: 300px !important;
}

#basketcount span {
    background-color: #FFFFFF;
    color: #000000;
    display: inline;
    font-size: 80%;
    font-weight: normal;
    margin: 0 0 0 .5em;
    padding: 0.05em .4em 0.05em .4em;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* #header .loginbar .svg-icon-user {
    padding-top: 1px;
    display: inline-block;
    vertical-align: middle;
}

#header .loginbar .svg-icon-user svg {
    height: 19px;
    width: 19px;
    margin-bottom: -5px;
} */

/* #header .loginbar .logged .svg-icon-user {
    margin: 0 -1px;
} */

#header .loginbar svg {
    -webkit-fill: #ffffff;
    fill: #ffffff;
}

a#cartmenulink {
    background-color: unset;
}

a#cartmenuitem {
    padding: 0 10px !important;
}

a#cartmenuitem:hover {
    background-color: #1899ac;
    background-image: unset;
    color: #fff;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* MENUBAR                                                                                                                 */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

#header .main-menu {
    font-family: 'Lucida-Sans', sans-serif;
    margin-top: 15px;
    font-size: 14px;
    position: absolute;
    bottom: 0px;
    width: 100%;
    background-color: #1799ad;
    min-height: 46px;
}

.main-menu__div--container {
    height: 100%;
    max-width: 1112px;
    margin: auto;
}

.main-menu__ul {
    list-style: none;
    height: 100%;
    margin: 0;
}

.main-menu__li {
    float: left;
    display: flex;
    min-height: 46px;
    box-sizing: border-box;
}

.main-menu__li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: #e1e171 2px solid;
    color: #ffffff !important;
}

.main-menu__li:hover a {
    color: #ffffff !important;
}

.main-menu__li a {
    color: #fff !important;
    padding: 11px 10px 11px 10px;
    text-decoration: none;
    width: 100%;
}

.main-menu__li.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: #e1e171 2px solid;
}

.main-menu__li.active a {
    color: #ffffff !important;
}

.main-menu__li--user-account a {
    height: 46px;
}

.main-menu__li--user-account .tooltip-keeps {
    display: inline-block;
    vertical-align: middle;
}

.main-menu__li--logout a {
    color: #fff !important;
    font-family: 'Lucida-Sans', sans-serif;
    font-size: 14px;
    text-transform: none !important;
    text-shadow: none !important;
    margin-left: 6px;
    /* margin-top: 2px; */
}

.mobile-button {
    display: none;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* SEARCH                                                                                                                  */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

#wrap>.container-fluid,
#opac-main-search .span12 {
    max-width: 1112px;
    margin: 0 auto;
}

#opac-main-search {
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

.opac-main-search__title {
    font-family: 'Trebuchet-MS', sans-serif;
    font-size: 33px;
    line-height: 1em;
    /* margin-left: -3px; */
    margin-bottom: 20px;
    margin-top: 20px;
    color: #212121;
    font-weight: 600;
    width: 66%;
    margin-left: auto;
    margin-right: auto;
}

.opac-main-search__title--small {
    font-family: 'Trebuchet-MS', sans-serif;
    font-size: 22px;
    line-height: 1em;
    margin-bottom: 10px;
    /* margin-left: -1px; */
    margin-left: auto;
    color: #212121;
    font-weight: 600;
    width: 66%;
    margin-left: auto;
    margin-right: auto;
}

.opac-main-search__description {
    font-family: 'Lucida-Sans', sans-serif;
    color: #444444;
    font-size: 14px;
    margin-bottom: 28px;
    /* max-width: 1112px; */
    width: 66%;
    margin-left: auto;
    margin-right: auto;
}

#opac-main-search.mastheadsearch {
    width: 66%;
    margin-left: auto;
    margin-right: auto;
}

#opac-main-search .searchsubmit {
    background-color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 114.285%;
    /* 16px; */
    border: 1px #1899ac solid;
    border-left: none;
}

#opac-main-search .searchsubmit:hover,
#opac-main-search .searchsubmit:focus {
    color: white !important;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

#opac-main-search input#translControl1 {
    border: 1px #1899ac solid;
    border-left: none;
    /* width: 548px; */
    /* width: 64%; */
    background-color: #ffffff;
}

#opac-main-search select {
    font-size: 16px;
    background: #1899ac url(../../images/keeps/icon_angle_down/white_08.svg) no-repeat scroll;
    background-position: right 10px top 50%;
    background-size: 20px 20px;
}

#opac-main-search select:hover,
#opac-main-search select:focus {
    font-size: 16px;
    background: #1899ac url(../../images/keeps/icon_angle_down/white.svg) no-repeat scroll;
    background-position: right 10px top 50%;
    background-size: 20px 20px;
}

#opac-main-search select:hover,
#opac-main-search select:focus {
    color: white;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

/*
#opac-main-search #select_library {
    width: 212px;
}
*/

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* MAIN USER BLOCK                                                                                                         */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

div.main {
    max-width: 1112px !important;
    margin: 0 auto !important;
    float: none !important;
}

.main__blocks-title {
    font-family: 'Trebuchet-MS', sans-serif;
    font-size: 24px;
    color: #444444;
    line-height: 25px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: #e1e171 2px solid;
    width: 100%;
}

/*** news ***/

#news {
    border: none;
    margin-top: 25px;
    color: #444444;
    font-family: 'Lucida-Sans', sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.newsheader {
    border: none;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
    margin-top: 1em;
    line-height: 1em;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0;
    font-family: 'Trebuchet-MS', sans-serif;
}

.newsbody {
    margin-top: 0px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0;
    opacity: 0.8;
    font-size: 14px;
}

.newsfooter {
    border: none;
    margin-bottom: 2em;
    font-size: 9px;
    margin-top: -2em;
    padding: 0px;
    padding-left: 0px;
    font-style: normal;
}

#rssnews-container {
    display: none;
}

.newsitem {
    box-sizing: border-box;
    flex: 1 0 50%;
    max-width: 50%;
}

.newsitem:nth-child(odd) {
    border-right: 20px #fff solid;
}

.newsitem:nth-child(even) {
    border-left: 20px #fff solid;
}


/*** last documents ***/

iframe {
    height: 240px;
}

#opac-lastdocuments {
    overflow: hidden;
}

#opac-lastdocuments>.slick-slider {
    margin-left: -8px;
}

/*network-libraries*/

#main__network-libraries {
    font-family: 'Lucida-Sans', sans-serif;
    font-size: 14px;
    color: #444444;
    margin-top: 22px;
}

.network-libraries__container {
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
}

.network-libraries__ul {
    color: rgba(68, 68, 68, 0.80);
    list-style-image: url(../../images/keeps/main/list-image.png);
    margin-top: 13px;
}

.network-libraries__ul li {
    padding-left: 10px;
}

.network-libraries__img {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/*END network-libraries*/


/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* FOOTER                                                                                                                  */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/*** credits ***/

#changelanguage {
    width: 100%;
    font-family: 'Lucida-Sans', sans-serif;
    bottom: 0;
    background-color: #0d505a !important;
    margin-left: unset;
    display: block;
}

.firstfooter {
    min-height: 152px;
    margin: 0 auto;
    max-width: 1112px;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0px 100px 0px;
    font-size: 12px;
}

.firstfooter span {
    min-height: 20px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}


.firstfooter__span--space-top {
    margin-top: 10px
}

.firstfooter--text-smaller {
    font-size: 12px;
}

.firstfooter__div--container {
    margin-left: 0;
    max-width: 1112px;
    margin-top: 10px;
}

.firstfooter__title {
    font-family: 'Lucida-Sans', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #FFFFFF;
}

.firstfooter__description {
    padding-bottom: 15px;
    margin-bottom: 10px;

}

.firstfooter__link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline;
}


.footer--line {
    background-color: #e1e171;
    height: 5px;
}

.firstfooter__div--candidature-logos {
    text-align: right;
    padding: 0 32px 15px 32px;
}


.firstfooter__div--candidature-logos img{
   max-width: 350px;
}


#changelanguage a {
    color: rgba(255, 255, 255, 0.8);
}

#changelanguage a:hover,
#changelanguage a:focus,
#changelanguage a:visited {
    text-decoration: none;
    color: white;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}


/*** language ***/

#changelanguage .navbar-inner {
    background-color: #0a4048;
    min-height: 40px;
    padding: unset;
}

.keep img {
    background: none;
    height: 28px;
    width: 150px;
    margin-top: 4px;
}

.keep:hover,
.keep:focus {
    opacity: 0.75;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

#i18nMenu {
    margin-left: 28px;
}

.navbar .nav.pull-right {
    float: right;
    margin-right: 0;
}

#changelanguage .navbar-inner .floatRight {
    margin-right: 2.01rem;
}

#footer_pt-PT {
    width: 100%;
}

@media (min-width: 1200px) {
    footer .row-fluid .span4 {
        width: 31.623931623931625%;
        float: left;
    }
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* RESPONSIVE                                                                                                              */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

@media only screen and (max-width: 1212px) {
    .firstfooter {
        margin: auto !important;
    }
}

@media only screen and (max-width: 1130px) {

    #header .header-contacts>span:last-of-type {
        margin-right: 2rem;
    }

    .main-menu__div--container {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    #wrap>.container-fluid {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    div.main {
        margin: 0 2rem !important;
    }

    #lastdocuments .wrapper {
        max-width: 1012px;
        margin-left: 10px;
    }

    .firstfooter {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }

    #opac-main-search input#translControl1 {
        width: 58%;
    }

    #i18nMenu {
        margin-left: 2rem;
    }

}

@media only screen and (max-width: 1033px) {
    .en #header .header-contacts span {
        float: right;
        clear: both;
        margin-right: 2rem;
    }

    .en #header .header-contacts .js-text-lang-pt_PT:first-of-type,
    .en #header .header-contacts>span .js-text-lang-en {
        margin-right: 0px;
    }
}

@media only screen and (max-width: 979px) {

    #header #carticon {
        display: inline-block;
    }

    #opac-main-search {
        padding: 50px 0 0 0;
    }

    #opac-main-search #masthead_search,
    #opac-main-search #select_library {
        width: 100%;
    }

    #opac-main-search input#translControl1 {
        border: 1px solid #ccc;
        border-radius: 4px !important;
        width: 99.7% !important;
        margin-left: 0 !important;
        text-indent: 11px;
    }

    #opac-main-search .searchsubmit {
        border: none;
        border-radius: 4px !important;
        background-color: #1899ab !important;
        color: rgba(255, 255, 255, 0.8) !important;
        font-family: 'Open Sans', sans-serif;
        font-weight: normal;
        text-transform: uppercase;
        font-size: 14px;
        text-shadow: none;
        width: 100%;
        max-width: 100%;
        float: right;
        margin-right: 0;
    }

    #opac-main-search .searchsubmit:hover,
    #opac-main-search .searchsubmit:focus {
        color: #FFFFFF !important;
    }

    #opac-main-search .searchsubmit img {
        display: none;
    }

    #opac-main-search input#translControl1,
    #opac-main-search #masthead_search,
    #opac-main-search .input-append {
        display: inline-block !important;
    }

    #opac-main-search input#translControl1,
    #opac-main-search #masthead_search,
    #opac-main-search #select_library,
    #opac-main-search .searchsubmit {
        margin-top: 10px;
    }

    #opac-main-search .input-append {
        width: 100%;
    }

    #opac-main-search #select_library {
        float: left;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

@media only screen and (max-width: 969px) {

    .newsitem {
        flex: 1 0 100%;
        max-width: unset;
    }

    .newsitem:nth-child(even) {
        border-left-width: 0px;
        border-bottom-width: 20px;
    }

    .newsitem:nth-child(odd) {
        border-right-width: 0px;
        border-bottom-width: 20px;
    }
}

@media only screen and (max-width: 899px) {

    #header .header-contacts span,
    .header-contacts_div {
        float: right;
        clear: both;
        margin-right: 2rem;
    }

    #header .header-contacts .js-text-lang-pt_PT:first-of-type,
    #header .header-contacts>span .js-text-lang-en {
        margin-right: 0px;
    }

}

@media only screen and (max-width: 767px) {

    .firstfooter {
        padding: 1rem 2rem 1rem 2rem;
        margin: 0 !important;
    }

    .newinvestigation__title {
        text-align: center;
    }

    .network-libraries__img {
        display: block !important;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 750px) {

    /* mobile menu */

    .main-menu {
        height: 0px;
        transition: height 1s, opacity 1s;
        -webkit-transition: height 1s, opacity 1s;
        -moz-transition: height 1s, opacity 1s;
        -ms-transition: height 1s, opacity 1s;
        -o-transition: height 1s, opacity 1s;
        margin-top: 35px;
        font-size: 12px;
        position: absolute;
        top: 5px;
        opacity: 0 !important;
    }

    .main-menu__div--container {
        overflow: hidden;
    }

    .js-main-menu--mobile_active {
        opacity: 0.97 !important;
        height: 100%;
        background-color: #1899ab !important;

    }

    .main-menu__ul {
        display: none;
    }

    .js-main-menu__ul--mobile_active {
        display: block;
    }

    .main-menu__li {
        float: unset;
        max-width: 88%;

    }

    /* button */

    .mobile-button {
        width: 33px;
        height: 28px;
        display: inline-flex;
        position: absolute;
        right: 32px;
        top: 21px;
        cursor: pointer;
        background-color: #a5570c;
        justify-content: center;
        border-radius: 4px;
    }

    .mobile-button::before {
        content: "";
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-top: 4px;
        position: absolute;
        transition: transform .3s ease-out;
        -webkit-transition: transform .3s ease-out;
        -moz-transition: transform .3s ease-out;
        -ms-transition: transform .3s ease-out;
        -o-transition: transform .3s ease-out;
    }

    .mobile-button__line {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-top: 12px;
        position: absolute;
    }

    .mobile-button::after {
        content: "";
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-top: 20px;
        position: absolute;
        transition: transform .3s ease-out;
        -webkit-transition: transform .3s ease-out;
        -moz-transition: transform .3s ease-out;
        -ms-transition: transform .3s ease-out;
        -o-transition: transform .3s ease-out;

    }

    .js-mobile-button--active::before {
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        background-color: #dfdc6e;
        margin-top: 13px;
    }

    .js-mobile-button--active::after {
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        background-color: #dfdc6e;
        margin-top: 13px;
    }

    .js-mobile-button--active .mobile-button__line {
        opacity: 0;
    }

    .mobile-button.js-mobile-button.js-mobile-button--active {
        border: unset;
        background-color: unset;
    }

    /* END BUTTON */

    /* END mobile menu */

}

@media only screen and (max-width: 720px) {

    #header .logo2 {
        display: none;
    }
}

@media only screen and (max-width: 540px) {


    #header .header-contacts,
    #header .header-contacts ul {
        font-size: 13px;
    }

}

@media only screen and (max-width: 530px) {

    #header .loginbar a {
        font-size: 100%;
    }

    #changelanguage .navbar-inner .floatRight {
        float: right;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-right: 28px;
        width: unset;
    }

    #i18nMenu {
        margin-left: 2rem !important;
        margin-top: unset !important;
    }
}

@media only screen and (max-width: 494px) {
    .en #header .header-contacts {
        display: none;
    }
}

@media only screen and (max-width: 440px) {
    #changelanguage .navbar-inner .floatRight {
        float: left;
        clear: both;
        margin-left: 2rem;
    }
}

@media only screen and (max-width: 320px) {

    .opac-main-search__title {
        font-size: 128.571% !important;
    }

    #i18nMenu li:nth-last-child(2) {
        display: none;
    }
}

/* hack internet explorer */

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {

    select#masthead_search::-ms-expand,
    select#select_library::-ms-expand {
        display: none;
    }

    a#cartmenulink {
        background-color: transparent;
    }

}

@media all and (-ms-high-contrast: active) and (max-width: 740px),
all and (-ms-high-contrast: none) and (max-width: 740px) {

    .mobile-button.js-mobile-button.js-mobile-button--active,
    .mobile-button {
        background-color: transparent;
    }

    .mobile-button::before,
    .mobile-button::after,
    .mobile-button__line {
        background-color: #A4560B !important;
    }

    .main-menu__li {
        float: none;
    }

    .main-menu__div--change-language {
        height: 20px;
    }

}

/*END hack internet explorer */

/* hack Edge */
@supports (-ms-ime-align:auto) {

    a#cartmenulink {
        background-color: transparent;
    }

    @media all and (max-width: 740px) {
        .main-menu__li {
            float: none;
        }

        .main-menu__div--change-language {
            height: 20px;
        }
    }
}

/*END hack Edge */
