///////////////////////////////////////////////////////////////
// Device: Desktop
///////////////////////////////////////////////////////////////

.mea1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 480px;
    width: 100%;
    overflow: hidden;
    position: relative;

    picture {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 480px;
        overflow: hidden;
        z-index: -1;

        img {
            position: absolute;
        }

        @media screen and (max-width: 481px) {
            img {
                margin-left: -240px;
                left: 50%;
            }
        }
        @media screen and (min-width: 481px) {
            img {
                left: 50%;
                margin-left: -512px;
                height: 100%;
            }
        }
        @media screen and (min-width: 1025px) {
            img {
                width: 100%;
                height: auto;
                margin-left: 0;
                left: 0;
            }
        }
    }
}

.mea1-mov {
    background: none;
    position: relative;
}

.mea1-title {
    color: #FFFFFF;
    font-family: 'lucien-light';
    font-weight: normal;
    font-size: 4em;
    margin: 0;
    text-align: center;
}

.mea1-subtitle {
    color: #FFFFFF;
    font-family: lucien-regular, Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 1.6em;
    margin: 0;
    text-align: center;
}

#mea1-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background: url('../img/layout/mea1.jpg') no-repeat;
    background-size: cover;
    transition: 1s opacity;
}

.mea1-icon-sound {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 200ms linear;

    svg {
        fill: white;
    }

    &:hover {
        background-color: white;
        svg {
            fill: black;
        }
    }
}

.mea1-icon-sound.is-on
{
    .mea1-icon-sound-symbol--on
    {
        display: inline;
    }
    .mea1-icon-sound-symbol--off
    {
        display: none;
    }
}

.mea1-icon-sound-symbol--on
{
    display: none;
}

/* LOCAL */
.mea1-local {
    /*background: url('../img/layout/mea1-local.jpg') center center no-repeat;
    background-size: cover;*/
    position: relative;

    .button-white {
        padding: 20px 40px;
        &:hover {
            padding: 20px 40px;
        }
    }

    picture {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 480px;
        overflow: hidden;
        z-index: -1;

        img {
            position: absolute;
        }

        @media screen and (max-width: 481px) {
            img {
                margin-left: -240px;
                left: 50%;
            }
        }
        @media screen and (min-width: 481px) {
            img {
                left: 50%;
                margin-left: -512px;
                height: 100%;
            }
        }
        @media screen and (min-width: 1025px) {
            img {
                width: 100%;
                height: auto;
                margin-left: 0;
                left: 0;
            }
        }
    }
}

.mea1-subtitle-local {
    margin: 10px 0 65px 0;
}

.mea1-local-first-visit {

    @include clearfix;
}

.mea1-local-first-visit-content {
    position: relative;
    @include span-columns(6);
    @include shift(3);
}

.mea1-local-first-visit-tokens {
    $tokenswidth: 152px;
    background: url('../img/layout/home-local-tokens.jpg') center center no-repeat;
    background-size: cover;
    width: $tokenswidth;
    height: 158px;
    position: absolute;
    left: 50%;
    margin-left: - $tokenswidth / 2;
    top: 0;
    z-index: -1;
    display: none;
}

.mea1-local-first-visit-txt {
    float: left;
    display: inline-block;
    margin: 78px 0 45px 0;
}

.mea1-local-first-visit-title {
    text-transform: uppercase;
    color: $color-golden;
    font-size: 1.8em;
}

.mea1-local-first-visit-subtitle {
    color: $color-golden;
    font-size: 0.8em;
}

.mea1-local-first-visit-button {
    float: right;
    display: inline-block;
    margin: 70px 0 45px 0;
}

/* LOCAL JACKPOT */

.mea1-jackpot {
    width: 100%;
    position: absolute;
    bottom: 0;
    background: url('../img/layout/jackpot-bokeh-3.png') rgba(0, 0, 0, 0.5) no-repeat;
    padding: 10px 0 10px 0;
    left: 0;

    .countup {
        display: inline-block;
        text-align: right;
    }
}

.mea1-jackpot-wrapper {
    @include span-columns(10);
    @include shift(1);
}

.mea1-jackpot-now {
    display: inline-block;
    text-align: center;
    width: 20%;
}

