/*  
 *  Bill Package SB 869
 * 
 *
 */

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700,900&display=swap');

:root {
    --primary-869: #2C2F75;
    --accent-869: #F1E5C8;
    --body-font-869: "Montserrat", san-serif;
    --link-weight-869: 600;
    --border-869: 1px solid #e9e9e9;
    --transition: all 0.2s ease;
}


/* Navigation
*************************/
.page-node-382 #header {
    background: var(--primary-color) !important;
}  

.page-node-382 .navbar-expand-lg {
    background: var(--primary-color) !important;
    height: 100px;
    visibility: visible !important;
}

/* Start */
.page-node-382 {
    background: white;
    color: black;
  

/* Typography
*************************/
h1 {
    font-family: var(--body-font-869);
    font-size: 4.8rem;
    letter-spacing: 0px;
    font-weight: var(--link-weight);
    text-transform: uppercase;
    margin: 0px auto 0px;
}

h2 {
    color: black;
    font-family: var(--body-font-869);
    font-size: 4rem !important;
    letter-spacing: 0px;
    font-weight: var(--link-weight-869);
    text-transform: none !important;
}

h3 {
    font-family: var(--body-font-869) !important;
    font-size: 2.4rem !important;
    font-weight: var(--link-weight-869) !important;
    letter-spacing: 0px;
    text-transform: uppercase;
    span {
        background: var(--primary-869);
        color: white;
        padding: 6px 14px;
        border-radius: 50px;
    }
}


a {
    font-family: var(--body-font-869);
    font-weight: var(--link-weight);
    text-decoration: none;
}

a:hover {
    color: var(--accent-869) !important;
}


/* Hero Slider
*************************/
.featured-top,
.highlighted, 
.featured-bottom {
    background: white;
}

#main-wrapper {
    display: none;
}

.featured-top {
    .featured-top__inner {
        padding: 160px 0px;
        .hero-container {
            background: var(--accent-869);
            height: 600px;
            max-width: 1200px;
            margin: 0px auto;
            border-radius: 50px;
            overflow: hidden;
            .hero-wrapper {
                background: url(/sites/sd39.senate.ca.gov/files/website/sb869/sb869_bg_top.png) no-repeat;
                background-position: 50% -18%;
                background-size: 140%;
                .hero-items {
                    display: flex;
                    width: 400%;
                    animation: slide 18s;
                    animation-delay: 0.5s; 
                    .hero-item {
                        width: calc(100% / 4);
                        height: 100%;
                        img {
                            max-width: 480px;
                        }
                    }
                }
                &:before {
                    content: '';
                    position: absolute;
                    top: 68px;
                    left: 50%;
                    transform: translateX(-50%);
                    background: url(/sites/sd39.senate.ca.gov/files/website/sb869/sb869_logo.png) no-repeat;
                    background-size: contain;
                    width: 400px;
                    height: 400px;
                    z-index: 10;
                }
                &:after {
                    content: '#RethinkTheDrink';
                    position: absolute;
                    bottom: -40px;
                    left: 50%;
                    transform: translateX(-50%);
                    background: var(--primary-869);
                    color: white;
                    width: 480px;
                    height: -40px;
                    padding: 20px;
                    font-family: var(--body-font);
                    font-size: 4rem;
                    letter-spacing: 0px;
                    font-weight: var(--link-weight-869);
                    text-transform: capitalize;
                    border-radius: 50px;
                }
            }
        }
    }
}

.highlighted {
    max-width: 1200px;
    padding: 160px 80px;
    #text {
        #text-container h2 { 
            line-height: 1.5;
            span:first-child {
                position: relative;
                top: -4px;
                background: var(--primary-869);
                color: white;
                font-family: var(--body-font);
                font-size: 2.4rem !important;
                font-weight: var(--link-weight-869);
                letter-spacing: 0px;
                text-transform: uppercase;
                margin-right: 8px;
                padding: 6px 6px 6px 14px;
                border-radius: 50px;
                opacity: 1 !important;
            }
            span:nth-child(2),
            span:nth-child(3),
            span:nth-child(17),
            span:nth-child(18),
            span:nth-child(28),
            span:nth-child(29) {
                color: var(--primary-869);
                font-weight: var(--head-weight);
            }
        }
    }
}

.featured-bottom {
    max-width: 1200px !important;
    padding: 160px 0px !important;
    .tagline-container {
        .text-box {
            display: flex;
            position: relative;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 320px;
            h2 {
                color: var(--primary-869);
            }
        }
    }
    .problem-container {
        padding: 160px 0px 0px;
        p,li {
            color: black !important;
        }
        .problem-wrapper {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 40px;
            border: var(--border-869);
            border-radius: 50px;
            h3 {
                text-align: center;
                margin: 0px auto 20px;
            }
        }
    }
    .sugar-container {
        padding: 160px 0px 0px;
        p,li {
            color: black !important;
        }
        .sugar-wrapper {
            padding: 40px;
            h3 {
                text-align: center;
                margin: 0px auto 20px;
            }
            .sugar-row {
                .sugar-item {
                    position: relative;
                    height: 100%;
                    padding: 20px;
                    text-align: center;
                    border: var(--border-869);
                    border-radius: 50px;
                    img {
                        position: relative;
                        width: 100%;
                        height: auto;
                        z-index: 10;
                    }
                    &:before {
                        content: '';
                        position: absolute;
                        top: 40px;
                        left: 50%;
                        transform: translateX(-50%);
                        background: var(--primary-869);
                        width: 200px;
                        height: 200px;
                        border-radius: 50%;
                        opacity: 0.5;
                    }
                }
                &>*:first-child .sugar-item {
                    img {
                        max-width: calc(160px / 1.25);
                    }
                    &:before {
                        background: green;
                    }
                }
                &>*:nth-child(2) .sugar-item {
                    img {
                        top: -12px;
                        max-width: calc(200px / 1.25);
                    }
                    &:before {
                        background: orange;
                    }
                }
                &>*:nth-child(3) .sugar-item {
                    img {
                        top: 26px;
                        max-width: calc(160px / 1.25);
                    }
                    &:before {
                        background: red;
                    }
                }
                &>*:last-child .sugar-item {
                    img {
                        top: 12px;                       
                        max-width: calc(120px / 1.25);
                    }
                    &:before {
                        background: maroon;
                    }
                }
            }
        }
    }
}

.featured-bg {

}



















/* End */    
}

@keyframes slide {
    0% { transform: translateX(0); }
    5% { transform: translateX(100px); }
    25% { transform: translateX(-25%); }
    30% { transform: translateX(calc(-25% + 100px)); }
    50% { transform: translateX(-50%); }
    55% { transform: translateX(calc(-50% + 100px)); }
    75%,100% { transform: translateX(-75%); }
}