@import "_theme.scss";

.animated-slider {

    * {
    outline: none;
    }

    .wrapper {
    max-width: 1335px;
    box-sizing: border-box;
    padding: 0 20px;
    margin: auto;
    }

    .wrapper a {
    display: inline-block;
    margin: 5px;
    }

    .wrapper a:first-child {
    margin-left: 0;
    }

    .slider-wrapper {
    position: relative;
    height: var(--carousel-height-desktop);
    overflow: hidden;
    }

    .slide {
    height: var(--carousel-height-desktop);
    background-size: cover !important;
    }

    .slide::before {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        bottom: 0;
        left: 0;
    }

    .previousButton, .nextButton {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            //background: url('http://svgshare.com/i/41_.svg') no-repeat center center / 16px;
            background: url('../assets/images/navigate_right.png') no-repeat center center / 16px;
            width: 32px;
            height: 32px;
            text-indent: -9999px;
            cursor: pointer;
    }

    .previousButton:hover, .nextButton:hover {
    background: url('../assets/images/navigate_right2.png') no-repeat center center / 16px;
    }

    .previousButton {
    left: 10px;
    -webkit-transform: rotate(180deg) translateY(calc(50% + 0px));
            transform: rotate(180deg) translateY(calc(50% + 0px));
    }

    .nextButton {
    right: 10px;
    }

    .slider-content {
    text-align: center;
    }

    .slider-content .inner {
    padding: 0 70px;
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    }

    .slider-content .inner button{
    -webkit-transition-delay: 0s;
            transition-delay: 0s;
    }

    .slider-content .inner h1 {
    font-weight: 400;
    margin: 0 auto;
    max-width: 840px;
    //font-size: 64px;
    font-size: var(--text-size-h1);
    line-height: 1;
    padding: 20px;
    }

    .slider-content .inner p {
    //font-size: 24px;
    font-size: var(--text-size-h3);
    line-height: 1.5;
    margin: 20px auto 30px;
    max-width: 640px;
    }
    .banner1 {
    color: var(--text-color-carousel);
    }
    .banner2 {
    color: var(--text-color-carousel2);
    }
    .banner3 {
    color: var(--text-color-carousel3);
    }

    .slider-content section {
    position: absolute;
    bottom: 20px;
    left: 20px;
    }

    .slider-content section span {
    color: #FFFFFF;
    }

    .slider-content section span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    display: inline-block;
    text-align: left;
    line-height: 1.4;
    vertical-align: middle;
    margin-left: 10px;
    }

    .slider-content section img {
    width: 40px;
    height: 40px;
    border: solid 2px rgba(255, 255, 255, 0.5);
    border-radius: 100%;
    vertical-align: middle;
    }

    .slider-content section span strong {
    color: #FFFFFF;
    font-size: 14px;
    display: block;
    }

    // @media (max-height: 500px) {
    // .slider-wrapper, .slide {
    //     height: calc(100vh - 75px);
    // }    
    // }

    // @media (max-width: 640px) {
    // .slider-wrapper, .slide {
    //     height: calc(80vh - 75px);
    // }    
    // }

    // @media (max-height: 600px) {
    // .slider-content .inner h1 {
    //     font-size: 32px;
    // }    
    // }

    // @media (max-width: 640px) {
    // .slider-content .inner h1 {
    //     font-size: 32px;
    // }
    // }
    .slide h1 {
        transition: all 0.3s ease;
        -webkit-transform: translateY(-20px);
                        transform: translateY(-20px);
        opacity: 0;
    }

    .slide button {
        transition: all 0.3s ease;
        -webkit-transform: translateY(20px);
                        transform: translateY(20px);
        opacity: 0;
    }

    .slide p {
        transition: all 0.3s ease;
        -webkit-transform: translateY(20px);
                        transform: translateY(20px);
        opacity: 0;
    }

    .slide section * {
        transition: all 0.3s ease;
    }

    .slide section img {
        -webkit-transform: translateX(-10px);
                        transform: translateX(-10px);
        opacity: 0;
    }

    .slide section span {
        -webkit-transform: translateY(-10px);
                        transform: translateY(-10px);
        opacity: 0;
    }

    .slide section span strong {
        -webkit-transform: translateY(10px);
                        transform: translateY(10px);
        opacity: 0;
    }

    .slide.animateIn.previous h1,
    .slide.current h1,
    .slide.animateIn.next h1,
    .slide.animateIn.previous button,
    .slide.current button,
    .slide.animateIn.next button,
    .slide.animateIn.previous p,
    .slide.current p,
    .slide.animateIn.next p,
    .slide.animateIn.previous section *,
    .slide.current section *,
    .slide.animateIn.next section * {
        -webkit-transform: translateX(0);
                transform: translateX(0);
        -webkit-transition-delay: .9s;
                        transition-delay: .9s;
                        opacity: 1;
    }

    .slide.animateIn.previous p,
    .slide.animateIn.next p {
        -webkit-transition-delay: 1.1s;
                        transition-delay: 1.1s;
    }

    .slide.animateIn.previous button,
    .slide.animateIn.next button {
        -webkit-transition-delay: 1.3s;
                        transition-delay: 1.3s;
    }

    .slide.animateIn.previous section img,
    .slide.animateIn.next section img {
        -webkit-transition-delay: 1.3s;
                        transition-delay: 1.3s;
    }

    .slide.animateIn.previous section span,
    .slide.animateIn.next section span {
        -webkit-transition-delay: 1.4s;
                        transition-delay: 1.4s;
    }

    .slide.animateIn.previous section span strong,
    .slide.animateIn.next section span strong {
        -webkit-transition-delay: 1.5s;
                        transition-delay: 1.5s;
    }

    .slide.animateOut h1 {
        -webkit-transition-delay: .3s;
                        transition-delay: .3s;
    }

    .slide.animateOut p {
        -webkit-transition-delay: .2s;
                        transition-delay: .2s;
    }

    .slide.animateOut section span {
        -webkit-transition-delay: .1s;
                        transition-delay: .1s;
    }

    .slide.animateOut section span strong {
        -webkit-transition-delay: 0s;
                        transition-delay: 0s;
    }
    .slider {
        position: relative;
        width: 100%;
        //height: 400px;
        overflow: hidden
    }
    
    .slider a.previousButton, .slider a.nextButton {
        font-size: 22px;
        line-height: 0;
        display: block;
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
                transform: translateY(-50%);
        -webkit-transition: all .3s linear;
        transition: all .3s linear;
        z-index: 1;
        color: #333;
        padding: 10px;
        text-decoration: none;
        -webkit-backface-visibility: hidden;
                backface-visibility: hidden
        /* prevent jump effect when scaling */
    }
    
    .slider a.previousButton:not(.disabled):hover, .slider a.nextButton:not(.disabled):hover {
        -webkit-transform: translateY(-50%) scale(1.25);
                transform: translateY(-50%) scale(1.25);
        cursor: pointer;
    }
    
    .slider a.previousButton {
        left: 20px;
    }
    
    .slider a.nextButton {
        right: 20px;
    }
    
    .slide {
        width: 100%;
        height: 100%;
        position: absolute;
        overflow: hidden
    }
    
    .slide.hidden {
        visibility: hidden;
    }
    
    .slide.previous {
        left: -100%;
    }
    
    .slide.current {
        left: 0;
    }
    
    .slide.next {
        left: 100%;
    }
    
    .slide.animateIn,
        .slide.animateOut {
        -webkit-transition: all 2s ease;
        transition: all 2s ease;
    }
    
    .slide.animateIn.previous,
            .slide.animateIn.next {
        left: 0;
        visibility: visible;
    }
    
    .slide.animateOut.previous {
        left: 100%;
    }
    
    .slide.animateOut.next {
        left: -100%;
    }
    
    @media (max-width: $lg) {
        .slider-wrapper, .slide {
            height: var(--carousel-height-mobile);
        }
        .slider-content .inner h1{
          font-size: calc(0.5 * var(--text-size-h1));
        }
    
        .slider-content .inner p{
          font-size: calc(0.7 * var(--text-size-h3));
        }
    
        // .main {
        //   height: var(--carousel-height-mobile);
        //   top: calc(-1 * var(--carousel-height-mobile));
        // }
      }
    
}