.mea1-jackpot-now-sum {
    color: white;
    font-size: 2vw;
    line-height: 1em;
    font-family: "lucien-book";
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

.mea1-jackpot-now-sum.is-blurred
{
    filter: blur(1.5px);
}

.mea1-jackpot-now-label {
    color: $color-golden;
    font-size: 0.9em;
    font-family: "lucien-regular";
}

.mea1-jackpot-car {
    display: inline-block;
    width: 78%;
}

.mea1-jackpot-car-item {
    display: inline-block;
    text-align: center;
    border-left: 1px solid $color-grey-border-light;
    width: 33%;
}

.mea1-jackpot-car-item-date {
    font-size: 0.80em;
    line-height: 2em;
    color: white;
}

.mea1-jackpot-car-item-sum {
    transition: all 0.2s ease;
    display: inline-block;
    color: $color-golden;
    font-size: 1vw;
}

.mea1-jackpot-car-item-sum.is-blurred
{
    filter: blur(1.5px);
}

.mea1-jackpot-car-item-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 1vw;
    color: $color-grey-light;
}

///////////////////////////////////////////////////////////////
// Device: Desktop XL
///////////////////////////////////////////////////////////////

@include desktop-xl {
    .mea1-local-first-visit-tokens {
        display: block;
    }
    .mea1-jackpot-now-sum {
        font-size: 2em;
    }
    .mea1-jackpot-car-item {
        width: 32%;
    }
    .mea1-jackpot-car-item-sum {
        font-size: 1.2em;
    }
    .mea1-jackpot-car-item-label {
        font-size: 1em;
    }
}

///////////////////////////////////////////////////////////////
// Device: Tablet
///////////////////////////////////////////////////////////////

@include tablet-landscape-and-below {
    .mea1-title
    {
        font-size: 3em;
    }
    .mea1-subtitle
    {
        font-size: 1.2em;
    }
    #mea1-video {
        display: none;
    }
    .mea1-mov {
        background: url('../img/layout/mea1.jpg') no-repeat center center;
        background-size: cover;
        position: inherit;
    }
    .mea1-local-first-visit-txt {
        float: none;
        width: 100%;
        margin: 78px 0 0 0;
        text-align: center;
    }
    .mea1-local-first-visit-button {
        float: none;
        width: 100%;
        margin: 50px 0 45px 0;
    }

    /* JACKPOT */
    .mea1-jackpot-wrapper {
        width: 100%;
        margin-left: 0;
    }
    .mea1-jackpot-now {
        border-right: 1px solid $color-grey-border-light;
    }

    .mea1-jackpot-car-item {
        width: 100%;
        border: none;
    }

    .mea1-jackpot-now {
        width: 40%;
        padding-right: 20px;
    }
    .mea1-jackpot-car {
        width: 59%;
    }

    .mea1-jackpot-now-sum {
        font-size: 3vw;
    }

    .mea1-jackpot-car-item-label {
        font-size: 1em;
    }

    .mea1-jackpot-car-item-sum {
        font-size: 1.2em;
    }
}

///////////////////////////////////////////////////////////////
// Device: Tablet :: PORTRAIT
///////////////////////////////////////////////////////////////

@include tablet-portrait-and-below {
    .mea1-jackpot-car-item-date {
        font-size: 0.80em;
    }

    .mea1-title  {
        font-size: 3em;
    }
    .mea1-subtitle  {
        font-size: 1.2em;
    }
}

///////////////////////////////////////////////////////////////
// Device: Mobile
///////////////////////////////////////////////////////////////

@include mobile-landscape-and-below {
    .mea1-local-first-visit-content {
        @include span-columns(10);
        @include shift(1);
    }

    .mea1-title {
        font-size: 2.7em;
    }
    .mea1-subtitle {
        font-size: 1.2em;
    }

    .mea1-subtitle-local {
        margin-bottom: 30px;
    }
    .mea1-jackpot-car {
        width: 56%;
    }
    .mea1-jackpot-car-item {
        line-height: 1em;
        margin-top: 4px;
    }
    .mea1-jackpot-car-item-label {
        font-size: 0.8em;
    }

    .mea1-jackpot-car-item-sum {
        font-size: 1em;
    }

    .mea1-jackpot-car-item-date {
        font-size: 0.75em;
    }

    .mea1-jackpot-now-sum {
        font-size: 4vw;
    }
}
