@import url("https://use.typekit.net/uot8bcb.css");

:root {
    --imm-color-1: #b38ed8;
    --imm-color-2: #ffffff;
    --imm-color-3: #E5E5E5;
    --imm-color-5: #797979;
    --imm-color-6: #000000;
    --imm-color-7: #b38ed8;
    --imm-color-8: #ffffff;
    --imm-border-radius: 15px;
    --landing-color-1: rgb(252, 239, 223);
    --landing-color-2: rgb(101, 131, 130)
}

@font-face {
    font-family: 'muli';
    src: url('../fonts/Muli.ttf');
}

html,
body {
    padding: 0;
    margin: 0;
}


body {
    position: relative;
    color: var(--imm-color-1);
    font-family: Poppins;
    font-size: 20px;
}

body.landing-page {
    max-height: 100vh;
}


html.campage,
html.campagne body {
    overflow: hidden;

    max-height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;

    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html.campagne #wpadminbar {
    display: none !important;
}


body::after {
    background-color: none;
    background: linear-gradient(135deg, #ffffff80 0%, #ffffff 100%);
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -10;
}

body::before {
    background-color: var(--imm-color-1);
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    position: absolute;
    z-index: -10;
}


.error-opener {
    font-weight: 600;
    display: flex;
    height: 100%;
}

.error-opener_inner {
    margin: auto;
    font-style: normal;
    padding: 50px;
    text-align: center;
}

main {
    display: flex;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
}

body.campagne main {
    max-width: 100vw;
    overflow: hidden;

}

button,
.button,
.question-screen .response-buttons .spacer {
    background-color: var(--imm-color-7);
    border: none;
    color: var(--imm-color-8);
    padding: 15px;
    width: 100%;
    border-radius: var(--imm-border-radius);
    font-size: .9em;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 400 !important;
    font-family: 'Poppins' !important;

    line-height: 1em;
}

.question-screen .response-buttons .spacer {
    background: none;
    cursor: default;
}

.button {
    width: auto;
}

button:hover,
.button:hover {
    opacity: .8;
}

/*
    SCREENS
*/

.screen {
    margin: auto;
    min-height: 400px;
    /*min-width: 400px;*/
    display: flex;
    height: 100%;
    flex-direction: column;
}

.screen>.wrapper {
    flex: 1;
    margin: 40px 25px;
    display: flex;
    flex-direction: column;
}

.screen-button_next {
    margin-top: auto;
}

.screen-logo {
    margin: 0 auto;
}

.screen-logo img {
    max-height: 120px !important;
    max-width: 40vw !important;
    width: auto !important;
    height: auto !important;
}

.screen-info_text {
    margin: 40px 0;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 25px
}

.screen:not(.show) {
    display: none;
}

.screen.opening-screen {
    color: var(--imm-color-6)
}


/* 
    Question screen
*/

.question-screen .screen-logo {
    z-index: -1;
}

.question-screen .question {
    position: absolute;
    opacity: 0;
}

.question-screen.show .question {
    animation: visible 2s;
    opacity: 1;
    left: 0;
    right: 0;
}

.how-to-screen .question>b {
    margin-top: 30px;
    padding: 0 20px;
    text-align: center;
}

.how-to-screen .question .svg-holder {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    height: 100px;
    flex: 1;
}

.how-to-screen .question svg #Rectangle_6 {
    animation: jumping 4s 1s infinite;
    position: absolute;
    transform: translate(0px, 0px);
    transform-origin: bottom;
}

@keyframes visible {
    0% {
        opacity: 0;
        top: -100px;
    }

    50% {
        top: 0;
    }

    100% {
        opacity: 1;
    }
}


