﻿.boxLoader {
    height: 100vh;
    width: 100vw;
    /*background-color: #0c0c0c;*/
    /*background: linear-gradient(180deg, rgba(9,0,25,1) 70%, rgba(39,6,70,1) 90%, rgba(36,0,70,1) 100%);*/
    /*background: linear-gradient(180deg, rgba(9,0,25,1) 80%, rgba(39,6,70,1) 90%, rgba(36,0,70,1) 100%);*/
    background: rgb(28,29,50);
    background: linear-gradient(180deg, rgba(28,29,50,1) 30%, rgba(34,27,52,1) 60%, rgba(36,25,51,1) 80%, rgba(41,22,50,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}

    .boxLoader .loadingText {
        font-family: 'Poppins';
        font-size: 3.5rem;
        color: #03e9f4;
        padding-top: 170px;
        text-align: center;
        font-weight: lighter;
    }

    .boxLoader .boxContainer {
        width: 100%;
        transform: rotate(-35deg) translateX(-50px);
    }
        .boxLoader .boxContainer .box {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 160px;
            -webkit-box-reflect: below 1px linear-gradient(transparent, #0c0c0c);
            animation: boxSlide 1.5s ease-in-out infinite
        }

            .boxLoader .boxContainer .box .cube {
                width: 160px;
                height: 160px;
                border-radius: 10px;
                background-color: #03e9f4;
                box-shadow: 0 0 5px rgba(3,233,244,1), 0 0 25px rgba(3,233,244,1), 0 0 50px rgba(3,233,244,1), 0 0 100px rgba(3,233,244,1), 0 0 200px rgba(3,233,244,.5), 0 0 300px rgba(3,233,244,.5);
                transform-origin: bottom right;
                animation: rotate 1.5s ease-in-out infinite;
            }

.slide-up {
    animation: slideUp 1.5s forwards;
}

@keyframes slideUp {
    0% {
        transform:translateY(0);
        opacity:1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes rotate {
    0% {
        transform:rotate(0deg);
    }
    60% {
        transform: rotate(90deg);
    }
    65% {
        transform: rotate(85deg);
    }
    70% {
        transform: rotate(90deg);
    }
    75% {
        transform: rotate(87.5deg);
    }
    100% {
        transform: rotate(90deg);
    }
}

@keyframes boxSlide {
    0% {
        transform:translateX(0px);
    }
    100% {
        transform: translateX(-160px);
    }
}

@keyframes boxSlideSM {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(-80px);
    }
}

@media only screen and (max-width: 576px) {

    .boxLoader .boxContainer {
        width:150%;
        transform: rotate(-35deg) translateX(-35px);
    }

    .boxLoader .loadingText {
        font-size: 2.5rem;
    }

    .boxLoader .boxContainer .box {
        height: 80px;
        animation: boxSlideSM 1.5s ease-in-out infinite
    }

        .boxLoader .boxContainer .box .cube {
            width: 80px;
            height: 80px;
            border-radius: 4px;
        }
}
