﻿/* TOP BAR */

.top-bar p {
    color: white;
}

.top-bar {
    width: 100%;
    height: 40px;
    background: #9b3f8c;
    color: #fff;
    overflow: hidden;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

header {
    top: 40px;
}

.slider {
    position: relative;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

/* SLIDES */

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(100%);
    animation: slideAnimation 48s infinite;
}

    /* 8 SECOND DELAY BETWEEN EACH */

    .slide:nth-child(1) {
        animation-delay: 0s;
    }

    .slide:nth-child(2) {
        animation-delay: 8s;
    }

    .slide:nth-child(3) {
        animation-delay: 16s;
    }

    .slide:nth-child(4) {
        animation-delay: 24s;
    }

    .slide:nth-child(5) {
        animation-delay: 32s;
    }

    .slide:nth-child(6) {
        animation-delay: 40s;
    }

/* SMOOTH SLIDE */

@keyframes slideAnimation {
    /* hidden right */
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    /* slide enters */
    4% {
        opacity: 1;
        transform: translateX(0);
    }
    /* fully visible */
    16% {
        opacity: 1;
        transform: translateX(0);
    }
    /* exit faster */
    20% {
        opacity: 0;
        transform: translateX(-100%);
    }
    /* stay hidden */
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* TEXT STYLING */

.slide p {
    margin: 0;
}

.italic-text {
    font-style: italic;
}

.highlight-link {
    color: #fff;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    display: inline-block;
}
    .highlight-link:hover {
        text-decoration: underline !important;
        color: #fff;
    }


.highlight-link-signup {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    display: inline-block;
}

    .highlight-link-signup:hover {
        text-decoration: underline !important;
        color: #fff;
    }



.promo-code {
    font-weight: bold;
}

/* MOBILE */

@media(max-width:768px) {

    .top-bar {
        min-height: 75px;
    }

    header {
        top: 75px!important;
    }

    .slide {
        font-size: 13px;
        padding: 0 15px;
    }
    .top-bar p {
        font-size: 12px;
    }
}

video {
    width: 100%;
    height: auto;
    display: block;
}