@keyframes jumping {

    25% {
        transform: rotate(-7.5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(7.5deg);
    }
}

.response-buttons {
    display: flex;
    justify-content: space-between;
    column-gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
    margin-left: 40px;
    margin-right: 40px;
}

.response-buttons button {
    background-color: var(--imm-color-8);
    color: var(--imm-color-7);
    font-size: 1.5em;
}

.response-buttons button:hover {
    background-color: var(--imm-color-7);
    color: var(--imm-color-8);
    opacity: 1;
}

.question {
    background-color: var(--imm-color-1);
    color: var(--imm-color-2);
    border-radius: var(--imm-border-radius);
    margin-top: 100px;
    flex: 1;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-left: 40px;
    margin-right: 40px;
}

.question .question_text {
    margin: auto;
    text-align: center;
    font-size: 1.2em
}

.question .question_index {
    font-size: .7em;
    font-weight: 300;
    margin-left: -10px;
    margin-bottom: -10px;
}

.question-screen[data-index="0"] .response-buttons button[data-type=undo] i {
    display: none;
}

.question-screen[data-index="0"] .response-buttons button[data-type=undo] {
    background: none !important;
    cursor: default;
}

.question-screen .question {
    position: relative;
}


.screen.score-screen {
    color: var(--imm-color-2)
}



/*
    SCORES
*/

.screen.score-screen::before,
.screen.end-screen::before {
    background-color: var(--imm-color-1);
}

.screen.score-screen::before,
.screen.contact-screen::before,
.screen.end-screen::before {
    content: '';
    width: 100vw;
    /*height: 100vh;*/
    max-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -5;
}


.screen.score-screen button,
.screen.score-screen .button {
    background-color: var(--imm-color-8);
    color: var(--imm-color-7);
}

.screen-score-bar_holder {
    width: 100%;
    position: relative;

}

.screen-score-bar_holder::before {
    position: absolute;
    background-color: var(--imm-color-2);
    content: "";
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: .4;
}

.screen-score-bar_holder,
.screen-score-bar_holder::before,
.screen-score-bar {
    border-radius: 20px;
}

.screen-score-bar {
    color: var(--imm-color-1);
    background-color: var(--imm-color-2);
    text-align: right;
    font-size: .8em;
}

.screen-score-bar span {
    padding: 0px 10px
}

.score-high .screen-score-bar {
    width: 100%;
    ;
}

.screen-actions {
    display: flex;
    margin-top: auto;
    row-gap: 20px;
    flex-direction: column;

}

.score-text {
    font-size: .8em;
}

.score-text b {
    font-size: 1.2em;
}

.score-text {
    font-size: .7em;
}


.score-hero svg {
    width: 350px;
    height: auto;
    max-width: 60vw;

}


.score-hero {
    margin-bottom: 40px;
    text-align: center;
}

.score-hero svg #diff * {
    fill: var(--imm-color-1) !important
}

.score-screen.score-zero .score-hero {
    padding-bottom: 20px;
}

/*
    RESULTS
*/

.result-question span {
    display: none;
}

.result-question[data-status=like] span[data-type=like] {
    display: block;
}


.result-question .question_status {
    position: absolute;
    top: -30px;
    left: 20px;
    text-align: center;
    width: calc(100% - 80px);
    padding: 20px 20px;
    font-size: 1.1em;
    border-radius: 50px;
    font-weight: bold;

    background-color: var(--imm-color-1);
    color: var(--imm-color-2);

}

.result-question .question_status i {
    margin-right: 10px;
}

.result-question[data-status=like] .question_status {
    background-color: var(--imm-color-2);
    color: var(--imm-color-1);
}

.result-question[data-status=reject].question {
    background-color: var(--imm-color-2);
    color: var(--imm-color-1);

}

.result-question[data-status=reject] span[data-type=reject] {
    display: block;
}

.results-screen .results {
    display: flex;
    flex: 1;
    column-gap: 20px;

    max-width: calc(100vw - 50px);
    overflow: hidden;
}

.results-screen .results .question {
    min-width: calc(100% - 50px);
}


.result-question>span {
    font-weight: 300;
    font-size: .8em;
    text-align: center;
}

.result-question:not(.show) {
    display: none;
}

.results-pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    column-gap: 5px;
}

.results-pagination span {
    display: block;
    background-color: var(--imm-color-2);
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 100%;
}

.results-pagination span.active {
    background-color: var(--imm-color-1);
}


/*
    CONTACT SCREEN
*/


.screen.contact-screen::before {
    background-color: var(--imm-color-2);
}

.screen.contact-screen h1 {
    font-size: 1.4em;
}

.screen.contact-screen {
    color: var(--imm-color-5)
}


.screen.contact-screen.contact-screen-reject h1, .screen.contact-screen.contact-screen-reject {
    color: var(--imm-color-1);
}


.screen.contact-screen button.reset {

    background: none;
    color: var(--imm-color-1);
    border: 1px solid var(--imm-color-8);
}


.contact-hero {
    padding-top: 200px;
    margin-bottom: -30px;
    z-index: 1;
    background-color: var(--imm-color-5);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.contact-hero,
.contact-screen-contact .contact-screen-info {
    border-radius: 0 0 30px 30px;
}

.contact-screen-contact .contact-screen-info {
    background-color: var(--imm-color-1);
    color: var(--imm-color-2);
    margin-top: -40px;
    margin-left: -25px;
    margin-right: -25px;
    padding: 50px 25px 30px;
    position: relative;
}


.contact-screen form {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    row-gap: 10px;
    flex: 1;
}

.contact-screen form input {
    background-color: var(--imm-color-3);
    color: var(--imm-color-5);
    padding: 15px 10px;
    font-size: 1.2em;
    border: 2px solid var(--imm-color-3);
    border-radius: var(--imm-border-radius);
}


.contact-screen form input::placeholder {
    color: var(--imm-color-5)
}

.contact-screen form input.invalid {
    border-color: var(--imm-color-1);
}

.contact-screen form button {
    margin-top: auto;
}

.contact-screen-reject .screen-actions {
    margin-top: 20px;
}


/*
    END SCREEN
*/

.screen.end-screen {
    color: var(--imm-color-2);
}

.screen.end-screen .button {
    background-color: var(--imm-color-8);
    color: var(--imm-color-7);
    margin-top: auto;
}

.screen.end-screen h1 {
    margin-top: 40px;
    font-size: 1.2em;
}


/*
    Landing page
*/

body.landing-page #wpadminbar {
    display: none !important
}

