@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: normal;
  src: url("./fonts/IRANSansX-Regular.woff2") format("woff2");
}

@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: bold;
  src: url("./fonts/IRANSansX-Bold.woff2") format("woff2");
}

:root {
  --hms-ui-fonts-sans: IRANSansX, sans-serif !important;
}

/* exit modal */
.hms-ui-c-iwOMvD-iiXIGGA-css {
  direction: rtl;
}

/* speaker name on top */
.hms-ui-c-iwOMvD-idWNyqW-css {
  margin-right: var(--hms-ui-space-2);
}

/* speaker icon on top */
.hms-ui-c-dhzjXW-ioMqPg-gap-2>*+* {
  margin-right: 30px;
}

/* context menu */
.hms-ui-c-ciqqhp {
  direction: rtl;
}

/* context menu items icon margin */
.hms-ui-c-iwOMvD-illLBCO-css {
  margin-right: var(--hms-ui-space-4);
}

.hms-ui-c-bilZVH-ieFffin-css~.send-msg {
  transform: scaleX(-1);
}

/* exit button */
.hms-ui-c-bIwPpW {
  padding-top: 10px !important;
}

/* share button */
.hms-ui-c-eeTFKl {
  padding-top: 10px !important;
}

/* title bar logo */
.hms-ui-c-dhzjXW-ibsrtLl-css {
  left: unset;
  right: var(--hms-ui-space-10);
}

/*  */

.hms-ui-c-dhzjXW-ioAcOv-css {
  direction: rtl !important;
}

p {
  direction: rtl;
}

.hms-ui-c-dhzjXW {
  /* direction: rtl !important; */
}

/* chat input */
.hms-ui-c-dhzjXW-igJodXj-css {
  padding-right: var(--hms-ui-space-8);
}

/* settings close button */
.hms-ui-c-nJLzc-iecTTtq-css {
  right: auto !important;
  left: var(--hms-ui-space-10);
}

/* settings list */
.hms-ui-c-cByYkQ {
  padding-right: 0px;
  margin-right: 0px;
  padding-left: var(--hms-ui-space-12);
  /* margin-right: calc(var(--hms-ui-space-12)* -1); */
}

/* chat time */
.hms-ui-c-iwOMvD-ikEZEAH-css {
  margin-right: unset !important;
  right: unset !important;
  left: 0 !important;
  margin-left: var(--hms-ui-space-4) !important;
}

.hms-ui-c-gpvKza {
  gap: 8px;
}

.hms-ui-c-dmpYSy {
  text-align: right;
}

.hms-ui-c-PJLV-iipSlfC-css {
  direction: rtl;
}

.hms-ui-c-dhzjXW-ijbACyZ-css {
  direction: rtl;
}

/* have a nice day! */
.hms-ui-c-iwOMvD-icnsjpW-css {
  display: none;
}

.hms-ui-c-dhzjXW-ifSDEuX-css {
  gap: 4px;
}

.send-msg {
  transform: scaleX(-1);
}

.participant_menu_content {
  z-index: 10000;
}

.swal2-popup {
  display: grid;
  background-color: #2b2a2a;
  color: #fff;
  font-family: IRANSansX;
}

.swal2-styled {
  font-family: IRANSansX;
}

.swal2-popup-rtl {
  direction: rtl;
}

.swal2-bottom-toast {
  position: fixed !important;
  bottom: 2rem !important;
  left: 2rem !important;
  max-width: 400px !important;
  width: 90% !important;
}

.swal2-title {
  font-weight: 12px;
}

.hms-ui-c-kuprMu-ifDrUlw-css, .hms-ui-c-jcEtOY-ieQLkGr-css, .hms-ui-c-kuprMu-ikiDUYg-css,
.hms-ui-c-hPPQzC-icIpodg-css, .hms-ui-c-dhzjXW-iiqxqrZ-css {
  direction: rtl;
}

/* Speaking animation for avatar */
@keyframes avatar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.avatar-speaking {
  animation: avatar-pulse 1.5s ease-in-out infinite !important;
  border: 3px solid rgba(37, 99, 235, 0.8) !important;
}
