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

.appBackground {
    background:linear-gradient(92.96deg, var(--backgroundColorLeft) -4.12%, rgba(255, 255, 255, 0) 101.06%), var(--backgroundColor);
}

.appBackground.fullScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.app {
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    color: var(--textColor);
    font-size: 15px;
    padding: 20px 10px 20px 50px;
    flex-wrap: wrap;
    font-family: 'Hind', sans-serif;
    position: relative;
    box-sizing: border-box;
}

.app .desktop {
    display: initial;
}
.app .mobile {
    display: none;
}
.app .bigMobile {
    display: none;
}

.app .rules {
    position: absolute;
    left: 10px;
    bottom: 2px;
    color: var(--textColor);
}

.app {
    background-repeat: no-repeat;
    background-size: cover;
}
.app.landing{ background-image: var(--background), var(--globalBackground); }
.app.login{ background-image: var(--backgroundLogin), var(--globalBackground); }
.app.validation{ background-image: var(--backgroundValidation), var(--globalBackground); }
.app.profileForm{ background-image: var(--backgroundProfileForm), var(--globalBackground); }
.app.noBudget{ background-image: var(--backgroundNoBudget), var(--globalBackground); }
.app.gameplay{ background-image: var(--backgroundGameplay), var(--globalBackground); }
.app.form{ background-image: var(--backgroundForm), var(--globalBackground); }
.app.endgame{ background-image: var(--backgroundEndGame), var(--globalBackground); }
.app.win{ background-image: var(--backgroundWin), var(--globalBackground); }
.app.lose{ background-image: var(--backgroundLose), var(--globalBackground); }

.app img {
    width: 100%;
    object-fit: contain;
}

.app button {
    background: var(--buttonColor);
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    color: var(--buttonTextColor);
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
}

.app button:disabled {
    background: var(--buttonDisableColor);
}
button:active {
    text-decoration: underline;
    border:10px;
}
button:hover {
    text-decoration: underline;
}

.app input[type="number"],
.app input[type="text"],
.intl-tel-input input {
    background: #fff;
    border-radius: 6px;
    text-align: center;
    padding: 8px 0;
    font-size: 18px;
    outline: none;
    border: transparent solid 2px;
    border-color: var(--inputBorderColor);
}

.app input[type="number"]:focus,
.app input[type="text"]:focus,
.intl-tel-input input:focus {
    border: var(--buttonColor) solid 2px;
}

.app input::placeholder {
    color: var(--buttonDisableColor);
}

.app [type="checkbox"] {
    -webkit-appearance: none;
    background: none;
    border: 2px solid var(--textColor);
    padding: 6px;
    margin: -3px 10px 0 0;
    border-radius: 2px;
    position: relative;
    height: 16px;
}

.app [type="checkbox"]:checked {
    background: var(--buttonColor);
    border: none;
    padding: 8px;
}

.app [type="checkbox"]:checked:after {
    content: '\2714';
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 3px;
    color: var(--buttonTextColor);
}

.app .logo {
    flex: 1;
    align-self: center;
    max-width: 375px;
    display: flex;
    height: 100%;
}

.app .center {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 375px;
    flex-direction: column;
}
.app .center span {
    text-align: center;
}

.app .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    flex-direction: column;
    text-align: center;
}

.app .title {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    line-height: 18px;
}

.app .title .sub {
    font-size: 12px;
}

.app .optin {
    margin-top: 25px;
    display: flex;
    align-items: center;
}

.app .optin label {
    font-size: 15px;
    line-height: 15px;
}

.app .cgu {
    font-size: 8px;
    margin-top: 35px;
    text-align: center;
}

.landing .center {
    height: calc(100% + 40px);
}

.landing button {
    margin: 50px 0;
}

.landing .right {
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
}

.login .title {
    margin-top: 80px;
}

.login .center {
    margin: 0 30px;
}

.validation a {
    text-decoration: underline;
    cursor: pointer;
    margin-top: 30px;
}

.profileForm .name {
    text-align: center;
}

.endgame, .noBudget {
    font-size: 18px;
}

.endgame .title, .noBudget .title, .offScreen .title {
    font-size: 40px;
    line-height: 40px;
}

.gameplay .right {
    font-size: 18px;
}

.app canvas, .app #winlosesprite {
    top: -60px;
    width: 517px;
    height: 229px;
}

