/*
#loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #000d;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 8px;
    opacity: 0;
    transition: opacity .3s linear;
    pointer-events: none;
    z-index: 21;
    user-select: none;
}

#loader.open {
    opacity: 1;
    pointer-events: all;
}*/

span.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--size, 32px);
    min-height: var(--size, 32px);
    margin: auto;
    flex-direction: column;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

span.loader::before {
    content: '';
    box-sizing: border-box;
    min-width: var(--size, 28px);
    min-height: var(--size, 28px);
    border-radius: 50%;
    border: var(--width, 3px) solid #0004;
    border-top-color: white !important;
    animation: spinner .7s linear infinite;
}

/**
#loader::before {
    margin-right: 16px;
}
**/

span.loader::before {
    border-color: #666;
}

span.loader-reboot,
span.loader-reboot:before,
span.loader-reboot:after {
  background: #0005;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
span.loader-reboot {
  color: #0005;
  text-indent: -9999em;
  margin: 5px auto;
  position: relative;
  font-size: 3px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
span.loader-reboot:before,
span.loader-reboot:after {
  position: absolute;
  top: 0;
  content: '';
}
span.loader-reboot:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
span.loader-reboot:after {
  left: 1.5em;
}
@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

span.loader-dots {
  display: inline-block;
}

.dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #9880ff;
  color: #9880ff;
  -webkit-animation: dot-flashing 1s infinite linear alternate;
  animation: dot-flashing 1s infinite linear alternate;
  -webkit-animation-delay: .5s;
  animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--tag-color2);
  color: var(--tag-color2);
  -webkit-animation: dot-flashing 1s infinite alternate;
  animation: dot-flashing 1s infinite alternate;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--tag-color2);
  color: var(--tag-color2);
  -webkit-animation: dot-flashing 1s infinite alternate;
  animation: dot-flashing 1s infinite alternate;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}

@-webkit-keyframes dot-flashing {
  0% {
    background-color: var(--tag-color2);
  }
  50%,
  100% {
    background-color: var(--tag-color1);
  }
}

@keyframes dot-flashing {
  0% {
    background-color: var(--tag-color2);
  }
  50%,
  100% {
    background-color: var(--tag-color1);
  }
}
#chart-loader {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #000d;
  color: white;
  font-size: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s linear;
  pointer-events: none;
  z-index: 21;
  user-select: none;
  opacity:0;
  transition: opacity .3s linear;
}


.chart-loader {
    display: flex;
    justify-content: center;
}

#chart-loader.open {
    opacity: 1;
    pointer-events: all;
}

@keyframes loading {
  0% {
    background-color: #cd0a00;
  }
  30% {
    background-color: #fa8a00;
  }
  50% {
    height: 100px;
    margin-top: 0px;
  }
  80% {
    background-color: #91d700;
  }
  100% {
    background-color: #cd0a00;
  }
}
/*@-moz-keyframes loading {
  50% { height: 100px; margin-top: 0px; }
}
@-o-keyframes loading {
  50% { height: 100px; margin-top: 0px; }
}
@keyframes loading {
  50% { height: 100px; margin-top: 0px; }
}*/
#chart-loader .loading-1,
.chart-loader .loading-1 {
  height: 10px;
  width: 30px;
  background-color: #fff;
  display: inline-block;
  margin-top: 90px;
  -webkit-animation: loading 2.5s infinite;
  -moz-animation: loading 2.5s infinite;
  -o-animation: loading 2.5s infinite;
  animation: loading 2.5s infinite;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
#chart-loader .loading-2,
.chart-loader .loading-2  {
  height: 10px;
  width: 30px;
  background-color: #fff;
  display: inline-block;
  margin-top: 90px;
  -webkit-animation: loading 2.5s infinite;
  -moz-animation: loading 2.5s infinite;
  -o-animation: loading 2.5s infinite;
  animation: loading 2.5s infinite;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
#chart-loader .loading-3,
.chart-loader .loading-3  {
  height: 10px;
  width: 30px;
  background-color: #fff;
  display: inline-block;
  margin-top: 90px;
  -webkit-animation: loading 2.5s infinite;
  -moz-animation: loading 2.5s infinite;
  -o-animation: loading 2.5s infinite;
  animation: loading 2.5s infinite;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -webkit-animation-delay: 0.75s;
  animation-delay: 0.75s;
}
#chart-loader .loading-4,
.chart-loader .loading-4 {
  height: 10px;
  width: 30px;
  background-color: #fff;
  display: inline-block;
  margin-top: 90px;
  -webkit-animation: loading 2.5s infinite;
  -moz-animation: loading 2.5s infinite;
  -o-animation: loading 2.5s infinite;
  animation: loading 2.5s infinite;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}












@keyframes linear-indeterminate-1 {
    0% { width: 36vw; transform: translateX(-100%) }
    12% { width: 36vw; }
    50% { width: 100vw; transform: translateX(100vw) }
    100% { width: 100vw; transform: translateX(100vw) }
}

@keyframes linear-indeterminate-2 {
    0% { width: 100vw; transform: translateX(-100%) }
    75% { width: 100vw; transform: translateX(-100%) }
    85% { width: 100vw }
    100% { width: 50vw; transform: translateX(100vw) }
}

progress {
    appearance: none;
    box-sizing: border-box;
    border: none;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #333;
    height: 6px;
    box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.20);
}

progress.indeterminate::before {
    content: ' ';
    height: 6px;
    animation: linear-indeterminate-1 3.5s infinite;
    animation-timing-function: cubic-bezier(0.4, 0.0, 1, 1);
    display: block;
    background-color: #ff9800;
    transform-origin: right;
    position: absolute;
    top: 0;
    left: 0;
}

progress.indeterminate::after {
    top: 0;
    left: 0;
    content: ' ';
    position: absolute;
    height: 6px;
    animation: linear-indeterminate-2 3.5s infinite;
    animation-delay: 2.5s;
    animation-timing-function: cubic-bezier(0.4, 0.0, 1, 1);
    display: block;
    background-color: #ff9800;
    transform-origin: right;
}

progress#loader {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 24;
    height: 0px;
    transition: height .3s ease;
}

header > progress#loader {
    bottom: -6px;
    top: auto;
}

body.loading progress#loader {
    height: 6px;
    opacity: 1;
}
