#container {
    padding: 0;
    margin: 0;
}

header {
    position: relative;
    display: block;
    background: #e6e6e6;
    width: 100%;
    height: 50px;
    z-index: 1;
    padding-bottom: 5px;
}

header h1 {
    padding: 7px;
}

header #tools {
    padding: 12px;
}

#wrapper {
    width: 100%;
    height: 853px;
    left: 0;
    padding: 0;
    background-attachment: fixed;
    background-position: 0 60px;
    background-repeat: no-repeat;
    background-size: cover;
}

#wrapper section {
    padding: 0;
    margin: 0 !important;
    width: 95%;
}

#wrapper.customA {
    background-image: url("/purchbnpweb/javax.faces.resource/img/bg_achats.jpg.xhtml");
}

#wrapper.customV {
    background-image: url("/purchbnpweb/javax.faces.resource/img/bg_voyages.jpg.xhtml");
}

#title {
    float: right;
    margin-top: 15px;
}

#title h1 {
    text-align: right;
    color: rgb(0, 153, 117);
    font-family: 'bnpp_sans_condensedextra_bold', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: normal;
}

.content p {
    color: #111111;
}

#forgotPwd {
    background: url("/purchbnpweb/javax.faces.resource/img/chevron_D.png.xhtml") no-repeat 0 center;
    color: #111111;
    padding-left: 12px;
    font-size: 1.3em;
}

#login {
    float: right;
    clear: both;
    margin: 50px 0 0 0 !important;
}

#login {
    margin-top: 50px;
    width: 400px;
    float: right;
}

#links {
    float: left;
    margin-top: 25%;
}

#links ul {
    position: absolute;
    list-style: none;
    z-index: 10;
}

#links ul li {
    background: #378a9e;
}

#links ul a {
    display: block;
    padding: 15px 20px 10px 50px;
    color: #FFF;
    font-family: 'bnpp_sans_condensedextra_bold', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 32px;
    background: url("/purchbnpweb/javax.faces.resource/img/picto_chevron.png.xhtml") no-repeat 10px center;
    text-transform: uppercase;
}

footer {
    display: block;
}

/* iPad landscape and other tablettes */
@media only screen and (max-width: 1024px) {
    section {
        font-size: 90%;
    }

    #login {
        width: 400px;
    }

    #login h1 {
        font-size: 38px;
    }

    #login article {
        margin-top: 20px;
    }

    #links ul a {
        padding: 8px 10px 5px 30px;
        font-size: 26px;
        background: url("/purchbnpweb/javax.faces.resource/img/picto_chevron.png.xhtml") no-repeat 2px center;
    }
}

@media only screen and (max-width: 950px) {

    header h1 {
        width: auto;
        text-align: left;
    }

    header nav {
        width: auto;
        padding: 0 10px !important;
        margin: -6px 0;
    }

    #login article {
        margin-top: 10px;
    }

    #links {
        margin-top: 85%;
    }

    #links ul {
        right: 70px;
    }
}

/*Low height*/
@media only screen and (max-height: 750px) {

    #login {
        margin: 50px 0 0 0 !important;
        font-size: 14px;
    }

    #login {
        margin-top: 10px;
        width: 400px;
    }
}

header nav {
    padding: 0;
}

ul li.lang {
    font-weight: bold;
    font-size: 18px;
}

ul li.lang img {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
    transform: rotate(90deg);
}

/* Override btn color for login */
section.rub1 input[type="submit"] {
    background: rgb(55, 137, 158);
}

/* Override btn color for forgot pwd */
#forgotPwdDialog .ui-button {
    background: rgb(55, 137, 158) !important;
}