/*!
 * # Semantic UI 1.12.2 - Loader
 * http://github.com/semantic-org/semantic-ui/
 *
 *
 * Copyright 2014 Contributors
 * Released under the MIT license
 * http://opensource.org/licenses/MIT
 *
 */

/*******************************
            Loader
*******************************/

/* Standard Size */
.loader {
    top: 50%;
    left: 50%;
    margin: 0;
    z-index: 1000;
    display: none;
    position: absolute;
    text-align: center;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

/* Static Shape */
.loader:before {
    position: absolute;
    content: '';
    top: 0%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 500rem;
    border: 0.1em solid rgba(0, 0, 0, 0.1);
}

/* Active Shape */
.loader:after {
    position: absolute;
    content: '';
    top: 0%;
    left: 50%;
    width: 100%;
    height: 100%;
    -webkit-animation: loader 0.6s linear;
    animation: loader 0.6s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    border-radius: 500rem;
    border-color: #aaaaaa transparent transparent;
    border-style: solid;
    border-width: 0.1em;
    box-shadow: 0px 0px 0px 1px transparent;
}

/* Active Animation */
@-webkit-keyframes loader {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loader {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Sizes */
.loader:before,
.loader:after {
    width: 2.2585em;
    height: 2.2585em;
    margin: 0em 0em 0em -1.12925em;
}

.mini.loader:before,
.mini.loader:after {
    width: 1.2857em;
    height: 1.2857em;
    margin: 0em 0em 0em -0.64285em;
}

.small.loader:before,
.small.loader:after {
    width: 1.7142em;
    height: 1.7142em;
    margin: 0em 0em 0em -0.8571em;
}

.large.loader:before,
.large.loader:after {
    width: 3.5714em;
    height: 3.5714em;
    margin: 0em 0em 0em -1.7857em;
}

/*-------------------
      Coupling
--------------------*/

/* White Dimmer (Inverted) */
.inverted.dimmer .loader {
    color: rgba(0, 0, 0, 0.8);
}

.inverted.dimmer .loader:before {
    border-color: rgba(0, 0, 0, 0.1);
}

.inverted.dimmer .loader:after {
    border-color: #aaaaaa transparent transparent;
}

/*******************************
             Types
*******************************/

/*-------------------
        Text
--------------------*/

.text.loader {
    width: auto !important;
    height: auto !important;
    text-align: center;
    font-style: normal;
}

/*******************************
            States
*******************************/

.indeterminate.loader:after {
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
    -webkit-animation-duration: 1.2s;
    animation-duration: 1.2s;
}

.loader.active,
.loader.visible {
    display: block;
}

.loader.disabled,
.loader.hidden {
    display: none;
}

/*******************************
            Variations
*******************************/

/*-------------------
        Sizes
--------------------*/

/* Loader */
.inverted.dimmer .mini.loader,
.mini.loader {
    width: 1.2857em;
    height: 1.2857em;
    font-size: 0.7857em;
}

.inverted.dimmer .small.loader,
.small.loader {
    width: 1.7142em;
    height: 1.7142em;
    font-size: 0.9285em;
}

.inverted.dimmer .loader,
.loader {
    width: 2.2585em;
    height: 2.2585em;
    font-size: 1em;
}

.inverted.dimmer .loader.large,
.loader.large {
    width: 4.5714em;
    height: 4.5714em;
    font-size: 1.1428em;
}

/* Text Loader */
.mini.text.loader {
    min-width: 1.2857em;
    padding-top: 1.9857em;
}

.small.text.loader {
    min-width: 1.7142em;
    padding-top: 2.4142em;
}

.text.loader {
    min-width: 2.2585em;
    padding-top: 2.9585em;
}

.large.text.loader {
    min-width: 4.5714em;
    padding-top: 5.2714em;
}

/*-------------------
       Inverted
--------------------*/

.inverted.loader {
    color: #ffffff;
}

.inverted.loader:before {
    border-color: rgba(255, 255, 255, 0.15);
}

.inverted.loader:after {
    border-top-color: #ffffff;
}

/*-------------------
       Inline
--------------------*/

.inline.loader {
    position: relative;
    vertical-align: middle;
    margin: 0em;
    left: 0em;
    top: 0em;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

.inline.loader.active,
.inline.loader.visible {
    display: inline-block;
}

/* Centered Inline */
.centered.inline.loader.active,
.centered.inline.loader.visible {
    display: block;
}
