/* Source: https://codepen.io/jordanamorais/pen/PNQLOb */

.gauge-wrapper {
  width: 100%;
  height: 100%;
  max-height: 100px;
}

.gauge {
  font-family: "Lato", Helvetica, sans-serif;
  background: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05), 0 0 10px 4px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 100px;
  border-radius: 100px 100px 0 0;
  position: relative;
  right: -25px;
  overflow: hidden;
  /* safari fix */
  -webkit-transform-style: flat;
  -webkit-transform: translateZ(0px);
}

.gauge.min-scaled {
  transform: scale(0.8);
}

@media only screen and (min-width: 768px) {
  .gauge.min-scaled {
    left: 18%;
  }
}

.gauge-center {
  content: "";
  color: #fff;
  width: 60%;
  height: 60%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(45px);
  border-radius: 100px 100px 0 0;
  position: absolute;
  box-shadow: 0 -13px 15px -10px rgba(0, 0, 0, 0.28);
  right: 21%;
  bottom: 0;
  color: #fff;
}

@supports not (backdrop-filter: none) {
  .gauge-center {
    background: rgb(0, 0, 0, 0.95);
  }
}

#gbs-used {
  font-weight: 100;
  font-size: 20px;
  width: 100%;
  padding: 10px 0 0 0;
  text-align: center;
  float: left;
  -webkit-font-smoothing: antialiased;
}

.gauge-center::after {
  content: "GBs USED";

  font-weight: 700;
  font-size: 10px;

  width: 100%;
  float: left;
  opacity: 0.6;
  text-align: center;
}

.needle {
  width: 78px;
  height: 7px;
  background: rgba(0, 0, 0, 0.9);
  border-bottom-left-radius: 100%;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 100%;
  border-top-right-radius: 5px;
  position: absolute;
  bottom: 4px;
  left: 20px;
  transform-origin: 100% 4px;
  transition: all 1s;
  /* animation: speed 5s infinite; */
  box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.38);
}

.slice-colors .st {
  position: absolute;
  bottom: 0;
  width: 60px;
  height: 0;
  border-bottom: 80px solid #000;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}
.slice-colors .st.slice-item:nth-child(1) {
  border-bottom-color: #1eaa59;
  left: -2px;
}
.slice-colors .st.slice-item:nth-child(2) {
  border-bottom-color: #9baa1e;
  transform: rotate(135deg);
  transform-origin: center;
  top: 0;
  left: 20px;
}
.slice-colors .st.slice-item:nth-child(3) {
  border-bottom-color: #f1c40f;
  transform: rotate(179deg);
  transform-origin: center;
  top: 0;
  left: 52px;
  border-bottom-width: 90px;
  border-left-width: 45px;
  border-right-width: 45px;
  width: 18px;
}
.slice-colors .st.slice-item:nth-child(4) {
  border-bottom-color: #e67e22;
  transform: rotate(219deg);
  transform-origin: center;
  top: 0;
  right: 25px;
}
.slice-colors .st.slice-item:nth-child(5) {
  border-bottom-color: #e84c3d;
  transform: rotate(240deg) scale(1.3);
  transform-origin: center;
  right: 0;
  bottom: -25px;
}

@-webkit-keyframes speed {
  0% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(180deg);
  }
  55% {
    transform: rotate(170deg);
  }
  75% {
    transform: rotate(180deg);
  }
}
@-webkit-keyframes simplePulse {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.98;
  }
}
