@keyframes underbar {
    from {
        opacity: 0;
        bottom: 0rem;
    }
    to {
        opacity: 1;
        bottom: 4.6rem;
    }
}

@keyframes byline {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes inner-slide {
    from {
        left: 25%;
        transform: scale(1);
    }
    to {
        left: 17%;
        transform: scale(1.05);
    }
}

@keyframes move-left-norotation {
    from {
        left: 50%;
        opacity: 0;
    }
    to {
        left: calc(50% - var(--end-left));
        opacity: 1;
    }
}

@keyframes letter-move-left {
    from {
        left: 50%;
        opacity: 0;
        transform: translateX(-50%) rotateY(90deg);
    }
    to {
        left: calc(50% - var(--end-left));
        opacity: 0.85;
        transform: translateX(-50%) rotateY(0deg);
    }
}

@keyframes letter-move-right {
    from {
        left: 50%;
        opacity: 0;
        transform: translateX(-50%) rotateY(90deg);
    }
    to {
        left: calc(50% + var(--end-left));
        opacity: 0.85;
        transform: translateX(-50%) rotateY(0deg);
    }
}

@keyframes tiber-fade-out {
    from {opacity: 1}
    to {opacity: 0}
}

#main-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 1;
}

.outer-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 1rem;
    z-index: 10;
}

.inner-container {
    position: relative;
    left: 25%;
    height: 22rem;
    width: 100%;
    max-width: 800px;

    animation: inner-slide 2500ms forwards;
    animation-delay: 5500ms;
}

.animate-element {
    font-family: droid-sans, serif;
    position: absolute;
    height: 20rem;
    font-size: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    left: 50%;
    opacity: 0;
    transform: translateX(-50%) rotateY(90deg);
    font-size: 10rem;
    font-variant: small-caps;
    color: #173042;
}

#tractus-t {
    background-image: url(https://cdn.tiberhealth.com/tractus/tractus-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-clip: border-box;
    background-size: cover;

    height: 20rem;
    width: 20rem;

    --end-left: 17.5rem;
    animation-delay: 10ms;
    animation: move-left-norotation 5s forwards;

    transform: translateX(-50%) !important;
}

.letter {
    animation: var(--animation) var(--duration) forwards;
    animation-delay: var(--animation-delay);

    text-shadow: 3px 0px 8px #ffffff;
}

.under-bar {
    position: absolute;
    bottom: 0;
    width: 26rem;
    height: 0.7rem;
    background-color: #2c7b80;
    left: 15rem;
    border-radius: 7px;
    animation: underbar 3s forwards;
    animation-delay: 3000ms;
    opacity: 0;
}

.tiber-byline {
    position: absolute;
    font-size: 1.5rem;
    font-variant: small-caps;
    color: #173042;
    top: 13rem;
    right: 4rem;
    font-family: ainslie-sans, sans-serif;

    opacity: 0;
    transform: scale(0);

    animation: byline 1000ms forwards;
    animation-delay: 5500ms;
}

.tiber-byline > div:nth-child(2) {
    margin-left: 1rem;
}


