#modal-zone{
    background-color:white;
    z-index: 1000;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

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

#modal-zone .modal{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 5rem 0;
}

#modal-zone #modal-button{
    background-color: white;
    border: 0;
    cursor: pointer;
    margin-top: 8rem;

}

#modal-zone[hidden]{
    display: none;
}

.modal-text{
    padding-bottom: 1rem;
    color: var(--dark-text);
    text-align: center;
}


@media only screen and (min-width: 992px) {
    #modal-zone{
        background-color: rgba(0, 0, 0, 0.4);
    }  

    #modal-zone .modal{
        background-color: white;
        border-radius: 0.8rem;
        box-shadow: 0.8rem 0 1.6rem rgba(0, 0, 0, 0.25);
        width: 30%;
        height: 60%;
        padding: 3rem 2rem;

        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 15% 1fr;
        justify-content: flex-end;
        align-items: center;
        gap: 0;
    }  

    .img_regle{
        width: 32rem;
        height: auto;
        margin: auto;

        grid-column: 1 / span 2;
        grid-row: 2 ;
    }

    .modal-text{
        grid-column: 1;
        grid-row: 1;
        text-align: start;
        align-self: center;
    }

    #modal-zone #modal-button{
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        justify-self: end;
        align-self: center;
    }
}