
#stage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vmin;
    height: 50vmin;
    z-index: 1;
    pointer-events: none;
}

#grille {
    position: fixed;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(30vmin);
    height: calc(30vmin);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#grille .cell {
    border: solid black 1px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vmin;
    width: 10vmin;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}


/*Animation*/
#grille .cell img {
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    display: block;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

#gagnantimg {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 15px;
    animation: victoryPop 0.5s forwards;
}

@keyframes victoryPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/*Fin*/
.cacher {
    display: none !important;
}

#terminer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;

    display: flex;
    justify-content: center;
    align-items: center;
}

#modal {
    background: lightblue;
    color: white;
    padding: 30px;
    border-radius: 15px;

    width: 85%;
    max-width: 380px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#modal h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: black;
}

#gagnantimg {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 15px;
}

#finmessage {
    font-size: 25px;
    margin-bottom: 25px;
    color: black;
}

#rejouer {
    padding: 12px 24px;
    font-size: 20px;
    border-radius: 10px;
    border: none;
    background: grey;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.5s ease, background 0.5s ease;
}

#rejouer:hover {
    transform: scale(1.1)
}