.circle-loader {
  margin: 0 0 30px 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-left-color: #5cb85c;
  animation-name: loader-spin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.circle-loader-gagal,
.circle-loader-gagal:after,
.circle-loader,
.circle-loader:after {
  border-radius: 50%;
  width: 8em;
  height: 8em;
}

.load-complete {
  -webkit-animation: none;
  animation: none;
  border-color: #5cb85c;
  transition: border 500ms ease-out;
}

.checkmark {
  display: none;
}
.checkmark.draw:after {
  animation-duration: 800ms;
  animation-timing-function: ease;
  animation-name: checkmark;
  transform: scaleX(-1) rotate(135deg);
}
.checkmark:after {
  opacity: 1;
  height: 4em;
  width: 2em;
  transform-origin: left top;
  border-right: 2px solid #5cb85c;
  border-top: 2px solid #5cb85c;
  content: '';
  left: 2em;
  top: 4em;
  position: absolute;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes checkmark {
  0% {
    height: 0;
    width: 0;
    opacity: 1;
  }
  20% {
    height: 0;
    width: 2em;
    opacity: 1;
  }
  40% {
    height: 4em;
    width: 2em;
    opacity: 1;
  }
  100% {
    height: 4em;
    width: 2em;
    opacity: 1;
  }
}



@keyframes wrongmark {
  0% {
    height: 0;
    opacity: 1;
  }
  100% {
    height: 6em;
    opacity: 1;
  }
}

.circle-loader.gagal{
  margin: 0 0 30px 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-left-color: #f00;
  animation-name: loader-spin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.load-complete.gagal {
  -webkit-animation: none;
  animation: none;
  border-color: #f00;
  transition: border 500ms ease-out;
}

.load-complete.gagal > div{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.wrongmark:after {
  opacity: 1;
  height: 6em;
  width: 0em;
  transform-origin: center center;
  border-right: 2px solid #f00;
  border-top: 2px solid #f90606;
  content: '';
  /*transform: scaleX(-1) rotate(45deg);*/
  position: absolute;
}

.wrongmark:before {
  opacity: 1;
  height: 6em;
  width: 0em;
  transform-origin: center center;
  border-right: 2px solid #f00;
  border-top: 2px solid #f90606;
  content: '';
  /*transform: scaleX(-1) rotate(135deg);*/
  position: absolute;
}

.wrongmark.draw:after {
  animation-duration: 800ms;
  animation-timing-function: ease;
  animation-name: wrongmark;
  transform: scaleX(-1) rotate(45deg);
}

.wrongmark.draw:before {
  animation-duration: 800ms;
  animation-timing-function: ease;
  animation-name: wrongmark;
  transform: scaleX(-1) rotate(135deg);
}