@charset "UTF-8";

/*********************************************************************
  Loading Spinner
*********************************************************************/
.loading {
    position: relative;
}

.loading:before {
    content: '';
    display: block;
    z-index: 1030; /* over bootstrap sticky (1020) */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.4);
}

.loading:after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #999;
    border-left: 4px solid #ddd;
    border-radius: 50%;
    z-index: 1030; /* over bootstrap sticky (1020) */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: loading 1.1s infinite linear;
}

body.loading:before {
    z-index: 1060; /* over bootstrap modal (1055) */
    position: fixed;
}

body.loading:after {
    z-index: 1060; /* over bootstrap modal (1055) */
    position: fixed;
}

@keyframes loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
