﻿/*
**********************************************************
    Progress dots 
**********************************************************
*/

#overlay {
    position: fixed;
    /* Sit on top of the page content */
    display: none;
    /* Hidden by default */
    width: 100%;
    /* Full width (cover the whole page) */
    height: 100%;
    /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black background with opacity */
    z-index: 2800;
    /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer;
    /* Add a pointer on hover */
}

    #overlay .overlay:before {
        content: " ";
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 1031;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    #overlay .water-fill {
        animation: wave 0.7s infinite linear, fill-up 7s infinite ease-out alternate;
    }

    #overlay .loading {
        position: absolute;
        top: calc(50% - 120px);
        left: calc(50% - 178px);
    }

    #overlay .centered {
        width: 250px;
        height: 250px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: transparent !important;
    }

    #overlay .centered2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: transparent !important;
    }

    #overlay .blob-1, #overlay .blob-2 {
        width: 50px;
        height: 50px;
        position: absolute;
        background: #fff;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #overlay .blob-1 {
        left: 20%;
        animation: osc-l 1s ease infinite;
    }

    #overlay .blob-2 {
        left: 80%;
        animation: osc-r 1s ease infinite;
        background: #0ff !important;
    }

    #overlay .blob-msg {
        position: relative;
        background-color: transparent;
        width: 100%;
        color: #fff;
        text-transform: uppercase;
        text-shadow: 1px 1px 1px #000;
        left: 50%;
        top: 25%;
        transform: translate(-50%, -25%);
    }

    #overlay .loader {
        position: absolute;
        height: 10px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        list-style-type: none;
    }

    #overlay .item-1 {
        float: left;
        width: 24px;
        margin: 0 5.6666666667px;
        border-radius: 12px;
        animation: anim 1.6s ease-in-out infinite 0.1s;
        animation-fill-mode: backwards;
    }

    #overlay .item-2 {
        float: left;
        width: 24px;
        margin: 0 5.6666666667px;
        border-radius: 12px;
        animation: anim 1.6s ease-in-out infinite 0.2s;
        animation-fill-mode: backwards;
    }

    #overlay .item-3 {
        float: left;
        width: 24px;
        margin: 0 5.6666666667px;
        border-radius: 12px;
        animation: anim 1.6s ease-in-out infinite 0.3s;
        animation-fill-mode: backwards;
    }

    #overlay .item-4 {
        float: left;
        width: 24px;
        margin: 0 5.6666666667px;
        border-radius: 12px;
        animation: anim 1.6s ease-in-out infinite 0.4s;
        animation-fill-mode: backwards;
    }

    #overlay .item-5 {
        float: left;
        width: 24px;
        margin: 0 5.6666666667px;
        border-radius: 12px;
        animation: anim 1.6s ease-in-out infinite 0.5s;
        animation-fill-mode: backwards;
    }

@keyframes anim {
    0%, 15%, 85%, 100% {
        height: 24px;
        background: #2cc2be;
        transform: translateY(0px);
    }

    30%, 70% {
        height: 50px;
    }

    41%, 59% {
        height: 24px;
        background: #0af;
        transform: translateY(-30px);
    }
}

#overlay .loading-h {
    background-color: transparent !important;
}

    #overlay .loading-h span:not(:nth-of-type(8)) {
        display: inline-block;
        vertical-align: middle;
        width: 1.6rem;
        height: 1.6rem;
        margin: 0.25rem;
        background: #0af;
        border-radius: 50%;
        animation: loading-h 1s infinite alternate;
    }

    #overlay .loading-h span:nth-of-type(8) {
        color: #fff;
        text-transform: uppercase;
        text-shadow: 1px 1px 1px #000;
        display: block;
        text-align: center;
        padding-top: 1rem;
    }

    
 /* Dots Colors */
    #overlay .loading-h span:nth-of-type(2) {
        background: #008fb2;
        animation-delay: 0.2s;
    }

    #overlay .loading-h span:nth-of-type(3) {
        background: #a892c5;
        animation-delay: 0.4s;
    }

    #overlay .loading-h span:nth-of-type(4) {
        background: #9b77ca;
        animation-delay: 0.6s;
    }

    #overlay .loading-h span:nth-of-type(5) {
        background: #aa74ab;
        animation-delay: 0.8s;
    }

    #overlay .loading-h span:nth-of-type(6) {
        background: #de58af;
        animation-delay: 1s;
    }

    #overlay .loading-h span:nth-of-type(7) {
        background: #dc37a2;
        animation-delay: 1.2s;
    }

/*
 * Animation keyframes
 * Use transition opacity instead of keyframes?
 */
@keyframes loading-h {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*
**********************************************************
    Spinner
**********************************************************
*/

#spinnerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
}

#spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5001;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    border: 16px solid #e0e0e0;
    border-top: 16px solid var(--action-color);
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/*
  "Wait" overlay
*/

#processing_overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: auto;
    background-color: #2191c0;
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=10);
    opacity: 0.1;
    cursor: wait;
}

#processing_container {
    font: bold 14px verdana;
    min-width: 300px; /* Dialog will be no smaller than this */
    max-width: 600px; /* Dialog will wrap after this width */
    background: #FFF;
    border: solid 5px #00303f;
    color: #00303f;
}

#processing_title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.75em;
    background-color: #669900;
    color: #FFF;
    border-bottom: solid 1px #999;
    cursor: default;
    padding: 0em;
    margin: 0em;
}

#processing_content {
    text-align: center;
    padding: 1em 1.75em;
    margin: 0em;
    vertical-align: middle;
}

/* 
    Progress bar
 */
#progressBar_overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: auto;
    background-color: #2191c0;
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=10);
    opacity: 0.1;
    cursor: wait;
}

#progressBar_container {
    font: bold 14px verdana;
    min-width: 300px; /* Dialog will be no smaller than this */
    max-width: 600px; /* Dialog will wrap after this width */
    background: #FFF;
    border: solid 5px #00303f;
    color: #00303f;
}

#progressBar_title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.75em;
    background-color: #669900;
    color: #FFF;
    border-bottom: solid 1px #999;
    cursor: default;
    padding: 0em;
    margin: 0em;
}

#progressBar_content {
    text-align: center;
    padding: 1em 1.75em;
    margin: 0em;
    vertical-align: middle;
}

#progressBar_bar_container {
    border: solid 1px #000000;
    width: 100%;
    height: 20px;
    background-color: #eeeeee;
}

#progressBar_bar {
    height: 20px;
    background-color: #000066;
    width: 0%;
}

