:root {
  --my-bg-main-color: #140452; /* indigo-darken-4 */
  --my-main-color: #eeeeee; /* grey-lighten-3 */
}

body {
  margin: 0;
}

.my-loading-screen {
  font-family: "Roboto", sans-serif;
  background-color: var(--my-bg-main-color);
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.my-loading-screen > .my-loading-box {
  width: 85%;
  min-width: 350px;
  height: 85%;
  background-color: var(--my-main-color);
  color: var(--my-bg-main-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.my-loading-screen > .my-loading-box > .my-loading-page {
  display: none;
  text-align: center;
  font-weight: normal;
}

.my-loading-screen > .my-loading-box > .my-loading-problems {
  display: none;
  font-size: 0.9rem;
  margin-top: 50px;
  text-align: center;
}

.my-loading-screen > .my-loading-box > .my-loading-problems > a {
  color: var(--my-bg-main-color);
}

.my-custom-progress-circular {
  margin-top: 15px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: none;
  border-radius: 50%;
  padding: 0.25em;
  width: 3em;
  height: 3em;
  color: var(--my-bg-main-color);
  background-color: transparent;
  font-size: 16px;
  overflow: hidden;
}

.my-custom-progress-circular::-webkit-progress-bar {
  background-color: transparent;
}

/* Indeterminate */
.my-custom-progress-circular:indeterminate {
  -webkit-mask-image:
    linear-gradient(transparent 50%, black 50%),
    linear-gradient(to right, transparent 50%, black 50%);
  mask-image:
    linear-gradient(transparent 50%, black 50%),
    linear-gradient(to right, transparent 50%, black 50%);
  animation: my-custom-progress-circular 6s infinite cubic-bezier(0.3, 0.6, 1, 1);
}

:-ms-lang(x),
.my-custom-progress-circular:indeterminate {
  animation: none;
}

.my-custom-progress-circular:indeterminate::before,
.my-custom-progress-circular:indeterminate::-webkit-progress-value {
  content: "";
  display: block;
  box-sizing: border-box;
  margin-bottom: 0.25em;
  border: solid 0.25em transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  width: 100% !important;
  height: 100%;
  background-color: transparent;
  animation: my-custom-progress-circular-pseudo 0.75s infinite linear alternate;
}

.my-custom-progress-circular:indeterminate::-moz-progress-bar {
  box-sizing: border-box;
  border: solid 0.25em transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background-color: transparent;
  animation: my-custom-progress-circular-pseudo 0.75s infinite linear alternate;
}

.my-custom-progress-circular:indeterminate::-ms-fill {
  animation-name: -ms-ring;
}

@keyframes my-custom-progress-circular {
  0% {
    transform: rotate(0deg);
  }
  12.5% {
    transform: rotate(180deg);
    animation-timing-function: linear;
  }
  25% {
    transform: rotate(630deg);
  }
  37.5% {
    transform: rotate(810deg);
    animation-timing-function: linear;
  }
  50% {
    transform: rotate(1260deg);
  }
  62.5% {
    transform: rotate(1440deg);
    animation-timing-function: linear;
  }
  75% {
    transform: rotate(1890deg);
  }
  87.5% {
    transform: rotate(2070deg);
    animation-timing-function: linear;
  }
  100% {
    transform: rotate(2520deg);
  }
}

@keyframes my-custom-progress-circular-pseudo {
  0% {
    transform: rotate(-30deg);
  }
  29.4% {
    border-left-color: transparent;
  }
  29.41% {
    border-left-color: currentColor;
  }
  64.7% {
    border-bottom-color: transparent;
  }
  64.71% {
    border-bottom-color: currentColor;
  }
  100% {
    border-left-color: currentColor;
    border-bottom-color: currentColor;
    transform: rotate(225deg);
  }
}
