/* Scroll-reveal animations. script.js adds .animated together with .fadeIn or
   .fadeInLeft as an element enters the viewport. */

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

@media (prefers-reduced-motion: reduce) {
    .animated {
        animation: none !important;
    }

    /* .js-1 / .js-2 start hidden in style.css, so reveal them outright. */
    .js-1,
    .js-2 {
        opacity: 1;
    }
}
