﻿.loading-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background-color: rgba(128, 128, 128, .4);
}

    .loading-panel.full-screen {
        position: fixed;
        height: 100%;
    }

.spinner-center {
    position: relative;
    top: 40%;
    left: 50%;
    width: 100px;
    height: 110px;
    margin-left: -50px;
    background-color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

    .spinner-center span {
        color: #ec3b1e;
        font-weight: bold;
    }



/*
* Spinner from: http://tobiasahlin.com/spinkit/
*
*/

.spinner {
    margin: 10px auto;
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

    .spinner > div {
        background-color: #ec3b1e;
        height: 100%;
        width: 6px;
        display: inline-block;
        -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
        animation: sk-stretchdelay 1.2s infinite ease-in-out;
    }
   
    .spinner .rect2 {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

    .spinner .rect3 {
        -webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
    }

    .spinner .rect4 {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

    .spinner .rect5 {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1.0);
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

/*
* Mod of previous spinner. Needs to be after .spinner
*
*/

.spinner-small {
    margin: 0;
    width: 12px;
    height: 20px;
    text-align: center;
    font-size: 5px;
    display:inline-block;
    vertical-align: middle;
}

    .spinner-small > div {
        background-color: #ec3b1e;
        height: 100%;
        width: 1px;
        display: inline-block;
        -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
        animation: sk-stretchdelay 1.2s infinite ease-in-out;
    }
