﻿/**Styling scrollable elements*/

.js-scroll {
    opacity: 0;
    transition: opacity 50ms;
}

    .js-scroll.scrolled {
        opacity: 1;
    }

.scrolled.fade-in {
    animation: fade-in 1s ease-in-out both;
}

.scrolled.fade-in-bottom {
    animation: fade-in-bottom 1s ease-in-out both;
}

.scrolled.slide-left {
    animation: slide-in-left 1s ease-in-out both;
}

.scrolled.slide-right {
    animation: slide-in-right 1s ease-in-out both;
}

/*Text Fade In*/
.animate-1 {
    color: #231F20;
    display: block;
    font-family: Roboto, sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin-top: 0;
    text-transform: uppercase;
    line-height: 0.8;
}

.animate-white {
    color: #FFF8F0;
    display: block;
    font-family: Roboto, sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin-top: 0;
    text-transform: uppercase;
    line-height: 0.8;
}

.scrolled.text-fade-1 span {
    display: block;
    font-family: Roboto, sans-serif;
    font-size: 5rem;
    font-weight: 800;
    -webkit-text-stroke: 1px #231F20;
    text-stroke: 1px #231F20;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 0.8;
}

.scrolled.text-fade-white span {
    display: block;
    font-family: Roboto, sans-serif;
    font-size: 5rem;
    font-weight: 800;
    -webkit-text-stroke: 1px #FFF8F0;
    text-stroke: 1px #FFF8F0;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 0.8;
}

.scrolled.text-fade-1 span:nth-child(1), .scrolled.text-fade-white span:nth-child(1) {
    opacity: 0.15;
    animation: slidein-1 1.2s 1;
}

.scrolled.text-fade-1 span:nth-child(2), .scrolled.text-fade-white span:nth-child(2) {
    opacity: 0.25;
    animation: slidein-2 1.2s 1;
}

.scrolled.text-fade-1 span:nth-child(3), .scrolled.text-fade-white span:nth-child(3) {
    opacity: 0.35;
    animation: slidein-3 1.2s 1;
}

.scrolled.text-fade-1 span:nth-child(4), .scrolled.text-fade-white span:nth-child(4) {
    opacity: 0.45;
    animation: slidein-4 1.2s 1;
}

.scrolled.text-fade-1 .animate-1, .scrolled.text-fade-white .animate-white {
    animation: slidein-5 1.2s 1;
}

/*Section Fade Out*/
.fade-out {
    animation: fadeOut 2s;
    opacity: 0;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ----------------------------------------------
 * Generated by Animista on 2021-2-11 23:32:31
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

@keyframes slide-in-left {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-bottom {
    0% {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Text Header Animations */
@keyframes slidein-1 {
    from {
        transform: translate3d(0,-100%,0);
    }

    to {
        transform: translate3d(0,0%,0);
    }
}

@keyframes slidein-2 {
    from {
        transform: translate3d(0,-200%,0);
    }

    to {
        transform: translate3d(0,0%,0);
    }
}

@keyframes slidein-3 {
    from {
        transform: translate3d(0,-300%,0);
    }

    to {
        transform: translate3d(0,0%,0);
    }
}

@keyframes slidein-4 {
    from {
        transform: translate3d(0,-400%,0);
    }

    to {
        transform: translate3d(0,0%,0);
    }
}

@keyframes slidein-5 {
    from {
        transform: translate3d(0,-500%,0);
    }

    to {
        transform: translate3d(0,0%,0);
    }
}

/*bounce up animation for the subject*/
.animation-element {
    position: relative;
}

.bounce-up .sectionContent {
    opacity: 0;
    -moz-transition: all 700ms ease-out;
    -webkit-transition: all 700ms ease-out;
    -o-transition: all 700ms ease-out;
    transition: all 700ms ease-out;
    -moz-transform: translate3d(0px, 200px, 0px);
    -webkit-transform: translate3d(0px, 200px, 0px);
    -o-transform: translate(0px, 200px);
    -ms-transform: translate(0px, 200px);
    transform: translate3d(0px, 200, 0px);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: fadeOut;
}

.bounce-up.in-view .sectionContent {
    opacity: 1;
    -moz-transform: translate3d(0px, 0px, 0px);
    -webkit-transform: translate3d(0px, 0px, 0px);
    -o-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    transform: translate3d(0px, 0px, 0px);
}