@import "../variables";
footer {
    display: none;
}

.swiper-container {
    width: 100%;
    padding: 40px;
    padding-bottom: 60px;

}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-wrapper {
    height: calc(100vh - #{$header-height + $header-link-height});
    background: linear-gradient(to right, #424661, #4E6077);
    position: relative;

    //> .container {
    //  height: 100%;
    //}

    .scroll-info {

        position: absolute;
        bottom: 20px;

        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        opacity: 0.5;
        font-size: 10px;
        font-weight: 300;

        img {
            margin-right: 10px;
        }
    }
}


header {
    #menu-button {
        display: block;
    }
    .desktop-links {
        display: none;
    }
}


.pick-feature {
    width: 280px;
    color: white;

    > * {
        padding-left: 30px;

        display: flex;
        align-items: center;
        padding-right: 20px;
    }

    div.feature:last-of-type {
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .feature {
        span {
            flex: 1;
            font-size: 12px;
        }

        .count {
            display: none;
        }

        &.active .count {
            display: inline-block;
        }
    }

    .title {
        background-color: #00C8AD;
        color: white;
        font-size: 12px;
        font-weight: bold;
        height: 40px;
        border-top-right-radius: 10px;
        border-top-left-radius: 10px;
    }

    img {
        margin-right: 10px;
        width: 18px;
    }

    .feature {
        height: 44px;
        font-weight: 300;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-top: none;
        cursor: pointer;
        user-select: none;

        &.last-shit {
            border-bottom-right-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        &.active {
            background-color: rgba(236, 241, 245, 0.2);
        }

    }
}


.demo {
    display: none;

    &.active {
        display: flex;
    }

    img {
        display: inline-block;
        max-width: 100%;
    }

    > .preview {
        flex: 1;
        position: relative;
    }
}


.desktop-demo .pick-feature {
    margin-right: 80px;
    padding-top: 20px;
}

.mobile-demo .pick-feature {
    padding-top: 20px;
}

.preview-picker {
    position: fixed;
    display: flex;
    justify-content: center;
    right: 10px;
    top: 0;
    bottom: 0;
    flex-direction: column;

    div {
        height: 14px;
        width: 14px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.5);
        margin: 6px 0;
        cursor: pointer;

        &.active {
            background-color: rgba(255, 255, 255, 0.5)
        }
    }
}


.demo .preview .feature {
    display: none;

    &.active {
        display: block;

        .preview.active {
            display: block;
        }
    }

    .preview {
        display: none;
        position: relative;
    }
}

.desktop-demo {
    padding-top: 110px;

    .preview .preview > img {
        display: block;
        margin-bottom: -2px;
        border-radius: 8px;
        /*box-shadow: 0 1px 3px rgba(255,255,255,0.12), 0 1px 2px rgba(255,255,255,0.24);*/
        box-shadow: 0 3px 6px rgba(255, 255, 255, 0.08), 0 3px 6px rgba(255, 255, 255, 0.1);
        background-image: url("../../img/demo/browser-bar.svg");
        background-repeat: no-repeat;
        background-size: contain;
        padding-top: 22px;
        background-color: #f3efef;
    }


}

.about {
    position: absolute;
    top: 40%;
    width: 320px;

    margin: auto;
    right: -100px;
    background-color: #8593A3;
    color: white;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    border-top-left-radius: 0;

    .title {
        font-size: 28px;
        font-weight: bold;
    }

    p {
        font-size: 14px;
        font-weight: 300;
        padding-top: 10px;
        margin-top: 0;
    }

    img {
        width: 24px;
    }

    .ding-dong {
        position: relative;

        > div {
            position: absolute;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background-color: white;
            border: 6px #00C8AD solid;
            left: -42px;
            top: -30px;
        }
    }
}


.flip-buttons {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.3);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 18px + $header-link-height;
    z-index: 1001;
    display: flex;
    overflow: hidden;

    button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        background-color: transparent;
        height: 48px;
        width: 180px;
        color: rgba(255, 255, 255, 0.3);

        &.active {
            color: white;
            background-color: rgba(255, 255, 255, 0.3);
        }

        i {
            font-size: 18px;
            margin-right: 6px;
        }
    }
}


