/*
==========
Styles for loader.
==========
*/

.loader__container, .loader__container__process{
    background-color: var(--lowgrey-color);
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    transition: all 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1em;
    color: var(--dark-color);
}

.loader, .loader__process {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid var(--white-color);
  border-radius: 50%;
  border-color: var(--lowgrey-color) var(--white-color);
  animation: l16 1s infinite linear;
}

.loader::before, .loader::after, .loader__process::before, .loader__process::after {    
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
}

.loader::before, .loader__process::before {
  border-color: var(--redwine-color) var(--lowgrey-color);
  animation: inherit; 
  animation-duration: .5s;
  animation-direction: reverse;
}

.loader::after, .loader__process::after {
  margin: 8px;
}

@keyframes l16 { 
  100%{transform: rotate(1turn)}
}

/*
==========
Styles for loader process.
==========
*/

.loader__container__process{
    background-color: var(--lowgrey-color);
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1111;
    left: 0;
    top: 0;
    transition: all 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1em;
    color: var(--dark-color);
}

.loader__process {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid var(--white-color);
  border-radius: 50%;
  border-color: var(--lowgrey-color) var(--white-color);
  animation: l16 1s infinite linear;
}

.loader__process::before, .loader__process::after {    
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
}

.loader__process::before {
  border-color: var(--redwine-color) var(--lowgrey-color);
  animation: inherit; 
  animation-duration: .5s;
  animation-direction: reverse;
}

.loader__process::after {
  margin: 8px;
}
