#modalBox {
    position: fixed;
    transition: transform 0.3s ease-in-out;

}

#modalBox.openModal {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    background-size: 10px 10px; /* Adjust the spacing between dots */
    top: 0;
    bottom: 0;
}

#modalBox .closeButton {
    font-size: .75rem;
}

.modal-content {
    background: lightgrey;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    overflow-y: auto;
    max-height: 80vh;
    z-index: 1002;
    box-shadow: var(--bs-heavy);
}
.modal-body {
    padding: 1rem 2rem;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px rgba(24,24,24,0.18);
    padding: 1rem 2rem;

}
.modal-content form,
.modal-content .modal-message {
    border-top: solid 1px rgba(255,255,255,0.8);
    padding: 1rem 2rem;
    overflow-y: auto;
    max-height: 70vh;
}

/*.modal-content form #actualSubmit {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    width: calc(100% - 4rem);*/
/*    margin-bottom: 1rem;*/
/*}*/
#modalBox .countdown {
    padding: 0 2rem 1rem 2rem;
    color: var(--danger-text);
}

@media screen and (max-width: 450px) {
    .modal-content {
        width: 100%;
        max-height: 90vh;
    }
    .modal-header,
    .modal-content form {
        padding: 1rem;
    }
}

.form-with-icon-container {
    display: flex;
    flex-direction: column;
    margin-bottom: .75rem;
}
.form-input-with-icon {
    display: flex;
    align-items: center;
}
.form-input-with-icon i,
.form-input-with-icon svg {
    color: var(--primary-links);
    width: 30px;
    min-width: 30px;
}
.form-input-with-icon input {
    flex: 1;
    margin: 0;
}

.modal-user-message-container {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (max-width: 450px) {
    #modalBox.openModal {
        position: fixed;
        bottom: 0;
        width: 100vw;
        min-height: 0;
        box-shadow: var(--bs-heavy);
        background: whitesmoke;
        z-index: 1001;
        border-radius: 5px 5px 0 0;
    }
}
