﻿.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bg3 {
    animation-duration: 5s;
}

.content {
    margin: 2rem;
}


@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}




/*         ANIMAÇÃO TEXTO PÁGINA INICIAL       */

#titleBackground {
    font-size: 4.2rem;
    font-weight: bolder;
    color: white;
    margin-top: 25vh;
    opacity: 0;
    transform: translateX(100%);
    animation: fade-in-left 1s ease-in-out forwards;
}

#subBackground {
    opacity: 0;
    transform: translateX(100%);
    animation: fade-in-left 1s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}