.product {
    background: var(--productBackground);
    border-radius: 6px;
    padding: 3px 15px;
    box-shadow: 0 0 5px var(--productBackgroundShadow);
    margin-top: 10px;
}

.win .title {
    font-size: 40px;
    font-weight: bold;
}

.win .product {
    color: var(--buttonColor);
    font-weight: bold;
}

.win .productLogo {
    width: 243px;
}

.form input {
    flex: 1;
}

.form .formBlock {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 70px;
}

.form .formfield {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.form .formfield span {
    width: 100px;
    min-width: 100px;
    margin-right: 5px;
}

.form .formfield input {
    width: calc(100% - 100px);
}

.form .formfield input::placeholder {
    color: transparent;
}

.form .firstName, .form .lastName {
    width: 48%;
}

.form .address, .form .email {
    width: 100%;
}

.form .postalCode {
    width: 40%;
}
.form .Ville {
    width: 53%;
}

.form .CHECKBOX input {
    flex: 0;
}

.form .CHECKBOX label {
    font-size: 10px;
}

.form .RADIOBUTTON {
    width: 100%;
}

.form .RADIOBUTTON span {
    display: block !important;
}

.form .RADIOBUTTON .fieldset {
    width: calc(100% - 100px);
    height: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
}

.form .RADIOBUTTON input {
    display: none;
}

.form .RADIOBUTTON label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 1px solid var(--buttonColor);
    border-radius: 6px;
    cursor: pointer;
    padding: 0 16px;
    font-size: 18px;
}

.form .RADIOBUTTON input:checked + label {
    background: var(--buttonColor);
    color: var(--buttonTextColor);
}

.form .RADIOBUTTON input:checked + label::before {
    content: '\2714';
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 3px;
    color: var(--buttonTextColor);
}


.form .popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.form .cgu-popup {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 90%;
    max-width: 500px;
    background: var(--textColor);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
    padding: 20px 40px;
    box-sizing: border-box;
}

.form .cgu-popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    padding: 6px 10px;
}

.form .cgu-popup .cgu {
    font-size: 16px;
    color: var(--backgroundColor);
}

.form .cgu-popup button {
    text-decoration: none;
}

.form .cgu-popup .accept-button {
    border: 1px solid var(--backgroundColor);
    transition: all 0.2s ease-in-out;
}

.form .cgu-popup .accept-button:hover {
    background: var(--backgroundColor);
    color: var(--textColor);
}

.form .cgu-link {
    text-decoration: underline;
    cursor: pointer;
    margin: 10px 0;
}


.lose .center {
    text-align: center;
    font-size: 18px;
}

.lose .title {
    font-size: 40px;
    font-weight: bold;
}

.lose .product {
    font-weight: bold;
    font-size: 16px;
}

 .right img {
    width: 243px;
    max-height: 150px;
    object-fit: contain;
}
.answerBlock {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: 130px;
    justify-content: space-around;
}
.answer{
    max-width:48%;
    width:48%;
}
.question{
    font-size: 20px;
    text-decoration: underline;
}
.answer button{
    width:100%;
    margin:5px 5px 5px 5px;
    height: 55px;
    overflow: hidden;
    padding: 5px;
}
.lose .stayTuned {
    font-size: 24px;
    margin-top: 20px;
    color: var(--buttonColor);
    font-weight: bold;
}


.compact.form .logo, .compact.form br {
    display: none;
}

.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-2px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(4px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-8px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(8px, 0, 0);
    }
}

