@import url("https://fonts.googleapis.com/css2?family=Inter&family=Roboto&family=Vazirmatn:wght@100..900&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Vazirmatn", sans-serif;
}
html,
body {
  overflow-x: hidden;
}
.st0 {
  fill: #1e1e2f;
}
.st1 {
  fill: #ff6b6b;
}
.st2 {
  fill: #ffffff;
}
.orange-ball {
  animation: bounce 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: center bottom;
}

.orange-balltwo {
  animation: bouncetwo 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: center bottom;
}

@keyframes bounce {
  0% {
    transform: translateY(-2px);
  }
  15% {
    transform: translateY(10px);
  }
  30% {
    transform: translateY(-6px);
  }
  45% {
    transform: translateY(4px);
  }
  60% {
    transform: translateY(-3px);
  }
  75% {
    transform: translateY(1.5px);
  }
  90% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bouncetwo {
  0% {
    transform: translateY(2px);
  }
  15% {
    transform: translateY(-10px);
  }
  30% {
    transform: translateY(6px);
  }
  45% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(3px);
  }
  75% {
    transform: translateY(-1.5px);
  }
  90% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
.Toastify__close-button {
  left: 6px !important;
  right: unset !important;
}
.Toastify__toast {
  font-family: unset !important;
}
.btn {
  font-size: 13px;
  padding: 4px 8px;
  background: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  margin: 2px;
  transition: background 0.3s;
}
.custom-toast {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
}
.Toastify__toast-container {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.btn:hover {
  background: #ddd;
}
.ProseMirror ::selection {
  background: transparent;
  outline: none !important;
}
.ProseMirror ::selection {
  background: #f0f0f0;
  outline: none !important;
}
.ProseMirror {
  outline: none !important;
}
.ProseMirror a {
  color: #2563eb;
  text-decoration: underline;
}

.ProseMirror a.is-active {
  background-color: #bfdbfe;
}
.ProseMirror ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  padding-left: 0;
}

.ProseMirror ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  padding-left: 0;
}
.tiptap {
  padding: 4px 20px !important;
  font-size: 0.82rem !important;
  line-height: 22px !important;
}
.direction-ltr {
  direction: ltr;
}
.toast-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.loader {
  border-top-color: #3498db;
  animation: spin 1s linear infinite;
}
.Toastify__toast-theme--light {
  border-radius: 5px !important;
}
.post-style hr {
  margin-top: 10px;
  margin-bottom: 10px;
}
.post-style ul {
  list-style: disc;
}
.post-style a {
  color: #2563eb;
}
.post-style p {
  line-height: 30px;
}
.post-style ul li {
  line-height: 30px;
  margin-right: 20px;
}
.post-style code,
.post-style kbd,
.post-style pre,
.post-style samp {
  text-align: left;
  direction: ltr;
  background: #eee;
  padding-left: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
}
.mention {
  background-color: #eee;
  padding: 2px 4px;
  border-radius: 4px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 480px) {
  .Toastify__toast-container {
    width: 90vw;
    margin: auto;
    margin-top: 20px;
    right: 0px;
  }
  .Toastify__toast {
    --toastify-toast-width: 90% !important;
  }
}
