:root{
    --circle-width: 525px;
    --loading-z-index: 9000;
}

.loadingScreen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--loading-z-index);
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loadingScreen p {
    color: var(--color-background);
    font-size: 2em;
    overflow: hidden;
}

.loadingScreen #container-letters {
     display: flex;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-self: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 25px;
    max-width: 250px;
    flex-direction: row;
    z-index: calc(var(--loading-z-index) + 2);
}

.loadingScreen .letter {
    width: 500px;
    height: 280px;
    font-size: 10em;
}



.loadingScreen .blocker {
    position: fixed;
    top: 50%;
    left: calc(50% - (var(--circle-width / 2)));
    margin: 0;
    margin-left: auto;
    margin-right: auto;   
    width: 100%;
    height: calc(var(--circle-width) - 200px); 
    z-index: var(--loading-z-index);
    background-color: white;
    display: none;
}

.loadingScreen img{
    position: fixed;
    width: 50px;
    height: 50px;
    margin: 0;
}

@keyframes spin_CW {
    from { transform:rotate(0deg); }
    to { transform:rotate(360deg); }
}

@keyframes spin_CCW {
    from { transform:rotate(0deg); }
    to { transform:rotate(-360deg); }
}

.loadingScreen #container-circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--circle-width);
    height: var(--circle-width);
    margin-top: calc((var(--circle-width) / 2) * -1); 
    margin-left: calc((var(--circle-width) / 2) * -1); 
    transform-origin: center center;
    animation: spin_CW 5s linear infinite;
}

.loadingScreen #container-circle-inner > * {
    transition: top 1s, left 1s;
    transform: translate3d(0,0,0); /* This won't change the position, but might trigger GPU rendering */
    animation: spin_CCW 2.5s linear infinite;   
}

/* The pulsating button that is only visible after the website content loads */

.loadingScreen .btn-container {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  margin-top: -163px;
  margin-left: -155px;
  z-index: calc(var(--loading-z-index) + 2);
  transform: translate(-50%, -50%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loadingScreen .btn-container p {
    font-size: 1.5em;
    cursor: pointer;
}

.loadingScreen .bg,
.loadingScreen .button {
  position: absolute;
  width: 155px;
  height: 160px;
  border-radius: 100%;
  background: none;
}

.loadingScreen .button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  border: none;
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.loadingScreen .button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s ease-in-out;
}

.loadingScreen .button:hover::before, 
.loadingScreen .button.fill::before {
  transform: scaleY(1);
}

@keyframes pulse {
  0% {
    transform: scale(1, 1);
  }
  50% {
    opacity: 0.23;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.loadingScreen #container-filler {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -168px;
    width: 80px;
    height: 108px;
    background-color: var(--color-background);
    border-radius: 100%;
    z-index: calc(var(--loading-z-index) + 1);
}

.loadingScreen .filler {
    height: 100%;
    width: 100%;
    background-color: white;
    border-radius: 100%;
}

.loadingScreen #container-progress{
    position: fixed;
    top: 77%;
    text-align: center;
    z-index: calc(var(--loading-z-index) + 3);
}

.loadingScreen #container-users {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  top: 3%;
  font-size: 0.5em;
}

.loadingScreen #container-users img {
  height: 30px;
  width: 30px;
  border: 1px solid var(--color-background);
  border-radius: 100%;
  padding: 5px;
  fill: white;
  margin: 5px;
  position: relative;
  margin-left: -13px;
}

.loadingScreen #container-user-icons{
  display: flex;
  flex-direction: row;
  text-align: center;
  align-items: center;
  justify-content: center;
  align-content: center;
}

.loadingScreen #loading-message{
    font-size: 1em;
    z-index: calc(var(--loading-z-index) + 1);
    position: fixed;
    top: 70%;
}