@media only screen and (min-width: 710px) {
    .form .cgu {
        margin-top: 15px;
    }
    .form .cgu-link {
        margin-top: 20px;
    }
    .compact.app {
        height: 220px;
    }
    .compact.app input[type="number"],
    .compact.app input[type="text"],
    .compact .intl-tel-input input {
        padding: 2px 0;
    }
    .compact.app .cgu {
        margin-top: 15px;
    }
    .compact.landing button {
        margin: 10px 0;
    }
    .compact.login .title {
        margin-top: 50px;
    }
    .compact.app canvas, .compact.app #winlosesprite {
        top: -40px;
        width: 424px;
        height: 188px;
    }
    .compact.win .productLogo {
        width: 173px;
    }
    .compact.form .formfield {
        margin: 2px 0;
    }
    .compact.form .cgu {
        margin-top: 0;
    }
    .compact.lose .right img {
        max-height: 150px;
        margin: 3px 15px;
    }
    .compact.lose button {
        padding: 9px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 709px) {
    .app {
        flex-direction: column;
        height: 600px;
        padding: 30px 0;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }

    .app .desktop {
        display: none;
    }
    .app .mobile {
        display: initial;
    }

    .app.landing{ background-image: var(--backgroundMobile), var(--globalBackgroundMobile); }
    .app.login{ background-image: var(--backgroundLoginMobile), var(--globalBackgroundMobile); }
    .app.validation{ background-image: var(--backgroundValidationMobile), var(--globalBackgroundMobile); }
    .app.profileForm{ background-image: var(--backgroundProfileFormMobile), var(--globalBackgroundMobile); }
    .app.noBudget{ background-image: var(--backgroundNoBudgetMobile), var(--globalBackgroundMobile); }
    .app.gameplay{ background-image: var(--backgroundGameplayMobile), var(--globalBackgroundMobile); }
    .app.form{ background-image: var(--backgroundFormMobile), var(--globalBackgroundMobile); }
    .app.endgame{ background-image: var(--backgroundEndGameMobile), var(--globalBackgroundMobile); }
    .app.win{ background-image: var(--backgroundWinMobile), var(--globalBackgroundMobile); }
    .app.lose{ background-image: var(--backgroundLoseMobile), var(--globalBackgroundMobile); }

    .app .logo, .app .center, .app .right {
        max-width: 400px;
        min-width: initial;
        width: 95%;
        align-self: center;
        flex: 1;
    }

    .app .right {
        margin-top: 20px;
    }

    .landing .right {
        font-weight: 500;
        font-size: 15px;
        line-height: 24px;
    }

    .login .title {
        margin-top: 20px;
    }

    .login .cgu, .profileForm .cgu {
        text-align: center;
    }

    .app canvas, .app #winlosesprite {
        top: 0;
        width: 258px;
        height: 114px;
    }

    .win .center {
        display: flex;
        flex-direction: row;
    }

    .win .title {
        font-size: 30px;
    }

    .win .productLogo {
        height: 100px;
        margin-left: 30px;
        width: initial;
    }

    .win .productLogo img {
        width: initial;
        height: 100%;
    }

    .form .formBlock {
        margin: 0;
    }

    .form .formfield {
        margin: 3px 0;
        width: 100%;
    }

    .form .formfield input::placeholder {
        color: var(--inputBorderColor);
    }

    .form .formfield span {
        /*width: 100px;*/
        display: none;
    }

    .form .cgu-popup {
        height: 100vh;
        width: 100vw;
        overflow: scroll;
        border-radius: 0;
        padding: 10px 20px;
        justify-content: space-around;
    }

    .form .cgu-popup .cgu {
        font-size: 11px;
        margin: 0;
    }

    .profileForm .center, .noBudget .center {
        text-align: center;
    }

    .compact.app {
        height: 400px;
    }
    .compact .logo img {
        max-height: 100px;
        width: auto;
        max-width: 100%;
        margin: 0 auto 10px;
    }
    .compact.landing button {
        padding: 10px 32px;
        margin: 10px 0;
    }
    .compact.form .logo, .compact.lose .logo, .compact.gameplay .logo {
        display: none;
    }
    .compact.gameplay .title {
        display: none;
    }
    .compact.form .formfield {
        margin: 2px 0;
    }
    .compact.form .cgu {
        margin-top: 0;
    }
    .compact.form input[type="number"], .compact.form input[type="text"] {
        padding: 2px 0;
    }
    .compact.form .right {
        margin-top: 5px;
    }
    .compact.form .right button {
        padding: 5px 32px;
    }
    .compact.login .cgu {
        margin-top: 10px;
    }
    .compact.gameplay.title{
        display:none;
    }
    /*.lose .right {*/
    /*    height: initial;*/
    /*    width: 100px;*/
    /*    margin-top: 0;*/
    /*    margin-right: 10px;*/
    /*}*/
    /*.lose .right img {*/
    /*    width: 100%;*/
    /*}*/
}

@media only screen and (max-width: 709px) and (min-height: 650px) {
    .app canvas, .app #winlosesprite {
        width: 378px;
        height: 167px;
    }
    .app .right {
        margin-top: 0;
        justify-content: flex-start;
    }
    .app .right {
        justify-content: center;
    }
    .app .bigMobile {
        display: initial;
    }
}


.app.fullScreen {
    height: 100%;
    width: 100%;
}
