@font-face {
  font-family: 'YekanBakh';
  src: url('https://dl.zaniscarpet.com/2024/11/YekanBakhFaNum-VF-1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: 'YekanBakh', sans-serif;
}

button {
  white-space: nowrap;
  flex: 0 0 auto;
}

:root{
  --user-bg-color: #BF3131;
  --user-color: white;
  --bot-bg-color: #D9D9D9;
  --bot-color: black;
}

.bg-linear{
  background: linear-gradient(135deg, #a02424, #bf3131);
}
.btn-linear{
  background: linear-gradient(135deg, #a02424, #bf3131);
  color: white;
}
.text-bg-linear{
  background-color: var(--user-bg-color);
}

.border-be-0{
  border-bottom-left-radius: 0 !important;
}

.mw-90{
  max-width: 90% !important;
}

.fs-7{
  font-size: 0.8rem;
}

.p-cu{
  cursor: pointer;
}
/* ----------------------------------------------------------------------------------------- */

/* From Uiverse.io by Praashoo7 */ 
.load {
  display: flex;
  border-radius: 50%;
  flex-direction: row;
}

.progress {
  width: 10px;
  height: 10px;
  margin: 5px;
  scale: 0;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  animation: loading_492 2s ease infinite;
  animation-delay: 1s;
}

@keyframes loading_492 {
  50% {
    scale: 1;
  }
}

.progress:nth-child(2) {
  animation-delay: 1.3s;
}

.progress:nth-child(3) {
  animation-delay: 1.7s;
}

/* ----------------------------------------------------------------------------------------- */

/* From Uiverse.io by satyamchaudharydev */ 
.loader {
  display: block;
  --height-of-loader: 4px;
  --loader-color: #BF3131;
  width: 130px;
  height: var(--height-of-loader);
  border-radius: 30px;
  background-color: rgba(0,0,0,0.2);
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  background: var(--loader-color);
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 30px;
  animation: moving 1s ease-in-out infinite;
  ;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}

/* ----------------------------------------------------------------------------------------- */

.wrapper {
  background: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.cont{
  background: #f9f9f9;
  max-width: 576px;
}

.upintro{
  height: 60%;
}
.downintro{
  height: 35%;
}

.message {
  padding: 10px;
  border-radius: 15px;
  max-width: 70%;
  word-wrap: break-word;
}

.message.bot {
  margin-left: 35px;
  background-color: var(--bot-bg-color);
  color: var(--bot-color);
}

.message.user {
  /* border-top-right-radius: 0; */
  background-color: var(--user-bg-color);
  color: var(--user-color);
  align-self: flex-start;
}

.custom-file-upload {
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.scrollanim{
  animation: autoscroll 1s ease-in-out;
}

/* -----------------------------------------------------------------------------------------*/ 

@keyframes autoscroll {
  0%{
    transform: translateX(0);
  }
  50%{
    transform: translateX(100px);
  }
  1000%{
    transform: translateX(0);
  }
}