﻿.c-spinner {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    width: calc(100% - 10px);
    height: 100%;
    z-index: 9999;
}

.showbox {
    position: absolute;
    width: 50%;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/*.loader {
    position: relative;
    margin: 0 auto;
    width: 25%;
}*/

.loader {
    position: relative;
    margin: 0 auto;
    width: 25%;
    background-color: #ffffff;
    border-radius: 100px;
    padding: 0;
    background-image: url('../img/Aafia-EMR-Loader.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    box-shadow: 0 0px 50px rgba(0,0,0,0.13);
    max-width: 150px;
    /*animation: shrink 1s infinite alternate;*/
}

    .loader:before {
        content: '';
        display: block;
        padding-top: 100%;
    }

/*@keyframes shrink {
    0% {
        background-size: 60%;
    }

    100% {
        background-size: 75%;
    }

}*/

/*.circular {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    height: 100%;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}*/

.circular {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    height: 130%;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    width: 130%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -14%;
    right: 0;
    margin: auto;
}

.path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    -webkit-animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    stroke-linecap: round;
}

@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@-webkit-keyframes color {
    100%, 0% {
        stroke: #2e3b4d;
    }

    40% {
        stroke: #2e3b4d;
    }

    66% {
        stroke: #2e3b4d;
    }

    80%, 90% {
        stroke: #2e3b4d;
    }
}

@keyframes color {
    100%, 0% {
        stroke: #2e3b4d;
    }

    40% {
        stroke: #2e3b4d;
    }

    66% {
        stroke: #2e3b4d;
    }

    80%, 90% {
        stroke: #2e3b4d;
    }
}

.spinner {
    position: relative;
    margin: auto;
    box-sizing: border-box;
    width: 300px;
    height: 300px;
    border-radius: 150px;
    border: 14px solid rgba(255, 255, 255, 0.1);
    -webkit-mask: linear-gradient(rgba(0, 0, 0, 0.1), #000000 90%);
    transform-origin: 50% 60%;
    transform: perspective(300px) rotateX(0deg);
    animation: spinner-wiggle 1.8s infinite;
}

@keyframes spinner-wiggle {
    30% {
        transform: perspective(300px) rotateX(0deg);
    }

    40% {
        transform: perspective(300px) rotateX(0deg);
    }

    50% {
        transform: perspective(300px) rotateX(0deg);
    }

    60% {
        transform: perspective(300px) rotateX(0deg);
    }
}

.spinner:before,
.spinner:after {
    content: "";
    position: absolute;
    margin: -14px;
    box-sizing: inherit;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    opacity: .05;
    border: inherit;
    border-color: transparent;
    animation: spinner-spin 1.8s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, spinner-fade 1.8s linear infinite;
}

.spinner:before {
    border-top-color: #66e6ff;
}

.spinner:after {
    border-top-color: #f0db75;
    animation-delay: 0.45s;
}

@keyframes spinner-spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinner-fade {
    20% {
        opacity: .8;
    }

    40% {
        opacity: 8;
    }

    60% {
        opacity: .8;
    }
}
/*@keyframes color-me-in {
  20% {
    background: rgba(255, 255, 255, 0.9);
  }
  40% {
    background: rgba(249, 249, 249,0.8);
  }
   60% {
    background: rgba(255, 255, 255, 0.9);
  }
  80% {
    background: rgba(249, 249, 249, 0.8);
  }
   100% {
    background: rgba(255, 255, 255, 0.9);
  }
}*/

.modal-content .c-spinner {
    height: calc(100% - 58px);
}
