﻿/* hero-carousel
------------------------- */

.hero-carousel {
    margin-bottom: 80px;
    background-size: cover;
}

.hero-carousel__cell {
    width: 100%;
    height: 240px;
    color: white;
    background: #ED2;
    background: #EFCE36; /* match gif */
}

.hero-carousel__cell__content {
    margin: 0 auto;
    position: relative;
}

.hero-carousel h1 {
    font-size: 3.2rem;
    line-height: 1.0;
    margin: 0;
    padding-top: 40px;
}

.hero-carousel .tagline {
    font-size: 1.4rem;
    line-height: 1.0;
    margin: 0 0 0.5rem;
    color: #444;
}

.hero-illustration {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.hero-carousel__cell--2 {
    background: #8C8;
}

.slogan {
    line-height: 1.2;
    margin: 0;
}

.slogan--easy,
.slogan--fun {
    font-size: 2.2rem;
    line-height: 1.1;
}

.slogan--tagline {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #444;
}

.feature-list {
    font-size: 1.8rem;
    list-style: none;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

    .feature-list li {
        margin-bottom: 10px;
    }

.hero-carousel__cell--3 {
    background: #E90;
}

.hero-carousel__cell--4 {
    background: #E5A;
}

.by-line {
    line-height: 1.2;
    margin: 0;
    font-size: 1.8rem;
}

.by-line--made {
    padding-top: 20px;
    margin-bottom: 10px;
    color: #444;
}

@media screen and ( max-width: 500px ) {
    /* hide first cell content on small devices */
    .hero-carousel h1,
    .hero-carousel .tagline,
    .hero-carousel .gh-button {
        display: none;
    }
}

@media screen and ( min-width: 500px ) {
    .hero-carousel__cell--1 .hero-carousel__cell__content {
        padding-right: 260px;
    }

    .hero-illustration {
        position: absolute;
        right: 60px;
        top: 20px;
    }
}

/* ---- large device styles ---- */

@media screen and ( min-width: 768px ) {

    .hero-carousel__cell {
        height: 100%;
    }


    .hero-carousel h1 {
        font-size: 5.8rem;
    }

    .hero-carousel .tagline {
        font-size: 2.1rem;
    }

    .hero-illustration {
        top: 80px;
    }

    .slogan--easy,
    .slogan--fun {
        font-size: 4.8rem;
    }

    .slogan--tagline {
        margin-top: 20px;
        font-size: 2.4rem;
    }

    .feature-list {
        font-size: 3.1rem;
    }

        .feature-list li {
            margin-bottom: 20px;
        }

    .by-line {
        font-size: 3.1rem;
    }

    .by-line--made {
        padding-top: 40px;
        margin-bottom: 20px;
    }
}

@media screen and ( min-width: 960px ) {

    .hero-carousel__cell--1 .hero-carousel__cell__content {
        padding-right: 400px;
    }

    .hero-carousel h1 {
        font-size: 7.8rem;
    }

    .hero-carousel .tagline {
        margin-bottom: 1.0rem;
    }

    .hero-illustration {
        max-width: 400px;
        top: 20px
    }
}

/* in-use-carousel
------------------------- */


.flickity-enabled {
    position: relative;
}

    .flickity-enabled:focus {
        outline: none;
    }

.flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 570px;
}

.flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .flickity-enabled.is-draggable .flickity-viewport {
        cursor: move;
        cursor: -webkit-grab;
        cursor: grab;
    }

        .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
            cursor: -webkit-grabbing;
            cursor: grabbing;
        }

/* ---- flickity-button ---- */

.flickity-button {
    position: absolute;
    background: hsla(0, 0%, 100%, 0.75);
    border: none;
    color: #333;
}

    .flickity-button:hover {
        background: white;
        cursor: pointer;
    }

    .flickity-button:focus {
        outline: none;
        box-shadow: 0 0 0 5px #19F;
    }

    .flickity-button:active {
        opacity: 0.6;
    }

    .flickity-button:disabled {
        opacity: 0.3;
        cursor: auto;
        /* prevent disabled button from capturing pointer up event. #716 */
        pointer-events: none;
    }

.flickity-button-icon {
    fill: currentColor;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* vertically center */
    transform: translateY(-50%);
}

    .flickity-prev-next-button.previous {
        left: 10px;
    }

    .flickity-prev-next-button.next {
        right: 10px;
    }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
    left: auto;
    right: 10px;
}

.flickity-rtl .flickity-prev-next-button.next {
    right: auto;
    left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
}

/* ---- page dots ---- */

.flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -25px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.flickity-rtl .flickity-page-dots {
    direction: rtl;
}

.flickity-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    background: #333;
    border-radius: 50%;
    opacity: 0.25;
    cursor: pointer;
}

    .flickity-page-dots .dot.is-selected {
        opacity: 1;
    }

/* Flickity fullscreen v1.0.1
------------------------- */

.flickity-enabled.is-fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.9);
    padding-bottom: 35px;
    z-index: 1;
}

    .flickity-enabled.is-fullscreen .flickity-page-dots {
        bottom: 10px;
    }

        .flickity-enabled.is-fullscreen .flickity-page-dots .dot {
            background: white;
        }

/* prevent page scrolling when flickity is fullscreen */
html.is-flickity-fullscreen {
    overflow: hidden;
}

/* ---- flickity-fullscreen-button ---- */

.flickity-fullscreen-button {
    display: block;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* right-to-left */
.flickity-rtl .flickity-fullscreen-button {
    right: auto;
    left: 10px;
}

.flickity-fullscreen-button-exit {
    display: none;
}

.flickity-enabled.is-fullscreen .flickity-fullscreen-button-exit {
    display: block;
}

.flickity-enabled.is-fullscreen .flickity-fullscreen-button-view {
    display: none;
}

.flickity-fullscreen-button .flickity-button-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    left: 4px;
    top: 4px;
}

/* flickity-fade */

.flickity-enabled.is-fade .flickity-slider > * {
    pointer-events: none;
    z-index: 0;
}

.flickity-enabled.is-fade .flickity-slider > .is-selected {
    pointer-events: auto;
    z-index: 1;
}
