dialog {
    display: flex;
    position: fixed; /* Stay in place */
    z-index: 9998; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden;
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    animation-name: show-backdrop;
    animation-duration: 0.5s;
    padding: 0;
    border: none;
}

dialog::backdrop {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: none;
    width: 100%;
    max-width: 480px;
    min-width: 320px;
    min-height: 480px;
    max-height: 580px;
    height: 100%;
    box-shadow: 0 4px 8px 0 rgb(197 197 197 / 20%), 0 6px 20px 0 rgb(52 52 52 / 19%);
    margin-top: 60px;
}

.modal-content button {
    outline: none;
}

.modal-content h4 {
    padding: 9px 0;
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    vertical-align: middle;
}

.modal-content .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    height: 40px;
}

.modal-content .header button {
    border-radius: 100%;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f7f7f7;
}

.modal-content .header button span {
    /* padding-top: 4px; */
}

.close {
    justify-content: center;
    align-items: center;
}

.backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

@keyframes show-backdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#withdraw-dialog, #contributor-dialog {
    display: none;
}