@import "base.css";
@import "loader.css";

body {
  margin: 0;
  padding: 0;
}

.crema-loader-bg {
  flex: 1;
  display: flex;
  position: relative;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-size: cover;
}

.crema-loader {
  position: relative;
  margin: 0 auto;
  width: 40px;
}

.circular {
  animation: rotate 2s linear infinite;
  height: 40px;
  transform-origin: center center;
  width: 40px;
  margin: auto;
}

.path {
  stroke-dasharray: 5, 200;
  stroke-dashoffset: 0;
  animation:
    dash 1.5s ease-in-out infinite,
    color 6s ease-in-out infinite;
  stroke-linecap: round;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

@keyframes color {
  100%,
  0% {
    stroke: #004a92;
  }
}
