/* Import fonts */
@import url('./fonts/Yekan Bakh FaNum/Webfonts/fontiran.css');
@import url('./styles/spaces/index.css');
@import url('./styles/calling.css');

/* Global */

@media (max-width: 500px) {
  .btn__close {
    display: none;
  }

  .vel-modal {
    position: static !important;
    z-index: 1 !important;
  }
}

*::-webkit-scrollbar {
  display: none !important;
}

.container-full {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.user-select-none {
  user-select: none;
}

.cursor-pointer {
  cursor: pointer;
}

.font-farsi * {
  font-family: Yekan Bakh FaNum;
}
.font-farsi ion-text {
  direction: rtl;
}
ion-input.english-font input {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}
.ripple-parent {
  position: relative;
  overflow: hidden;
}
.text-white {
  color: var(--ion-color-white);
}
.ellipsis-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.ellipsis-2-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2; /* Number of lines to show */
}
.text-direction-right {
  direction: rtl !important;
}
.text-direction-left {
  direction: ltr !important;
}

.avatar-color-1 {
  background-color: #8234f7;
  color: #fff;
}
.avatar-color-2 {
  background-color: #5de073;
  color: #fff;
}
.avatar-color-3 {
  background-color: #19a587;
  color: #fff;
}
.avatar-color-4 {
  background-color: #f13948;
  color: #fff;
}
.avatar-color-5 {
  background-color: #d85fba;
  color: #fff;
}
.avatar-color-6 {
  background-color: #005397;
  color: #fff;
}
.item-blue-background {
  background-color: #0066ffcc;
}
.item-cyan-background {
  background-color: #44dbfc;
}
.item-yellow-background {
  background-color: #f8c615;
}
.item-green-background {
  background-color: #41e133;
}
.item-red-background {
  background-color: #fc4465;
}
.opacity-0 {
  opacity: 0;
}

.slid-up-animation {
  animation: 0.3s slid-up;
}
.slid-down-animation {
  animation: 0.3s slid-up;
}

.chat-name-animation {
  animation: 10s chat-name infinite;
}

@keyframes chat-name {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.slid-left-animation {
  animation: 0.1s slid-left;
}

@keyframes slid-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slid-up {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

.v3-emoji-picker .v3-body,
.v3-emoji-picker .v3-footer {
  background: var(--ion-color-light);
  color: var(--ion-color-dark);
}

.animated-file-icon-downloding {
  animation-name: rotatedAnim;
  animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  animation-duration: 3s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
}
@keyframes rotatedAnim {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fade-animation {
  animation: 0.8s fade-animation;
}

@keyframes fade-animation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.zoom-out-animate {
  animation: 0.8s zoom-out;
}
@keyframes zoom-out {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
.zoom-in-animate {
  animation: 0.8s zoom-in;
}
@keyframes zoom-in {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.vue-recycle-scroller.ready .vue-recycle-scroller__item-view {
  z-index: 2;
}

::-webkit-scrollbar {
  width: 0px;
  border: 0px solid #2c2c2c;
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  border-radius: 5px;
  background: #eeeeee;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #cac8c8;
}
.context-menu-in-chat {
  width: min-content;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Define the animation for sliding out to the right */
@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* Apply the animations to the modal */
.ion-modal.slide-in-right .modal-wrapper {
  animation: slideInRight 0.3s ease-out;
}

.ion-modal.slide-out-right .modal-wrapper {
  animation: slideOutRight 0.3s ease-out;
}
