/* Add styles for the loading screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F1ECE6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadein-fadeout 10s;
  opacity: 0;  
}

.text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-screen p {
  color: black;
  font-family: 'Brawler', sans-serif;
  font-size: 4vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein-fadeout 10s;
  margin: 0
  /*animation: fadein-fadeout 2s;
  animation: fadein-slidein 3s;
  transform: scale(0);*/
}


#loading-screen .line1 {
  transform-origin: 50% 50%;
  /*transform-style: preserve-3d;*/
  animation: move-text 3s forwards;
  animation-iteration-count: 1;
  font-family: 'Brawler', sans-serif;
  font-style: italic;
	
}

/*#loading-screen .line1 span {
  display: block;
  transform: translateZ(50px);
}*/

#loading-screen .line2 {
  font-family: 'Brawler', sans-serif;
  font-weight: 600bold; 
  margin-top: 2vh;
  animation: fadein-slidein 5s;
  animation-delay: 1.5s;
  opacity: 0;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	
}

/* Add animation for the text */
@keyframes rotate-scale {
  from {
    transform: rotateY(180deg) scale(0);
	opacity: 0.3;
  }
  to {
    transform: rotateY(360deg) scale(1);
	opacity: 1;
  }
}

/* Add animation for the loading screen */
@keyframes fadein-fadeout {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadein-slidein {
  from {
    transform: translateX(-60px);
    opacity: 0.3;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Add animation for the text */
@keyframes scalein {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes move-text {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}
