/*
  Copyright (c) 2021-2026 Littleton Robotics
  http://github.com/Mechanical-Advantage

  Use of this source code is governed by a BSD
  license that can be found in the LICENSE file
  at the root directory of this project.
*/

div.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

div.loading-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  animation: loading 1s ease-in-out infinite;
}

.loading-bar:nth-child(1) {
  background-color: #303dc9;
  animation-delay: 0;
}

.loading-bar:nth-child(2) {
  background-color: #a8afd3;
  animation-delay: 0.09s;
}

.loading-bar:nth-child(3) {
  background-color: #303dc9;
  animation-delay: 0.18s;
}

.loading-bar:nth-child(4) {
  background-color: #a8afd3;
  animation-delay: 0.27s;
}

.loading-bar:nth-child(5) {
  background-color: #303dc9;
  animation-delay: 0.36s;
}

@keyframes loading {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1, 2.2);
  }
  40% {
    transform: scale(1);
  }
}
