.modal {
    display: none;                  /* hidden by default */
    position: fixed;
    inset: 0;                       /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.5); /* darken background */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    width: 100%;
}

/* Centered white box */
.modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 650px;
    width: 100%;
    border-radius: 8px;
    position: relative;
    text-align: left;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* When we add this class, the modal becomes visible */
.modal.show {
    display: flex;
}