/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2013 Adobe System Incorporated
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:

 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
 #home{
    top: 55px;

    z-index: 50;
    @include cache;

    .move-container {
        float: left;
        position: relative;
        height: 100%;

        @include cache;

        @include mqWidth(0, 900) {
            width: 100%;
            height: auto;
        }
    }
}

.home-item {
    float: left;
    position: relative;
    width: 33.33%;
    height: 100%;

    @include cache;

    .text {
        position: absolute;
        top: 50%;
        width: 100%;
        margin-top: -40px;

        font-family: 'league-gothic-condensed', 'Arial Narrow', sans-serif;
        font-weight: 400;
        font-size: 160px;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: -2px;
        line-height: 85px;

        &:before {
            position: absolute;
            content: 'by';
            margin-left: -37px;
            margin-top: -56px;
            font-family: 'source-sans-pro', Helvetica, Arial, sans-serif;
            font-weight: 100;
            font-size: 30px;
            font-style: italic;
            text-transform: none;
        }
    }

    .arrow {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 50px;
        height: 50px;
        margin-left: -25px;

        &:before {
            position: absolute;
            content: '';
            width: 44px;
            height: 44px;
            border-radius: 50px;
            border: 3px solid rgba(0,0,0,.1);

            opacity: 0;

            @include transition(opacity .3s linear .6s);
        }

        opacity: 0;

        @include ui-asset(0, 0);

        &.front {
            margin-top: -150px;
            background-position: 0 -191px;
            @include transform(translate3d(0, 20px, 0));
        }

        &.end {
            margin-top: 100px;
            background-position: -56px -191px;
            @include transform(translate3d(0, -20px, 0));
        }

        &.animate {
            @include transformTransition(.3s ease-in-out .2s, opacity .3s linear .2s);
        }

        &.show {

            opacity: 1;

            &:before {
                opacity: 1;
            }

            &.front, &.end {
                @include transform(translate3d(0, 0, 0));
            }
        }
    }



    &.home-item-schedule .arrow.animate{
        @include transformTransition(.3s ease-in-out, opacity .3s linear);

        &:before {
            @include transition(opacity .3s linear .4s);
        }
    }


    @include mqWidth(901, 1050) {
        .text {
            font-size: 140px;

            &:before {
                font-size: 24px;
                margin-left: -26px;
                margin-top: -52px;
            }
        }
        .arrow {
            &.front {
                margin-top: -130px;
            }

            &.end {
                margin-top: 80px;
            }
        }
    }

    @include mqWidth(0, 900) {
        width: 100%;
        height: 33.33%;

        .arrow {

            &.front {
                margin-left: -240px;
                margin-top: -25px;
                background-position: 0 -242px;
                @include transform(translate3d(20px, 0, 0));
            }

            &.end {
                margin-left: 190px;
                margin-top: -25px;
                background-position: -56px -242px;
                @include transform(translate3d(-20px, 0, 0));
            }
        }
    }


    @include mqWidth(0, 479) {

        .text {
            font-size: 120px;

            &:before {
                font-size: 24px;
                margin-left: -26px;
                margin-top: -52px;
            }
        }

        .arrow {

            &.front {
                margin-left: -180px;
            }

            &.end {
                margin-left: 130px;
            }
        }

    }

    @include mqHeight(0, 479) {
        .text {
            font-size: 110px;

            &:before {
                font-size: 20px;
                margin-left: -26px;
                margin-top: -40px;
            }
        }

    }

}
