.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;

    background: rgba(0, 0, 0, 0.51);

    animation: fadeIn .26s ease forwards;
}

.modal {
    animation: popIn .28s cubic-bezier(.2,.7,.2,1.02) forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }