/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding and reset fonts */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

p, dl, ol, ul {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html {
  font-size: 12px;
}

body {
  background-color: #eceff0;
  font-family: system-ui;
  display: grid;
  min-height: 100vh;
  place-content: center;
  overflow: hidden;
}

h1 {
  position: absolute;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

.spinner {
  position: absolute;
  margin: auto;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background-color: #42a5f5;
  box-shadow: 0px 0px 50px 3px #000;
  /* If text on last span. */
  /* span:last-child {
  	display: grid;
  	align-items: center;
  	text-align: center;
  	font-size: 3rem;
  	font-weight: bold;
  	text-transform: uppercase;
  } */
}
.spinner span {
  left: 10%;
  top: 10%;
  box-shadow: 0px 0px 25px #000;
}
.spinner span:nth-child(1) {
  position: absolute;
  width: 220px;
  height: 220px;
  background-color: #90caf9;
  left: 6%;
  top: 6%;
  animation: spin 6s infinite;
  animation-delay: 0.3s;
}
.spinner span:nth-child(2) {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #bbdefb;
  left: 10%;
  top: 10%;
  animation: spin 6s infinite;
  animation-delay: 0.4s;
}
.spinner span:nth-child(3) {
  position: absolute;
  width: 180px;
  height: 180px;
  background-color: #e3f2fd;
  left: 14%;
  top: 14%;
  animation: spin 6s infinite;
  animation-delay: 0.5s;
}
.spinner span:nth-child(4) {
  position: absolute;
  width: 160px;
  height: 160px;
  background-color: #90caf9;
  left: 18%;
  top: 18%;
  animation: spin 6s infinite;
  animation-delay: 0.6s;
}
.spinner span:nth-child(5) {
  position: absolute;
  width: 140px;
  height: 140px;
  background-color: #e3f2fd;
  left: 22%;
  top: 22%;
  animation: spin 6s infinite;
  animation-delay: 0.7s;
}
.spinner span:nth-child(6) {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: #90caf9;
  left: 26%;
  top: 26%;
  animation: spin 6s infinite;
  animation-delay: 0.8s;
}
.spinner span:nth-child(7) {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #bbdefb;
  left: 30%;
  top: 30%;
  animation: spin 6s infinite;
  animation-delay: 0.9s;
}
.spinner span:nth-child(8) {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #e3f2fd;
  left: 34%;
  top: 34%;
  animation: spin 6s infinite;
  animation-delay: 1s;
}
.spinner span:nth-child(9) {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: #90caf9;
  left: 38%;
  top: 38%;
  animation: spin 6s infinite;
  animation-delay: 1.1s;
}
.spinner span:nth-child(10) {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: #bbdefb;
  left: 42%;
  top: 42%;
  animation: spin 6s infinite;
  animation-delay: 1.2s;
}
.spinner span:nth-child(11) {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #86c2ed;
  left: 46%;
  top: 46%;
  animation: spin 6s infinite;
  animation-delay: 1.3s;
}

@keyframes spin {
  0% {
    transition: 0.7s;
    transform: rotate(0deg);
  }
  20% {
    transition: 0.7s;
    transform: rotate(180deg);
  }
  35% {
    transition: 0.7s;
    transform: rotate(2deg);
  }
  50% {
    transition: 0.7s;
    transform: rotate(360deg);
  }
  90% {
    transition: 0.7s;
    transform: rotate(0deg);
  }
  100% {
    transition: 0.7s;
    transform: rotate(0deg);
  }
}
@keyframes twist {
  0% {
    transition: 0.7s;
    transform: rotate(0deg);
  }
  100% {
    transition: 0.7s;
    transform: rotate(360deg);
  }
}
