@charset "utf-8";

.x-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  &__text {
    color: #00bb55;
    font-size: 28px;
    margin-left: 10px;
  }
}

.x-loading__spin {
  width: 30px;
  height: 30px;
  overflow: hidden;
  position: relative;
  &_circular {
    animation: __x_loading_rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
  }
  &_path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke: #00bb55;
    stroke-width: 4px; /*no*/
    animation: __x_loading_dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
  }
}

@keyframes __x_loading_rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes __x_loading_dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px; /*no*/
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px; /*no*/
  }
}
