.modal-window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .3);
    z-index: 100;
    display: none;
    /*flex*/
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-window {
    display: block;
    background-color: var(--modal-bgcolor);
    padding: 2rem;
    border-radius: .5rem;
    margin: 1rem;
}

.modal-window-caption {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.modal-window-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    border-radius: .5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: .2s;
    margin-left: 2rem;
}

.modal-window-close:hover {
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, .2);
}

.modal-window-title {
    font-size: 1.2rem;
    font-weight: 700;
}

@media only screen and (max-width: 44rem) {

    .modal-window-title {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 36rem) {
    .modal-window {
        padding: 1rem;
        margin: 0.5rem;
    }

    .modal-window-title {
        font-size: .8rem;
    }
}