/* @keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes slide-from-right {
    from {
        transform: translateX(60px);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
}

@keyframes slide-down {
    to {
        transform: translateY(100%);
    }
}

@keyframes slide-to-left {
    to {
        transform: translateX(-30px);
    }
}

main {
    view-transition-name: main;
}

::view-transition-old(main) {
    animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
        300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(main) {
    animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
        300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
} */

@media (max-width: 768px) {
    dialog {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        margin: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        opacity: 0;
        transform: translate3d(0, 100%, 0);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        will-change: transform, opacity;
    }

    @starting-style {
        dialog[open] {
            opacity: 0;
            transform: translateY(100%);
        }
    }

    dialog[open] {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }
}
