* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  width: 100vw;
  background-color: #29292e;
}

.loading-container {
  height: 50vh;
  width: 100vw;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.simple-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(150, 150, 150, 0.2);
  border-radius: 50%;
  border-top-color: rgb(150, 150, 150);
  animation: rotate 1s 0s infinite ease-in-out alternate;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.double-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(150, 150, 150, 0.2);
  border-radius: 50%;
  border-top-color: rgb(150, 150, 150);
  animation: rotate 1s 0s infinite ease-in-out alternate;
}

.double-spinner::after {
  content: "";
  height: 40%;
  width: 40%;
  display: block;
  margin: 10px auto;
  border: inherit;
  border-radius: inherit;
  border-top-color: inherit;
  animation: rotate 0.5s 0s infinite linear reverse;
}

.flip-walker {
  width: 64px;
  height: 64px;
}

.flip-walker::before {
  content: "";
  display: block;
  width: 50%;
  height: 50%;
  background-color: rgba(150, 150, 150, 0.5);
  animation: flip 2s 0s infinite ease normal, glow 2s 0s infinite linear normal;
}

@keyframes flip {
  0% {
    transform: translate(0, 0) rotateX(0) rotateY(0);
  }

  25% {
    transform: translate(100%, 0) rotateX(0) rotateY(180deg);
  }

  50% {
    transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg);
  }

  75% {
    transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg);
  }

  100% {
    transform: translate(0, 0) rotateX(0) rotateY(360deg);
  }
}

@keyframes glow {
  to {
    background: white;
    box-shadow: 0 0 15px white;
  }
}

.pulse {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s 0s infinite cubic-bezier(0, 1.01, 0.5, 1.2) normal;
}

@keyframes pulse {
  from {
    transform: scale(0);
    opacity: 1;
  }

  to {
    transform: scale(1);
    opacity: 0;
  }
}

.card-container,
.front,
.back {
  width: 20rem;
  height: 20rem;
}

.card-container {
  margin: 2rem auto;
}

.front,
.back {
  box-sizing: border-box;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 1rem 2rem rgba(150, 150, 150, 0.2);

  font-family: BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

/* front side background is green gradient */
.front {
  background-image: linear-gradient(to right bottom, #2ecc71, #229955);
}

/* back side background is orange gradient */
.back {
  background-image: linear-gradient(to right bottom, #f1c40f, #e67e22);
}

/* Put all of some interest style for card (animate it) */
.card-container {
  position: relative;
  perspective: 75rem;
}

.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  overflow: hidden;
  transition: transform 0.8s ease;
}

.back {
  transform: rotateY(180deg);
}

.card-container:hover .front {
  transform: rotateY(-180deg);
}

.card-container:hover .back {
  transform: rotateY(0deg);
}
