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



body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: url("bg.jpg");
    background-repeat: repeat;
    font-family: "Pangolin", cursive;
    font-weight: 400;
    font-style: normal;
    color: #ff4f75;
    display: none;
}

#slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.wrong, .wrong:hover {
    border: #ff2c2c 2px solid;
    background: rgba(255, 44, 44, 0.6);
    color: #FFFFFF;
    animation: shake 100ms;
}

@keyframes shake {
    25% {transform: translateX(-10px)}
    50% {transform: translateX(10px)}
    75% {transform: translateX(-10px)}
    100% {transform: translateX(0px)}
}

.right, .right:hover {
    border: #43ab21 2px solid;
    background: rgba(67, 171, 33, 0.6);
    color: #FFFFFF;
}

#transition {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex; /* Toujours en flex */
    align-items: center;
    justify-content: center;
    background-color: #F8BDC4;

    /* Gestion de la visibilité */
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
}

#transition.active {
    opacity: 1;
    pointer-events: all;
}

#questionnaireContainer {
    position: relative;
    z-index: 1;
}

.slides {
    display: none;
}

#slide-1 {
    display: flex;
}

#theEnd {
    display: none;
}

#questionnaire {
    width: 40%;
    height: 60%;
    background-color: #F8BDC4;
    padding: 50px;
    position: relative;
    box-sizing: border-box;
    border: none;
    --r: 20px; /* radius of circles */
    mask:
            linear-gradient(#000 0 0) no-repeat
            50%/calc(100% - 2*var(--r)) calc(100% - 2*var(--r)),
            radial-gradient(farthest-side,#000 97%,#0000)
            0 0/calc(2*var(--r)) calc(2*var(--r)) round;
}

#bg {
    z-index: 0;
    position: relative;
}

.picContainer {
    width: 200px;
    aspect-ratio: 2 / 3;
    background-color: #FF0000;
    position: absolute;
    border-radius: 100%;
    overflow: clip;

    /* Le masque qui s'adapte à la forme ovale */
    mask: radial-gradient(
            ellipse at center,
            black 0%,       /* Centre totalement opaque */
            black 30%,      /* Zone de netteté */
            transparent 75% /* Flou progressif qui finit avant le bord */
    );

    /* Support pour Safari */
    -webkit-mask: radial-gradient(ellipse at center, black 0%, black 30%, transparent 75%);
}

.picContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes toTop {
    from { bottom: -400px;  left: var(--start-left)}
    to   { bottom: calc(100vh + 40px); left: var(--arrival-left)}
}

button {
    padding: 7px 12px;
    background: rgba(255, 79, 117, 0);
    transition: all ease 500ms;
    border: 2px solid rgb(255, 79, 117);
    border-radius: 10px;
    color: #ff4f75;
}

button:hover {
    color: #FFFFFF;
    background: rgba(255, 79, 117, 0.4);
}

p {
    margin: 0 !important;
}

#playPauseBtn {
    width: 30px;
}

progress {
    background-color: #F8BDC4;
    height: 10px;
    border: 2px solid #ff4f75;
    border-radius: 25px;
}
progress::-webkit-progress-bar {
    background-color: #F8BDC4;
}
progress::-webkit-progress-value {
    background-color: #ff4f75;
}
progress::-moz-progress-bar {
    background-color: #ff4f75;
}