@font-face {
  font-family: "IranSans";
  src: url("../assets/assets/fonts/iran_sans_web_ultra_light.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IranSans";
  src: url("../assets/assets/fonts/iran_sans_web_light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IranSans";
  src: url("../assets/assets/fonts/iran_sans_web.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IranSans";
  src: url("../assets/assets/fonts/iran_sans_web_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IranSans";
  src: url("../assets/assets/fonts/iran_sans_web_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IranSans";
  src: url("../assets/assets/fonts/iran_sans_web_black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

#lottieLoading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  width: 100%;
  /* 100vh is taller than the visible viewport on iOS Safari; dvh matches what the user sees */
  height: 100vh;
  height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 9999;
  background: #fff;
  overflow: hidden;
}

#lottie-container {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#post-lottie-loading {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  align-self: center;
  width: min(420px, calc(100vw - 32px));
  margin: 8px 16px 8px;
  display: none;
  pointer-events: none;
}

#post-lottie-loading .linear-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

#post-lottie-loading .linear-bar {
  width: 45%;
  height: 100%;
  border-radius: 999px;
  background: #5bab49;
  animation: lottieLinearLoading 1.1s ease-in-out infinite;
}

#post-lottie-loading .loading-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  direction: rtl;
  font-family: "IranSans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: #334155;
  min-height: 1.35em;
}

#post-lottie-loading .loading-meta span {
  min-width: 0;
  word-break: break-word;
}

@keyframes lottieLinearLoading {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(260%);
  }
}
