.boxes {
  --size: 32px;
  --duration: 800ms;
  height: calc(var(--size) * 2);
  width: calc(var(--size) * 3);
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  margin-top: calc(var(--size) * 1.5 * -1);
  transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}

.boxes .box {
  width: var(--size);
  height: var(--size);
  top: 0;
  left: 0;
  position: absolute;
  transform-style: preserve-3d;
}

.boxes .box:nth-child(1) {
  transform: translate(100%, 0);
  animation: box1 var(--duration) linear infinite;
}

.boxes .box:nth-child(2) {
  transform: translate(0, 100%);
  animation: box2 var(--duration) linear infinite;
}

.boxes .box:nth-child(3) {
  transform: translate(100%, 100%);
  animation: box3 var(--duration) linear infinite;
}

.boxes .box:nth-child(4) {
  transform: translate(200%, 0);
  animation: box4 var(--duration) linear infinite;
}

.boxes .box>div {
  --background: var(--navy-primary);
  --top: auto;
  --right: auto;
  --bottom: auto;
  --left: auto;
  --translateZ: calc(var(--size) / 2);
  --rotateY: 0deg;
  --rotateX: 0deg;
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--background);
  top: var(--top);
  right: var(--right);
  bottom: var(--bottom);
  left: var(--left);
  transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxes .box>div:nth-child(1) {
  --top: 0;
  --left: 0;
}

.boxes .box>div:nth-child(2) {
  --background: var(--navy-dark);
  --right: 0;
  --rotateY: 90deg;
}

.boxes .box>div:nth-child(3) {
  --background: var(--navy-light);
  --rotateX: -90deg;
}

.boxes .box>div:nth-child(4) {
  --background: var(--navy-lightest);
  --top: 0;
  --left: 0;
  --translateZ: calc(var(--size) * 3 * -1);
}

@keyframes box1 {

  0%,
  50% {
    transform: translate(100%, 0);
  }

  100% {
    transform: translate(200%, 0);
  }
}

@keyframes box2 {
  0% {
    transform: translate(0, 100%);
  }

  50% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(100%, 0);
  }
}

@keyframes box3 {

  0%,
  50% {
    transform: translate(100%, 100%);
  }

  100% {
    transform: translate(0, 100%);
  }
}

@keyframes box4 {
  0% {
    transform: translate(200%, 0);
  }

  50% {
    transform: translate(200%, 100%);
  }

  100% {
    transform: translate(100%, 100%);
  }
}

html {
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

#load-section {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

#load-section .boxes {
  margin: auto;
}

.bg-0 {
  background-color: rgba(255, 255, 255, 0);
  z-index: -1;
}

.bg-1 {
  z-index: 5;
  background-color: rgba(26, 35, 126, 0.1);
}

.start-animation-bg {
  animation: startBG 0s ease-in;
  transition: all 1s ease-in;
}

@keyframes startBG {
  from {
    z-index: -1;
  }

  to {
    z-index: 5;
  }
}

.end-animation-bg {
  transition: all 1s ease-in;
  animation: endBG 3s ease-in;
}

@keyframes endBG {
  from {
    z-index: 5;
  }

  to {
    z-index: -1;
  }
}

.op-0 {
  opacity: 0;
}

.op-1 {
  opacity: 1;
}

.start-animation-op {
  animation: startOP 0s ease-in;
  transition: opacity 1s ease-in;
}

@keyframes startOP {
  from {
    opacity: 0;
  }

  to {
    z-index: 1;
  }
}

.end-animation-op {
  transition: opacity 1s ease-in;
  animation: endOP 3s ease-in;
}

@keyframes endOP {
  from {
    z-index: 1;
  }

  to {
    z-index: 0;
  }
}

.spinner-border {
  margin: auto;
}