/**
 * (C)Leanest CSS spinner ever
 * Based on http://lea.verou.me/2013/11/cleanest-css-spinner-ever/
 */

.spinner {
    display: inline;
}

.spinner.center {
    text-align: center;
    top: 25%;
    display: block;
    position: relative;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(1turn); }
}

.progress {
    position: relative;
    display: inline-block;
    width: 5em;
    height: 5em;
    margin: 0 .5em;
    font-size: 12px;
    text-indent: 999em;
    overflow: hidden;
    -webkit-animation: spin 1s infinite steps(8);
    animation: spin 1s infinite steps(8);
}

.small.progress {
    font-size: 3px;
}

.medium.progress {
    font-size: 6px;
}

.large.progress {
    font-size: 12px;
}

.progress:before,
.progress:after,
.progress > div:before,
.progress > div:after {
    content: '';
    position: absolute;
    top: 0;
    left: 2.25em; /* (container width - part width)/2  */
    width: .5em;
    height: 1.5em;
    border-radius: .2em;
    background: #eee;
    box-shadow: 0 3.5em #eee; /* container height - part height */
    -webkit-transform-origin: 50% 2.5em; /* container height / 2 */
    transform-origin: 50% 2.5em; /* container height / 2 */
}

.progress:before {
    background: #555;
}

.progress:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    background: #777;
}

.progress > div:before {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    background: #999;
}

.progress > div:after {
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    background: #bbb;
}

