/* Copyright (C) 2016 NooBaa */

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    16.66%, 83.33% {
        transform: translateX(-1em);
    }

    46.66% {
        transform: translateX(1em);
    }
}

@keyframes slide-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
    }
}

@keyframes pop-centered {
    from {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(.85) ;
        opacity: 0;
    }

    to {
        left: 50%;
        top: 50%;
        transform:  translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes roll-in {
    0% {
        transform: translateX(28em) rotate(720deg);

    }

    85% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }

    92% {
        transform: scale(1.3);
        opacity: .5;
    }

    100% {
        trasform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(-1.5em)
    }

    30% {
        transform: translateY(0);
    }
}

@keyframes shrink-in {
    0% {
        transform: translateX(100px) scale(4);
        opacity: .8;
    }

    70% {

    }

    100% {
        opacity: 0;
    }
}

@keyframes spin {
    0 { transform: rotateZ(0deg) }
    100% { transform: rotateZ(360deg) }
}

.shake {
    animation: shake 750ms ease-in-out;
}

.slide-left {
    animation: slide-left 300ms ease-out;
}

.fade-in {
    animation: fade-in 300ms linear;
}

.pop-centered {
    position: absolute;
    animation: pop-centered 350ms ease-out;
    animation-fill-mode: forwards;
}

.spin {
    animation: spin 2000ms linear infinite;
}

.fast-spin {
    animation: spin 1000ms linear infinite;
}

.shrink-in {
    animation: shrink-in 1000ms ease-out;
}
