@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap');

:root {
    --color-planet-secondary: #3A3E45;
    --color-planet-primary: #2F7C1B;
    --color-footer: #22262B;
}

a, a:visited, a:focus, a:hover {
    color: #003694;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
}

header .logo,
footer .logo {
    background-image: url("/images/logo_white.svg");
}

.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;
    max-width: 1440px;
    margin: 0 auto;
    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: url(/images/dernier/background.webp) no-repeat center !important;
    background-size: cover !important;
}

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

.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;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

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

.match {
    border-radius: 0;
    background: unset;
    padding: 40px 0px 40px 24px;
    box-sizing: border-box;
    width: fit-content;
    display: flex;
    flex-direction: column;
    row-gap: 50px;
}

.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;
    width: fit-content;
}

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

.match .teams p.main-content {
    color: white;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.5%;
    max-width: 600px;
    /*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;
    background-color: #FAB615 !important;
    color: var(--color-planet-secondary) !important;
}

.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;
}

.main-logo {
    margin-top: 0;
    width: 556px;
    margin-bottom: 1rem;
}

.bookmakers {
    align-items: stretch;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    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;
    background-color: var(--color-planet-primary);
    color: white;
}

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

.bookmaker[data-bookmaker-id="128"] .logo {
    background: #0A1B4E;
}
.bookmaker[data-bookmaker-id="627"] .logo {
    background: var(--color-planet-secondary);
}
.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 {
    background: var(--color-footer) !important;
    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 {
    margin-right: 3em;
    height: 80px;
    width: 300px;
}

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-image: url('/images/dernier/background_mobile.webp') !important;
    }

    .background .foreground {
        position: absolute;
        bottom: 0;
        left:-5%;
        width: 110%;
        content: url(/images/dernier/visual_tablet.webp);
    }

    .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;
        justify-content: space-between;
        margin: 0;
        height: 100%;
    }

    .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 {
        height: 110px;
        width: auto;
        margin-top: 30px;
        margin-right: 0%;
        margin-left: 0%;
        margin-bottom: 0;
    }

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

    .match .teams p.main-content {
        font-size: 18px;
        text-shadow: none;
        padding: 14px 101px;
        text-align: center;
        margin-left: 0;
        margin-bottom: 23%;
    }

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

    .bookmaker .logo {
        padding: 24px 14px;
    }

    .call-to-action {
        padding: 12px 1.8em;
    }


    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;
        text-align: center;
    }

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

}

@media (max-width: 599px) {    
    header .logo {
        width: 80px;
    }

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

    .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 {
        height: 78px;
        width: auto;
        margin-bottom: 0;
        margin-top: 14px;
        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 {
        right: auto;
        position: absolute; 
        bottom:0;
        width: 160%;
        left: -23%;
    }

    .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;
        margin-bottom: 41%;
    }

    .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;
    }

}