/**
 * kads slider v1.0.0
 * Copyright (c) 2018 kads
 * Licensed under MIT
 */
/* 
    Created on : Mar 13, 2018, 10:22:45 PM
    Author     : duy
*/
@import "mixins";
@import "variables";


.kads-i-button {
    display: block;
    width: inherit;
    height: inherit;
    text-align: inherit;
    font-size: inherit;
    text-transform: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background-color: inherit;

    border: 1px solid #fff;
    position: relative;
    @include border-radius(3px);
    padding: 0;
    margin-right: 0;
    @include transition(all .2s ease-out);
    &:hover{
        &:before{
            top: 1px;
            left: 1px;
            content: ' ';
            background: rgba(0,0,0,0.3);
            position: absolute;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
    }
&.green {
        background-color: $color-green !important;
        border-color: darken($color-green,5%) !important; 
        color: #fff;
        &:hover{
            background-color: darken($color-green,10%) !important;
            border-color: darken($color-green,15%) !important; 
            color: #fff !important;
            &:before{
                display: none;
            }
        }
    }
    &.gray {
        background-color: $color-gray !important;
        border-color: darken($color-gray,5%) !important; 
        color: #fff !important;
        &:hover{
            background-color: darken($color-gray,10%) !important;
            border-color: darken($color-gray,15%) !important; 
            color: #fff !important;
            &:before{
                display: none;
            }
        }
    }
    &.blue{
        background-color: $color-blue !important;
        border-color: darken($color-blue,5%) !important; 
        color: #fff !important;
        &:hover{
            background-color: darken($color-blue,10%) !important;
            border-color: darken($color-blue,15%) !important; 
            color: #fff !important;
            &:before{
                display: none;
            }
        }
    }
    &.red{
        background-color: $color-red !important;
        border-color: darken($color-red,5%) !important; 
        color: #fff !important;
        &:hover{
            background-color: darken($color-red,10%) !important;
            border-color: darken($color-red,15%) !important; 
            color: #fff !important;
            &:before{
                display: none;
            }
        }
    }

    &.red-border{
        background-color: transparent !important;
        border-color: darken($color-red,5%) !important; 
        color: #fff !important;
        &:hover{
            background-color: darken($color-red,10%) !important;
            border-color: darken($color-red,15%) !important; 
            color: #fff !important;
            &:before{
                display: none;
            }
        }
    }
}
.kads-slider-item{
    width: 100%;
    overflow: hidden;
    position: relative;
    .kads-scroll-down{
        position: absolute;
        bottom: 40px;
        width: 30px;
        height: 30px;
        text-align: center;
        text-align: center;
        left: 50%;
        color: #fff;
        margin-left: -15px;
        cursor: pointer;
        z-index: 2;
        i{
            font-size: 30px;
            line-height: 30px;
        }
    }
}

.box-images-wraper{
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 100;
    .box-overplay {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: rgba(0,0,0,0.5);
        left: 0;
        top: 0;
    }

    .box-image{
        position: absolute;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        > .bg{
            position: absolute;
            width: 100%;
            left: 0;
            top: 0;
            height: 100%;
            overflow: hidden;
            background-repeat: no-repeat;
            background-size: cover;
            background-position:  center center;

        }
        .mejs-container {
            @include transform(translateX(-50%) translateY(-50%));
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            z-index: -100;
        }
    }
    .layer-container{
        margin: 0 7.6923%;
        position: absolute;
        top: 0;
        height: 100%;
        left: auto;
        right: auto;
        z-index: 2;
        .layer-item{
            position: absolute;
            opacity: 0;
        }
    }
}

.box-images-full-height{
    min-height: 100vh;
}
.kads-slider-wrap{
    overflow: hidden;
    width: 100%;
    .inner-wrap{
        margin-left: -1px;
    }
}
/**
 * Owl Carousel v2.2.0
 * Copyright 2013-2016 David Deutsch
 * Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
 */
/*
 *  Owl Carousel - Core
 */
.owl-carousel {
    display: none;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    /* position relative and z-index fix webkit rendering fonts issue */
    position: relative;
    z-index: 1; 
    .owl-stage {
        position: relative;
        -ms-touch-action: pan-Y; 
        &:after{
            content: ".";
            display: block;
            clear: both;
            visibility: hidden;
            line-height: 0;
            height: 0; 
        }
    }
    .owl-stage-outer {
        position: relative;
        overflow: hidden;
        /* fix for flashing background */
        -webkit-transform: translate3d(0px, 0px, 0px); 
    }
    .owl-wrapper,
    .owl-item {
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0); 
    }
    .owl-item {
        position: relative;
        min-height: 1px;
        float: left;
        -webkit-backface-visibility: hidden;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none; 
        img {
            display: block;
            width: 100%; 
        }
    }
    .owl-nav.disabled,
    .owl-dots.disabled {
        display: none; 
    }
    .owl-nav .owl-prev,
    .owl-nav .owl-next,
    .owl-dot {
        cursor: pointer;
        cursor: hand;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none; 
    }
    &.owl-loaded {
        display: block; 
    }
    &.owl-loading {
        opacity: 0;
        display: block; 
    }
    &.owl-hidden {
        opacity: 0; 
    }
    &.owl-refresh .owl-item {
        visibility: hidden; 
    }
    &.owl-drag .owl-item {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none; 
    }
    &.owl-grab {
        cursor: move;
        cursor: grab; 
    }
    &.owl-rtl {
        direction: rtl; 
    }
    &.owl-rtl .owl-item {
        float: right; 
    }
    /*
     *  Owl Carousel - Animate Plugin
     */
    .animated {
        -webkit-animation-duration: 1000ms;
        animation-duration: 1000ms;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both; 
    }
    .owl-animated-in {
        z-index: 0; 
    }
    .owl-animated-out {
        z-index: 1; 
    }
    .fadeOut {
        -webkit-animation-name: fadeOut;
        animation-name: fadeOut; 
    }
    /*
     * 	Owl Carousel - Lazy Load Plugin
     */
    .owl-item .owl-lazy {
        opacity: 0;
        transition: opacity 400ms ease; 
    }

    .owl-item img.owl-lazy {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d; 
    }
    /*
     * 	Owl Carousel - Video Plugin
     */
    .owl-video-wrapper {
        position: relative;
        height: 100%;
        background: #000; 
    }
    .owl-video-play-icon {
        position: absolute;
        height: 80px;
        width: 80px;
        left: 50%;
        top: 50%;
        margin-left: -40px;
        margin-top: -40px;
        background: url("owl.video.play.png") no-repeat;
        cursor: pointer;
        z-index: 1;
        -webkit-backface-visibility: hidden;
        transition: -webkit-transform 100ms ease;
        transition: transform 100ms ease; 
        &:hover {
            -webkit-transform: scale(1.3, 1.3);
            -ms-transform: scale(1.3, 1.3);
            transform: scale(1.3, 1.3); 
        }
    }
    .owl-video-playing .owl-video-tn,
    .owl-video-playing .owl-video-play-icon {
        display: none; 
    }
    .owl-video-tn {
        opacity: 0;
        height: 100%;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: contain;
        transition: opacity 400ms ease; 
    }
    .owl-video-frame {
        position: relative;
        z-index: 1;
        height: 100%;
        width: 100%; 
    }
    .owl-nav {
        text-align: center;
        -webkit-tap-highlight-color: transparent; 
    }
    .owl-nav [class*='owl-'] {
        color: #FFF;
        font-size: 14px;
        margin: 5px;
        padding: 4px 7px;
        display: inline-block;
        cursor: pointer;
        border-radius: 3px; 
        position: absolute;
        left: 0;
        top: 50%;
        margin-top: -30px;
        i{
            font-size: 50px;
            line-height: 50px;
        }
    }
    .owl-nav [class*='owl-']:hover {
        background: rgba(0,0,0,0.8);;
        *background: #000;
        color: #FFF;
        text-decoration: none; 
    }
    .owl-nav .owl-next{
        left: auto;
        right: 0;
    }
    .owl-nav .disabled {
        opacity: 0.5;
        cursor: default; 
    }
    .owl-nav.disabled + .owl-dots {
        margin-top: 10px; 
    }
    .owl-dots {
        bottom: 0;
        position: absolute;
        width: 100%;
        text-align: center;
        -webkit-tap-highlight-color: transparent; 
        .owl-dot {
            display: inline-block;
            zoom: 1;
            *display: inline; 
            span {
                width: 10px;
                height: 10px;
                margin: 5px 7px;
                border: 1px solid #fff;
                background: #6699cc;
                display: block;
                -webkit-backface-visibility: visible;
                transition: opacity 200ms ease;
                border-radius: 30px; 
                @include box-shadow(0px 0px 4px 2px rgba(255,255,255,0.3));
                @include transition(all .2s ease-out);
            }
        }
    }
    .owl-dots .owl-dot.active span, 
    .owl-dots .owl-dot:hover span {
        background: #fff; 
        border: 1px solid #6699cc;
        @include box-shadow(0px 0px 4px 3px rgba(102,153,204,0.4));
    }
}

/*
 * 	Owl Carousel - Auto Height Plugin
 */
.owl-height {
    transition: height 500ms ease-in-out; 
}
/* No Js */
.no-js .owl-carousel {
    display: block; }


@-webkit-keyframes fadeOut {
    0% {
        opacity: 1; }
    100% {
        opacity: 0; } }

@keyframes fadeOut {
    0% {
        opacity: 1; }
    100% {
        opacity: 0; } }
