/* ==========================================================================
   03_GENERALS: SITE
   --------------------------------------------------------------------------
   * README

   * DOCUMENT
   * HEADER
   * BANNER
   * MAIN
   * FOOTER
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * Styles on this stylesheet are the Site default styles.
 * That means they apply to the HTML components you can find in the
 * BaseTemplate.nopage file, and therefore, they apply to all site pages.

 * If you need to deal with an exception to these Site default styles, you
 * should manage it by adding a .body--modifier class via
 * {% block extraBodyClass %}{% endblock %} in the .page file that requires it,
 * and develop the given exception nested to that body modifier class in
 * stylesheet #17 under the corresponding page subtitle.

 * If you need to deal with styles for a new type of Site component or a new
 * sub-element for an existing one, you should develop them in this stylesheet,
 * under a new component subtitle or under the correspondent one accordingly,
 * separating them in Structure, Behaviour or Appearance styles as appropriate.
 */

/* DOCUMENT
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.body {
    margin: 0 auto;
    width: 100%;
}

[class*="__wrapper"] {
    margin: 0 auto;
    width: 100%;
    max-width: 1024px;
    height: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.body {
    overflow-y: auto;
}

/* Appearance
   -------------------------------------------------------------------------- */
html {
    background-color: #00204A;
}

.body {
    background-color: #00204A;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    font-style: normal;
    color: #fff;
}

/* HEADER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.header {
    margin: 0 auto;
    width: 100%;
}

.header__wrapper {
    padding-top: 16px;
    padding-bottom: 16px;
    max-width: inherit;
    margin: 0 35px;
}

.header__logo {
    float: left;
}

.header__logo--default {
    width: 200px;
    height: 48px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.header__logo {
    display: block;
    background-position: center center;
    -webkit-background-size: contain;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
}

/*
 * 1. To make the header fixed.
 */
.pusher {
    padding-top: 80px; /* 1 */
}

.header {
    position: fixed; /* 1 */
    top: 0; /* 1 */
    z-index: 3; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.header {
    background-color: #003478;
    color: #fff;
}

.header__logo {
    background-image: url('../images/logo--default.png'); /* Overrided in #16, with url relative to the specific portal */
}

@media all and (max-width:768px) {
    .header__logo {
        float: none;
        margin: auto;
    }

}

/* MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.main {
    margin: 0 auto;
    width: 100%;
}

.main__wrapper {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Appearance
   -------------------------------------------------------------------------- */
.main {
    background-color: #081122;
    color: #fff;
    background-image: url('../images/background_dark.jpg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    background-attachment: fixed;
    height: 100%;
}

@media all and (max-width:768px) {
    .main__wrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* FOOTER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.footer {
    margin: 0 auto;
    width: 100%;
}

.footer__wrapper {
    padding: 28px 35px;
    max-width: inherit;
}

.footer__rights {
}

.footer__langs {
    float: right;
}

.footer .link {
    margin: 0 8px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.footer {
    text-align: center;
}

/*
 * 1. To make footer sticky.
 */
html,
.body {
    min-height: 100vh; /* 1 */
}

.body {
    display: table; /* 1 */
    border-collapse: separate; /* 1 */
}

.body>*:not(.pusher):not(.footer):not(.select2-container--open):not(.picker):not(:last-child) {
    display: none;
}

.pusher {
    min-height: calc(100vh - 74px);
    height: 100%;
}

.footer {
    display: table-row; /* 1 */
    height: 0; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.footer {
    background: #122446;
    color: #099bca;
    font-size: 14px;
}

/*
 * As the footer in sticky mode has display:table-row and cannot have a border, we need to implement it using :before;.
 */
.footer:before {
    content: '';
    display: block;
    width: 100%;
    height: 0;
}

.footer .link {
    color: #337ab7;
}

.footer .link:hover {
    color: #23527c;
    border-bottom-color: transparent;
}
