
body {
    font-size: 16px;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
}

.layer {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img[data-src=""] {
    display: none !important;
}

img[data-src]:not(.loaded) {
    visibility: hidden !important;
}

img[data-src].error {
    display: none !important;
}

header .center,
footer .center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding: 0 1.5em;
    width: 75%;
    max-width: 100%;
    box-sizing: border-box;
}
header .match {
    position: relative;
}

.background,
.background:after,
.background:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background {
    z-index: -1;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 23px 0 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.background .foreground {
    position: absolute;
    flex: 0 1 auto;
    overflow: hidden;
    right: 0px;
    width: 57%;
    content: url(/images/dernier/visual.png);
}

.foreground-mobile {
    position: absolute;
    flex: 0 1 auto;
    overflow: hidden;
    top: 90px;
    right: 1%;
    width: 45%;
    display: none;
}

.wrapper {
    flex-grow: 1;
    display: flex;
    flex-flow: column nowrap;
    position: relative;
}

main {
    flex-grow: 1;
    position: relative;
}

.logo {
    height: 22px;
    width: 100%;
}

.match {
    border-radius: 0;
    background: unset;
    padding: 40px 0px 40px 24px;
    box-sizing: border-box;
    max-width: 50%;
    margin: 0 0 0 6.5%;
}

.mobile-br {
    display: none;
}

.match .tournament {
    text-transform: uppercase;
}

.match .day, .match .hour {
    font-weight: bold;
    text-transform: uppercase;
}

.match .tournament .name {
    padding-left: .3em;
}

.match .date {
    font-size: 12px;
}

.match .teams {
    font-size: 24px;
    font-weight: 400;
}

.match .teams p {
    text-transform: none;
    font-weight: 500;
    margin: 18px 0 30px;
}

.match .teams p.main-content {
    color: #003694;
    margin-left: -76px;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.12px;
    padding: 40px 145px 40px 200px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, #FFFFFF 50%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
}

header .call-to-action {
    width: unset;
    margin: 0;
    font-size: 16px;
    pointer-events: none;
    border-radius: 50px;
}

.match {
    overflow: visible;
}

.match > h2 {
    margin: 48px 0 16px;
    font-size: 34px;
    text-transform: uppercase;
    text-shadow: 0 4px 4px #00000040;
}

.match .teams .team {
    display: flex;
    align-items: center;
    flex: 1 1 0;
}

.match .teams h1.firstLine {
    font-weight: 100;
    margin: 0;
}

.match .teams h1.secondLine {
    margin: 0;
}

.match .teams h1.thirdLine {
    margin: 0;
}

.match .teams .first {
    justify-content: flex-end;
}

.match .teams .second {
    justify-content: flex-start;
}

.match .team .name {
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match .poll .team .name {
    display: block;
    max-width: 140px;
    font-size: 16px;
}

.match .poll .winner {
    color: #FFCD00;
    text-transform: uppercase;
}

.match .poll h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0.4em;
}

.match .poll h3 {
    opacity: 0;
    transform: translateY(1em);
    will-change: transform, opacity;
}

.match .poll.ready h3 {
    opacity: 1;
    transform: translateY(0);
    transition-property: transform, opacity;
    transition-duration: 1.4s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    height: 80px;
    width: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.match .teams .infoCommunication {
    position: relative;
    font-size: 27px;
    z-index: 2;
    margin-left: 103px;
}

.main-logo {
    margin-bottom: 24px;
    margin-top: 0;
    margin-left: 12%;
    width: 556px;
}

.bookmakers {
    align-items: stretch;
    margin-bottom: 16px;
    margin-left: 12%;
    display: flex;
    gap: 20px;
}

.bookmaker > a {
    display: flex;
    flex-flow: column;
    align-items: stretch;
    height: 100%;
}

.bookmaker .call-to-action {
    margin: 0;
    font-weight: 800;
    text-align: center;
    font-size: 36px;
}

.bookmaker .call-to-action,
.bookmaker .logo {
    border-radius: 4px;
}

.bookmaker[data-bookmaker-id="128"] .logo {
    background: #0A1B4E;
}

.bookmaker[data-bookmaker-id="413"] .logo {
    background: #003694;
}

.bookmaker .logo {
    border-width: 1px;
    margin-bottom: 12px;
    width: auto;
    height: auto;
    padding: 24px 45px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.match .logo img {
    width: 170px;
    max-width: 100%;
}

.call-to-action {
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
    margin: 1.68em 0;
    cursor: pointer;
    padding: 0.6em 1.8em;
}

.bookmaker .logo {
    cursor: pointer;
}

.match .variations-warning {
    margin-bottom: 0.6em;
}

h2.title {
    background: #0A1B4E;
    font-size: 18px;
    text-transform: none;
    border-radius: 0;
    line-height: 1;
    padding: 1.18em 1.2em;
}

h2.title span {
    padding-left: 0;
}

footer {
    font-weight: 400;
    bottom: 0;
    box-sizing: border-box;
    padding: 0;
}

footer .center {
    height: 150px;
}

footer .warning {
    max-width: 300px;
    text-align: right;
}

footer .privacy {
    font-weight: 700;
    text-decoration: underline;
}

footer .privacy:hover, footer .privacy:focus, footer .privacy:visited {
    color: #fff;
}

footer .right img {
    height: 50px;
}

footer .logo {
    width: 300px;
    margin-right: 1em;
    height: 150px;
}

footer .right .warning {
    order: 0;
}

footer .right > :not(.warning) {
    order: 1;
}

.bookmakers .odd {
    background: #fff;
    border: 1px solid #e2e2e2;
    color: #0A1B4E;
    border-radius: 4px;
    padding: 0.82em 1.2em;
    font-size: 24px;
    font-weight: 700;
}

.bookmakers .odd.best {
    background: #28D270;
    color: #fff;
}

@media (max-width: 1024px) {

    .background {
        padding: 18px 24px;
        align-items: flex-start;
    }

    .background .foreground {
        width: 491px;
        top: 178px;
        left: 0;
        margin: auto;
        content: url(/images/dernier/visual_tablet.png);
    }

    .background:after {
        height: 76px;
    }

/*     .background .foreground {
        top: 297px;
        right: 0%;
        width: 860.48px;
    } */

    header .center,
    footer .center {
        width: auto;
    }

    header .logo, footer .logo {
        height: 66px;
    }

    .match {
        max-width: none;
        padding: 0;
        text-align: center;
        margin: 0;
    }

    .match > h2 {
        margin: 0 0 1em 0;
        font-size: 32px;
    }

    .match .teams .infoCommunication {
        position: relative;
        font-size: 30px;
        z-index: 2;
        margin-left: 0;
        text-align: center;
    }

    .main-logo {
        width: 498px;
        margin-top: -15px;
        margin-right: 0%;
        margin-left: 0%;
    }

    .match .teams {
        text-align: center;
    }

    .match .teams p.main-content {
        font-size: 18px;
        text-shadow: none;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, #FFFFFF 50%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
    }

    .match .teams p.main-content {
        padding: 28px 101px;
        margin-top: 196px;
        text-align: center;
        margin-left: 0;
    }

    .bookmakers {
        justify-content: center;
        margin-left: 0px;
    }

    footer .center {
        height: auto;
        display: block;
        text-align: center;
        padding-bottom: 1em;
    }

    footer .logo {
        margin: 0 auto;
    }

    footer .left, footer .right {
        display: block;
    }

    footer .warning {
        text-align: center;
        max-width: none;
        margin-top: 1em;
    }

    footer .privacy {
        display: block;
        margin-top: 1em;
        margin-bottom: 2em;
    }

    footer .disclaimer {
        margin-bottom: 1em;
    }

}

@media (max-width: 599px) {

    .match {
        padding: 18px 24px 30px;
    }

    .match .teams {
        text-align: center;
    }

    header .center {
        margin-bottom: 0;
        padding-left: .4em;
    }

    .match .teams {
        padding: 0;
    }

    .match .teams .infoCommunication {
        font-size: 15px;
    }

    .main-logo {
        width: 332px;
        margin-bottom: 0;
        margin-top: 24px;
        margin-right: 0;
        margin-left: -3%;
    }

    .match > h2 {
        font-size: 24px;
    }

    .match .teams h1.firstLine {
        font-size: 21px;
    }
    
    .match .teams h1.secondLine {
        font-size: 32px;
    }
    
    .match .teams h1.thirdLine {
        font-size: 32px;
    }

    .background .foreground {
        display: none;
        top: 180px;
        right: auto;
        width: 366px;
        left: 54%;
        transform: translate(-50%);
    }

    .foreground-mobile {
        display: block;
        top: 165px;
        right: 0;
        width: 345px;
        left: 0;
        z-index: -1;
        margin: auto;
    }

    .match .teams p.main-content {
        font-size: 14px;
        padding: 22px 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.25) 100%);
    }

    .bookmakers {
        flex-flow: column nowrap;
        padding: 0;
        max-width: 400px;
        gap: 5px;
        margin-bottom: 0;
        margin: 0 auto;
        align-items: center;
    }

    .bookmaker > a {
        flex-flow: row nowrap;
        gap: 5px;
        aspect-ratio: 5;
        flex: 0 0 auto;
        overflow: hidden;
    }

    .bookmaker .logo {
        margin: 0;
        padding: 4px 0px;
        flex: 1 0 auto;
        justify-content: center;
        width: 168px;
    }

    .bookmaker[data-bookmaker-id="413"] .logo {
        padding: 20px 0px;
    }

    .bookmaker .logo img {
        width: 80%;
    }

    .bookmaker .call-to-action {
        font-size: 23px;
        display: flex;
        align-items: center;
        padding: 0.6em 1.2em;
    }

}