
#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F7F7F8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@font-face {
  font-family: "Kufi";
  src: url("assets/fonts/Kufi.ttf") format("truetype");
}

#loading-page img {
  width: 400px;
  max-width: 80%;
  margin-bottom: 40px;
}

#loading-page p {
  font-family: "Kufi";
  font-size: 18px;
  font-weight: bold;
  color: #18284a;
  margin-bottom: 10px;
  direction: rtl;
}

#progress-bar {
  max-width: 500px;
  width: calc(75vw - 10px);
  height: 12px;
  background-color: #ddd;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  direction: rtl;
}

#progress-bar::-webkit-progress-bar {
  background-color: #ddd;
}

#progress-bar::-webkit-progress-value {
  background-color: #721d16;
  transition: width 1s linear;
  direction: rtl;
  border-radius: 10px;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

#loading-page.loading #progress-bar::-webkit-progress-value {
  animation: loading 2s linear infinite;
}

#text::after {
  content: "...";
  animation: loading 2s linear infinite;
  color: #721d16;
  margin-left: 3px;
}

@keyframes loading {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