.mobile-demo {
    display: none;

    height: 100%;
    padding-top: 110px;

    &.active {
        display: flex;
    }

    .mobile-preview {
        display: flex;
        align-items: center;
        padding-left: 100px;
    }


    .about {
        right: auto;
        left: 340px;
        z-index: 3;
    }

    .iphone {
        height: 600px;
        width: 272px;
        position: relative;

        padding-top: 8px;
        padding-left: 8px;
        padding-right: 8px;

        .frame {
            background-image: url("../../img/demo/phone-frame.png");
            background-repeat: no-repeat;
            background-size: contain;
            position: absolute;
            z-index: 2;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
        }

        .fader {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, #50647B, rgba(80, 100, 123, 0));
            height: 45px;
        }

        img {
            border-radius: 10px;
        }
    }
}


.shield-box {
    text-align: center;
    margin-top: -48px;
    padding-bottom: 10px;

    img {
        margin-bottom: -5px;
        margin-right: 5px;
    }

    strong:first-of-type {
        font-weight: bold;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 29px;
        opacity: 0.4;
    }

    strong:last-of-type {
        font-size: 16px;
        line-height: 28px;
        color: white;
        opacity: 0.4;
        font-weight: 300;
    }
}


.col-icon {
    padding: 0;
    margin-top: 30px;
}

.shield-mob {
    position: absolute;
    left: 170px;
}


.swipe-part {
    display: none;
}

.demo-img {
    position: absolute;
    top: 100px;
    left: 200px;
}

.demo-img-2 {
    position: absolute;
    bottom: 0;
    left: 100px;
}

header > nav {
    box-shadow: none;
}

@media (max-width: 1280px) {
    .desktop-demo .about {
        right: -20px;
    }
}

@media (max-width: 1199px) {

    .mobile-demo {
        .iphone {
            width: 270px;
            height: 600px;
            //background-size: 100%;
            //padding-left: 16px;
            //padding-top: 67px;

            //img {
            //  width: 238px;
            //}
        }

        .about {
            padding-right: 12px;

            .title {
                font-size: 28px;

                img {
                    height: 32px;
                    margin-bottom: -8px;
                }
            }

            p {
                font-size: 14px;
            }
        }
    }

    .flip-buttons {
        left: 40%;
    }
}