body.landing-page {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    max-height: 100vh;
    max-width: 100vw;
    color: black;
    display: flex;
    background: url('../img/landing-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
}


body.landing-page::before,
body.landing-page::after {
    content: unset;
}


.landing-page .powered-by {
    color: var(--landing-color-1);

    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    display: flex;
    font-size: .5em;
    font-family: 'muli', Arial, Helvetica, sans-serif;
    z-index: -1;
}

.landing-page .powered-by_wrapper {
    display: flex;
    text-align: right;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
    margin-left: auto;
    margin-bottom: 40px;
    margin-right: 40px;
}

.landing-page .powered-by img {
    height: auto;
    width: 10em;
    margin-top: .3em;
    margin-left: auto;
}

.landing-container img.logo {
    width: 200px;
}

.landing-container {
    margin: auto;
    width: 100%;
    max-width: 1500px;
}

.landing-container_inner {
    background: var(--landing-color-1);
    border-radius: 20px;
    margin: 50px;
    padding: 50px 40px;
    display: flex;
    min-height: 500px;

}


.landing-container_left {
    display: flex;
    flex-direction: column;
    width: 35%;

    font-family: 'museo', Arial, Helvetica, sans-serif;
    font-weight: 300;
    line-height: 1.4em;
}

.landing-container_right {
    position: relative;
    width: 100%;

}


.landing-phone {
    position: absolute;
    top: -50%;
    left: 100px;
    height: 200%;
    overflow: hidden;

}


.landing-contact {
    margin-top: auto;
}

.landing-contact p {
    margin-bottom: 0;
    margin-top: 0;
    font-style: italic;
    color: var(--landing-color-2);
    font-weight: 100;
    font-size: .95em;
}

.landing-contact_buttons {
    display: flex;
    column-gap: 10px;
    font-size: .8em;
    margin-top: 10px;
    row-gap: 15px;
}

.landing-contact a {
    font-family: 'muli', Arial, Helvetica, sans-serif;
    background-color: var(--landing-color-2) !important;
    color: var(--landing-color-1) !important;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    display: inline-flex;
    column-gap: 7px;
}



.landing-contact a>img,
.landing-contact a>span {
    display: inline-block;

}

.landing-contact a img {
    width: auto;
    height: 1.2em;
    margin-top: 5px;
}

@media only screen and (max-width: 1500px) {
    .landing-phone {
        left: 20px
    }
}

@media only screen and (max-width: 1275px) {
    .landing-phone {
        left: 100px
    }

    .landing-container_inner {
        min-height: 350px;
    }

    .landing-contact_buttons {
        flex-wrap: wrap;
    }
}


@media only screen and (max-width: 1050px) {
    .landing-container_inner {
        flex-direction: column;
        min-height: 500px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .landing-container {
        margin-top: 40px;
    }

    .landing-container_left {
        width: 100%;
    }

    .landing-phone {
        height: 70vh;
        left: calc(-90px - 15vw);
        margin-left: auto;
        margin-right: auto;
        width: 130vw;
        object-fit: contain;
    }




}


@media only screen and (min-width: 600px) {}


@media only screen and (min-width: 768px) {
    .screen {
        max-width: 500px;
        max-height: 900px;
        width: 100%;
    }

    .screen-logo img {
        max-width: 200px;
    }
}




@media only screen and (max-width: 767px) {
    body:not(.landing-page) {
        font-size: 1.2em;
    }

    h1 {
        font-size: 1em;
        line-height: 1.4em;
        margin-bottom: 0;
    }


    .screen {
        min-width: unset;
        width: 100vw;
        min-height: unset;
    }

    .results-screen .results .question {
        min-width: calc(100vw - 110px)
    }

    .screen.contact-screen {
        font-size: .75em;
    }


    .screen.contact-screen>.wrapper {
        margin-bottom: 0;
    }



    p {
        margin-block: .5em;
    }


    .score-hero svg {
        max-width: 40vw;
    }


    body.landing-page {
        font-size: 1em;
    }

    .landing-container {
        max-height: 100vh;
        height: calc(100% - 40px);
        overflow: hidden;
    }

    .landing-container_inner {
        padding: 25px 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .landing-contact_buttons {
        font-size: .7em;

    }

    .landing-contact_buttons a {
        padding: 7.5px 10px
    }

    .landing-phone {
        left: calc(-50px - 15vw);
        top: -55px
    }


    .landing-page .powered-by_wrapper {
        margin-bottom: 10px;
        margin-right: 10px;
    }
}


body.single-page {
    min-height: 100vh;
    display: flex;

    flex-direction: column;
}

body.single-page>article {
    margin: auto;
}

body.single-page .entry-header,
body.single-page .entry-content {
    margin: 0;
    padding: 20px
}

body.single-page .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.single-page .wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
    border-color: black !important;
    color: black !important;

}