.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: hidden;
}
.dialog {
    margin-top: 1rem;
    margin-bottom: 1rem;
    min-width: 300px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow: auto;
    min-height: min-content;
}
.heading {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.content {
    padding: 0 24px 24px;
}

@media screen and (max-width: 640px) {
    .overlay {
        height: 100vh;
        /* padding-bottom: 5%; */
        /* justify-content: flex-start; */
    }
    .dialog {
        width: 90vw;
        max-height: 90vh;
        overflow-y: auto;
    }
}
