// out: micromodal.css, compress: false, sourceMap: true, autoprefixer: last 5 versions, groupmedia: true
// - vscode easycompile extension settings above -

.micromodal {
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
        &.modal-overlay-blurred {
            backdrop-filter: blur(3px);
        }
    }

    .modal-container {
        background-color: #fff;
        padding: 40px 30px 30px;
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 4px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-close {
        position: absolute;
        top: 5px;
        right: 5px;
        padding: 5px 10px;
        background: transparent;
        border: 0;
        &:before {
            content: "\2715";
        }
    }

    .modal-content {
        margin-top: 2rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        color: rgba(0, 0, 0, 0.8);
    }
}

.micromodal {
    display: none;
}

.micromodal.is-open {
    display: block;
}

/* ----------------------------------------------
 * Generated by Animista on 2021-11-20 19:0:28
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info.
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

@keyframes micromodalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes micromodalFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes micromodalSlideInTop {
    0% {
        transform: translateY(-1000px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes micromodalSlideInLeft {
    0% {
        transform: translateX(-1000px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes micromodalSlideInRight {
    0% {
        transform: translateX(1000px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes micromodalSlideInBottom {
    0% {
        transform: translateY(1000px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes micromodalScaleIn {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes micromodalFlipInVerticalLeft {
    0% {
        transform: rotateY(80deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}

@keyframes micromodalFlipInHorizontalBottom {
    0% {
        transform: rotateX(80deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

/* Global animations
-------------------------------------------------- */

.micromodal[aria-hidden="false"] .modal-overlay {
    animation: micromodalFadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal[aria-hidden="true"] .modal-overlay {
    animation: micromodalFadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal[aria-hidden="true"] .modal-container {
    animation: micromodalFadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal .modal-container {
    will-change: transform;
}

/* Entrance animations
-------------------------------------------------- */

.micromodal-fade-in[aria-hidden="false"] .modal-container {
    animation: micromodalFadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide-in-top[aria-hidden="false"] .modal-container {
    animation: micromodalSlideInTop 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide-in-left[aria-hidden="false"] .modal-container {
    animation: micromodalSlideInLeft 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide-in-right[aria-hidden="false"] .modal-container {
    animation: micromodalSlideInRight 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide-in-bottom[aria-hidden="false"] .modal-container {
    animation: micromodalSlideInBottom 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-scale-in[aria-hidden="false"] .modal-container {
    animation: micromodalScaleIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-flip-in-horizontal[aria-hidden="false"] .modal-container {
    animation: micromodalFlipInHorizontalBottom 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-flip-in-vertical[aria-hidden="false"] .modal-container {
    animation: micromodalFlipInVerticalLeft 0.3s cubic-bezier(0, 0, 0.2, 1);
}