@media (min-width: 992px) and (max-height: 800px) {
    .mobile-demo .iphone {
        transform: scale(0.8);
    }
    .shield-mob {
        margin-top: 0;
        top: 10px;
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    @keyframes greenDing {
        0% {
            transform: translateY(0);
        }
        30% {
            transform: translateY(-14px);
        }
        50% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(0);
        }
    }

    //.demo-wrapper > .container {
    //  height: calc(100%- 36px);
    //}

    .btn-nav .button-one {
        margin-right: 32px;
    }

    .flip-buttons {
        position: relative;
        width: 300px;
        font-size: 12px;
        margin: 20px auto 0;
        left: 0;
        top: 0;
        transform: none;
        height: 36px;
        min-height: 36px;

        button {
            height: 36px;
            display: flex;
            min-height: 36px;
            width: auto;
            flex: 1;
        }
    }

    .demo-wrapper .demo, .demo-wrapper .demo.active {
        display: none;
    }

    .swipe-part.active {
        display: block;
        position: relative;
        overflow: hidden;
        height: 100%;

    }

    .demo-wrapper .scroll-info {
        display: none;
    }

    .the-slide > img {
        max-width: 100%;
        display: block;
    }

    .swiper-container {
        display: none;
    }

    .swiper-container.active {
        display: block;
    }

    .bottom-sheet {
        position: absolute;
        left: 0;
        right: 0;
        margin: auto;
        top: calc(100% - 40px);
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        overflow: hidden;
        width: 270px;
        z-index: 5;

        animation: greenDing 2s ease 2;
        animation-delay: 3s;

        .title {
            background-color: #00C8AD;
            text-align: center;
            color: white;
            font-weight: bold;
            font-size: 12px;
            height: 40px;
            padding-top: 10px;
        }

        &.active {
            z-index: 1003;
        }
    }


    .demo-wrapper {
        display: flex;
        flex-direction: column;

        .container {
            flex: 1;
        }
    }


    .the-slide {
        text-align: center;
        width: 300px;
        color: white;

        p {
            width: 300px;
        }
    }


    .swipe-app .the-slide > img {
        width: 200px;
        //border-radius: 10px;
        //box-shadow: 0 9px 20px rgba(0, 0, 0, 0.3);
        margin: 0 auto;
        //background-image: url("../../img/demo/iphone-cover.png");
        //background-repeat: no-repeat;
        //background-size: cover;
        //padding: 57px 14px 91px;

    }

    .the-slide {

        .title {
            font-weight: bold;
            font-size: 20px;
            padding-top: 10px;
            padding-bottom: 14px;

            img {
                height: 18px;
                margin-right: 6px;
                margin-bottom: -3px;
            }
        }

        p {
            opacity: 0.8;
            margin: 0;
            font-size: 14px;
            line-height: 20px;
            font-weight: 300;
        }

    }


    .swiper-pagination-bullet {
        border: 1px solid rgba(255, 255, 255, 0.7);
        background: transparent;
    }

    .swiper-pagination-bullet-active {
        background-color: rgba(255, 255, 255, 0.7);
    }

    .bottom-sheet {
        transition: top 0.4s;
        background-color: #50647B;
    }

    .bottom-sheet .sheet-feature {
        padding-left: 30px;
        height: 50px;
        display: flex;
        align-items: center;
        color: white;
        font-size: 14px;
        font-weight: 300;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-top: none;

        &.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        img {
            margin-right: 8px;
        }
    }


    .underlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.05);
        cursor: pointer;
        z-index: 1002;
        transition: all 0.5s;

        &.active {
            display: block;
            background-color: rgba(0, 0, 0, 0.7);
        }
    }


    .swipe-admin .the-slide > img {
        padding-bottom: 60px;
        border-radius: 10px;
    }


}

@media (max-width: 767px) {
    .demo-wrapper {
        height: calc(100vh - 50px);
    }
    .swiper-button-next,
    .swiper-container-rtl .swiper-button-prev {
        right: 0;
    }
    .swiper-button-prev,
    .swiper-container-rtl .swiper-button-next {
        left: 0;
    }
    .swiper-button-prev,
    .swiper-button-next {
        top: 35%;
    }
    .flip-buttons {
        top: 35px
    }

}


@media (max-width: 575px) {

    .demo-wrapper {
        display: block;
    }
    .swipe-app .the-slide > img {
        width: 142px;
        //padding: 40px 10px 66px 9px;
        //background-size: contain;
    }
    .the-slide {
        padding-top: 20px;

        p {
            width: auto;
            line-height: 18px;
            font-size: 12px;
            margin-bottom: 8px;
        }

        .title {
            font-size: 17px;
            padding-top: 6px;
            padding-bottom: 2px;
        }
    }
    .flip-buttons {
        margin-top: 0;

        button {
            height: 100%;
            flex: 1;
            width: auto;


            //display: inline-block;
            //width: 50%;
        }
    }
    .swiper-container {
        padding: 20px;
    }


    .demo-wrapper {
        height: calc(100vh - 50px);
    }

}

@media (max-width: 575px) and (max-height: 590px) {
    .swipe-app .the-slide > img {
        //transform: scale(0.8);
        //margin-bottom: -46px !important;
        //margin-top: -30px !important;
        width: 120px;
    }

    .the-slide {
        padding-top: 4px;


        p {
            margin: 0;
        }
    }

    .swipe-admin .the-slide p {
        margin-bottom: 14px;
    }
}
