.popup {
    position: fixed;
    z-index: 3;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 300ms;
    pointer-events: none;
}

.popup.show{
    opacity: 1;
    pointer-events: auto;
}

.popup .content {
    background-color: var(--color-mono-1);
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
    display: grid;
}

.popup .close {
    content: "";
    background-color: var(--color-mono-8);
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: -1;
    cursor: pointer;
}

.popup .content .header {
    justify-self: end;
    line-height: 1;
}

.popup .header .btn_close {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

.popup .header .btn_close:hover::after{
    transform: rotate(225deg);
}

.popup .header .btn_close:hover::before{
    transform: rotate(135deg);
}

.popup .header .btn_close::after, .popup .header .btn_close::before {
    content: "";
    position: absolute;
    height: 2px;
    width: calc(100% - 20px);
    background-color: var(--color-mono-5);
    top: calc(50% - 1px);
    transition: 300ms;
}

@media screen and (max-width: 768px) {

    .popup .content {
        margin: 0 10px;
        border-radius: 20px 20px 0 0;
        box-shadow: 0px -6px 10px #0000001A;
        background-color: unset;
        position: relative;
    }

    .popup .content::before{
        content: "";
        background-color: var(--color-mono-1);
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    @supports (backdrop-filter: blur(6px)) {
        .popup .content {
            backdrop-filter: blur(6px);
        }
        .popup .content::before {
            opacity: 0.9;
        }
    }

    .popup {
        align-items: flex-end;
        top: 100%;
    }

    .popup .close {
        background-color: unset;
    }

    .popup.show {
        top: 0;
    }

    .popup .content .btn_close::after{
        transform: rotate(225deg);
    }

    .popup .content .btn_close::before{
        transform: rotate(135deg);
    }

}