/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-15deg) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }
}

/* Classes */
.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fade-in-right {
    animation-name: fadeInRight;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: 0.3s;
}

/* Apply float to book container slightly differently to allow hover interaction on img */
.hero-visual .book-container {
    animation: float 6s ease-in-out infinite;
}

/* data-aos simulation classes */
.aos-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.aos-animate.aos-visible {
    opacity: 1;
    transform: translateY(0);
}