/*
Notre Popup
*/

#popup {
    /* Ne jamais definir le display en CSS pour le chargement de la page. */
    /* display: none !important; */
    z-index: 999;
    /* position: absolute; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#popup-overlay {
    background-color: rgba(0, 0, 0, .5) !important;
    width: inherit;
    height: inherit;
}

/* Mobile/Tablet */
@media only screen and (max-width: 482px) {
    #popup-content {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        top: 2%;
        left: 2%;
        width: 96%;
        min-height: 512px;
        height: auto;
        /* height: 60%; */
        background-color: rgba(255, 255, 255, 1);
        padding: .3em;
        border-radius: 1em;
    }

    #popup-content>div:nth-child(2)>p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #popup-spin {
        width: 80%;
        height: auto;
        margin: 10%;
    }

    #popup-content>div {
        width: 100% !important;
    }
}

/* Desktop */
@media only screen and (min-width: 482px) {
    #popup-content {
        position: absolute;
        display: flex;
        justify-content: space-between;
        align-items: center;
        top: 20%;
        left: 20%;
        width: 60%;
        min-height: 512px;
        background-color: rgba(255, 255, 255, 1);
        padding: .5em;
        border-radius: 1em;
    }

    #popup-content>div:nth-child(2)>p {
        padding-left: 1em !important;
        padding-right: 1em !important;
    }

    #popup-spin {
        width: 80%;
        height: auto;
        margin: 10%;
    }

    #popup-content>div {
        width: 50% !important;
    }
}

#popup-close {
    position: absolute;
    top: 0;
    right: 0;
    width: .2em;
    height: .2em;
    color: gray;
    background-color: transparent;
    border-color: transparent;
}