.home__header, .home__letters, .home__carousel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.home__header {
    align-items: center;
    z-index: 2;
    display: flex;
    padding: 1rem;
}
.home__header.slow {
    animation: fade-out 500ms 3.5s both ease;
}

.home__header h1{
    margin-right: 1rem;
    animation: fade-in 400ms 200ms both ease;
}
.home__header h2{
    margin-right: 1rem;
    animation: fade-in 400ms 600ms both ease;
}

.home__header.fast {
    display: none;
}

/* Letters */
.home__letters {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 3;
    padding: 1rem;
}

.home__letters.slow {
    animation: fade-in 500ms 2.5s both ease, background-fade 300ms 4s both ease;
}

.home__letters.fast {
    animation: fade-in 500ms both ease, background-fade 300ms 2s both ease;
}

.home__letters .letter.h {
    animation: move-left 800ms 3.5s both ease;
    padding-right: 0.25rem;
}

.home__letters.fast .letter.h {
    animation: move-left 800ms 1s both ease;
    padding-right: 0.25rem;
}
.home__letters .letter.g {
    animation: move-right 800ms 3.5s both ease;
    padding-left: 0.25rem;
}

.home__letters.fast .letter.g {
    animation: move-right 800ms 1s both ease;
    padding-left: 0.25rem;
}

.home__letters .letter img {
    height: 4rem;
    width: auto;
}


/* Carousel */
.home__carousel {
    z-index: 1;
    animation: fade-in 500ms 2s both ease;
    display: none;
}

.home__carousel.mobile {
    display: block;
}


.home__carousel.active .carousel-img{
    padding-bottom: 4.5rem;
}

.carousel-img-mobile, 
.carousel-img-desktop {
    position: absolute;
    opacity: 0;
    transition: 1600ms;
}

.carousel-img-mobile {
    top: 8rem;
    left: 1rem;
    right: 1rem;
    bottom: 10rem;
}

.carousel-img-desktop {
    top: 1rem;
    left: 12rem;
    right: 7.8rem;
    bottom: 12rem;
}

.carousel-img-mobile img {
    object-position: center center;
    object-fit: contain;
}

.carousel-img-desktop img {
    object-position: top right;
    object-fit: contain;
}

.carousel-img-mobile.visible,
.carousel-img-desktop.visible {
    opacity: 1;
}

.home__img {
    z-index: 4;
    display: flex;
    color: white;
    transition: 600ms ease;
}

/* Menu */
.home__aside {
    position: fixed;
    bottom: -100%;
    width: 100%;
    background-color: white;
    z-index: 1000;
    transition: 800ms ease;
}

.home__aside.active {
    bottom: 0;
}

@media only screen and (min-width: 768px) {
    .home__header,
    .home__letters {
        padding: 2rem;
        transition: 300ms ease;
    }

    /* Letters */
    .home__letters {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 3;
        padding: 2rem;
    }

    .home__letters .letter.h {
        animation: move-up 800ms 3.5s both ease;
        padding-bottom: 1rem;
    }

    .home__letters.fast .letter.h {
        animation: move-up 800ms 1s both ease;
        padding-bottom: 1rem;
    }
    .home__letters .letter.g {
        animation: move-down 800ms 3.5s both ease;
        padding-top: 1rem;
    }

    .home__letters.fast .letter.g {
        animation: move-down 800ms 1s both ease;
        padding-top: 1rem;
    }

    .home__letters .letter img {
        height: 8rem;
        width: auto;
    }

    .home__aside {
        width: auto;
        right: -100%;
        top: 0;
        display: flex;
        transition: 800ms ease;
    }

    .home__aside.active {
        right: 0;
    }

    .home__carousel.active .carousel-img{
        padding-bottom: 0;
        padding-right: 6.8rem;
    }

    .home__carousel.mobile {
        display: none;
    }
    .home__carousel.desktop {
        display: block;
        padding: 1rem 8rem 8rem 8rem;
    }
}

/* 
    Animations 
*/
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes move-up {
    0% {
        margin-top: calc(50vh - 10rem);
    }
    100% {
        margin-top: 0;
    }
}
@keyframes move-down {
    0% {
        margin-bottom: calc(50vh - 10rem);
    }
    100% {
        margin-bottom: 0;
    }
}
@keyframes move-left {
    0% {
        margin-left: calc(50vw - 4.25rem);
    }
    100% {
        margin-left: 0;
    }
}
@keyframes move-right {
    0% {
        margin-right: calc(50vw - 4.25rem);
    }
    100% {
        margin-right: 0;
    }
}

@keyframes background-fade {
    0% {
        background-color: rgba(255,255,255,1);
    }
    100% {
        background-color: rgba(255,255,255,0);
    }
}