:root {
    --homeHeaderColor: rgba(0, 0, 0, 0.4);
    --homeCarouselItemBackground: #4d4d4d00;
    --homeCarouselItemHeight: 100px;
    @media (min-width: 500px) and (max-width: 999px) {
        --homeCarouselItemHeight: 70px;
    }
    @media (max-width: 499px) {
        --homeCarouselItemHeight: 50px;
    }
}

.homeSlide {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: space-around;
    margin: 0;
    padding: 0;
    max-height: 99vh;
    overflow: hidden !important; /* make sure that the background doesn't jump up and down because content height changes */
    background: black; /* to reduce flickering when switching to the next video */
}

.homeSlideVideo {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 99vh;
    object-fit: cover;
}

.hssLogo {
    opacity: 0.4;

    @media (max-width: 999px) {
        margin-bottom: 10px;
        max-width: 100px;
        max-height: 100px;
    }
}

.homeHeaderContainer {
    margin-left: 20px;
    display: flex;
    position: absolute;
    z-index: 1000;
    flex-direction: column;
    height: 95vh;
}

.homeLogoContainer {
    flex: 1;
    margin-top: 20px;
}

.homeCompanyTitleContainer {
    margin-top: 100px;
}

.homeHeaderLine {
    /*background: var(--homeHeaderColor);*/
    color: white;
    display: block !important;
    font-size: 100px;
    margin-top: -50px;
    margin-bottom: -50px;
    max-width: 400px;
    padding: 0 40px;
    width: fit-content;

    @media (max-width: 1000px) {
        font-size: 32px;
        margin-top: -15px;
        margin-bottom: -15px;
    }
}

.homeCarousel {
    flex-direction: column;
    margin-top: 120px;
    margin-left: auto;
    padding-right: 10px;
    overflow: hidden !important; /* make sure that the background doesn't jump up and down because content height changes */
    width: 100%;

    @media (max-width: 1000px) {
        margin-top: 200px;
    }
}

.homeCarouselItem {
    color: white;
    display: block;
    font-size: 48px;
    position: relative;
    text-shadow: 1px 1px 1px 1px black;
    overflow: hidden;
    padding: 0 20px; /* it's crucial for smooth animation for homeCarouselItem to have zero top and bottom margins */
    margin: 0 0 0 auto; /* it's crucial for smooth animation for homeCarouselItem to have zero top and bottom margins */
    box-sizing: border-box;
    transition: height 3s;
    text-align: right;
    height: var(--homeCarouselItemHeight);

    @media (min-width: 1500px) {
        font-size: 64px;
        max-width: 1600px;
    }
    @media (min-width: 1000px) and (max-width: 1499px) {
        font-size: 48px;
        padding: 3px 5px;
    }
    @media (min-width: 1000px) and (max-width: 1199px) {
        font-size: 32px;
        padding: 3px 5px;
    }
    @media (min-width: 800px) and (max-width: 999px) {
        font-size: 42px;
        background: var(--homeCarouselItemBackground);
        padding: 1px 2px;
    }
    @media (min-width: 600px) and (max-width: 799px) {
        font-size: 36px;
        background: var(--homeCarouselItemBackground);
        padding: 1px 2px;
    }
    @media (min-width: 500px) and (max-width: 599px) {
        font-size: 28px;
        background: var(--homeCarouselItemBackground);
        padding: 1px 2px;
    }
    @media (min-width: 400px) and (max-width: 499px) {
        font-size: 24px;
        background: var(--homeCarouselItemBackground);
        padding: 1px 2px;
    }
    @media (max-width: 399px) {
        font-size: 20px;
        background: var(--homeCarouselItemBackground);
        padding: 1px 2px;
    }
}

@keyframes animateCarouselItemInvisible {
    from {
        opacity: 0;
    }
    70% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes animateCarouselItemGrowing {
    from {
        height: 0;
    }
    to {
        height: var(--homeCarouselItemHeight);
    }
}

@keyframes animateCarouselItemColorAppearing {
    from {
        color: blueviolet;
    }
    to {
        color: #ff00b7;
    }
}

.animateCarouselItemGrowing {
    opacity: 0; /* we hide the item while it's growing using opacity: 0 */
    animation:
            animateCarouselItemGrowing 3000ms linear/*,*/
            /*animateCarouselItemColorAppearing 2000ms linear*/
    ;
    animation-iteration-count: 1;
}

@keyframes animateCarouselItemColorDisappearing {
    from {
        color: #ff00b7;
    }
    25% {
        color: orange;
    }
    50% {
        color: greenyellow;
    }
    75% {
        color: dodgerblue;
    }
    to {
        color: blueviolet;
    }
}

@keyframes animateCarouselItemFadeInAndFadeOut {
    from {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.animateCarouselItemFadeInAndFadeOut {
    animation:
            animateCarouselItemFadeInAndFadeOut 18000ms linear/*,*/
            /*animateCarouselItemColorDisappearing 9000ms linear*/
    ;
    animation-iteration-count: 1;
    opacity: 0;
}

