/*
 * This is taken from http://tobiasahlin.com/spinkit/
 * which is released under a MIT license.
 */

/*
 * The spinner is placed just-above center, so as not to completely
 * obscure - or be obscured-by - the content but still be visible.
 */
.spinner {
    font-size: 10px;
    height: 6em;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;

    transform: translate(-50%, -100%);
    -webkit-transform: translate(-50% -100%);

    width: 14em;
    z-index: 300;
}

.spinner > div {
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;

    background-color: rgba(153, 204, 102, 0.8);    /* match color used for header/footer */
    border-bottom: 0.4em solid rgba(255, 255, 255, 0.4);
    border-left: 0.2em solid rgba(255, 255, 255, 0.4);
    border-right: 0.2em solid rgba(255, 255, 255, 0.4);
    border-top: 0.4em solid rgba(255, 255, 255, 0.4);
    display: inline-block;
    height: 100%;
    margin-left: 0.2em; /* could restrict to rect2-rect5 */
    width: 2em;
}

.spinner .rect2 {
    animation-delay: -1.1s;
    -webkit-animation-delay: -1.1s;
}

.spinner .rect3 {
    animation-delay: -1.0s;
    -webkit-animation-delay: -1.0s;
}

.spinner .rect4 {
    animation-delay: -0.9s;
    -webkit-animation-delay: -0.9s;
}

.spinner .rect5 {
    animation-delay: -0.8s;
    -webkit-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);
    }
}
