@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/Inter-Bold.ttf') format('truetype');
}

html,
body {
  @include font-inter;
  background: var(--app-bg-color);
  color: var(--app-text-color);

  --ion-safe-area-top: env(safe-area-inset-top);
  --ion-safe-area-bottom: env(safe-area-inset-bottom);
  --ion-safe-area-left: env(safe-area-inset-left);
  --ion-safe-area-right: env(safe-area-inset-right);

  [data-popper-placement] {
    z-index: 1;
  }

  &.mobile {
    font-size: 16px;
  }

  &.web {
    font-size: 14px;
  }

  &.desktop {
    font-size: 14px;
  }


  &.app,
  &.acreom-app,
  &.error {
    overflow: hidden;
    background: var(--app-bg-color);

    &.mobile {
      background: var(--app-mobile-bg-color);
    }
  }

  &.auth {
    height: 100vh;
    background: var(--app-auth-bg-color);
  }

  &.acreom-app {
    overflow: hidden;
  }
}

button,
[type='button'],
[type='reset'],
[type='submit'],
[role='button'] {
  cursor: default !important;
  outline: none !important;
}

.drag {
  -webkit-app-region: drag;
}

.no-drag {
  -webkit-app-region: no-drag;
}

.task-adder-animation {
  opacity: 1;
  transform: scale(1) translateY(0px);
}

.task-adder-animation-enter {
  opacity: 0;
  transform: scale(0.8) translateY(-40px);
}

.task-adder-animation-enter-active {
  transition: opacity 0.2s cubic-bezier(0.65, 0, 0.35, 1),
  transform 0.2s cubic-bezier(0.07, 0.26, 0.2, 1);
  transform-origin: center center;
}

.task-adder-animation-leave-active {
  transition: opacity 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.task-adder-animation-leave-to {
  opacity: 0;
}

.fade-long-enter-active {
  transition: opacity 0.5s cubic-bezier(0.61, 1, 0.88, 1),
  transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-long-leave-active {
  transition: opacity 0.5s cubic-bezier(0.12, 0, 0.39, 0),
  transform 0.5s cubic-bezier(0.64, 0, 0.78, 0);
}

.fade-long-enter,
.fade-long-leave-to {
  opacity: 0;
  transform: scale(0);
}

.fade-long {
  transform: scale(1);
  opacity: 1;
  transform-origin: center;
}

.fade-enter-active {
  transition: opacity 0.15s;
}

.fade-leave-active {
  transition: opacity 0.15s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.fade {
  opacity: 1;
}

.fade-move-enter-active {
  transition: opacity 0.1s cubic-bezier(0.61, 1, 0.88, 1),
    //top 0.1s cubic-bezier(0.61, 1, 0.88, 1),
  transform 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-move-leave-active {
  transition: opacity 0.1s cubic-bezier(0.12, 0, 0.39, 0),
    //top 0.1s cubic-bezier(0.12, 0, 0.39, 0),
  transform 0.1s cubic-bezier(0.64, 0, 0.78, 0);
}

.fade-move-enter,
.fade-move-leave-to {
  opacity: 0;
  //top: calc(100%);
  transform: scale(0.92);
}

.slide-fade-enter-active {
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-fade-leave-active {
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.64, 0, 0.78, 0);
}

.slide-fade-enter,
.slide-fade-leave-to {
  opacity: 0;
  transform: scale(0.9);
}

.slide-fade {
  transform: scale(1);
}

.ProseMirror {
  outline: none;

  &:focus {
    outline: none;
  }

  table {
    overflow: auto;
  }
}

.tippy-tooltip.tooltip-theme {
  background-color: transparent;
  padding: 0;

  .tippy-backdrop {
    background-color: transparent;
  }
}

.tooltip {
  @include font12-500;
  padding: 5px 7px 5px 10px;
  display: flex;
  align-items: center;
  color: var(--tooltip-text-color);
  border-radius: 6px;
  background: var(--tooltip-bg-color);
  -webkit-backdrop-filter: blur(6x); /* Safari 9+ */
  backdrop-filter: blur(6px);

  &.task-tooltip {
    display: block;
    text-align: left;

    span {
      color: var(--accent-color);
    }
  }

  &.mini-calendar {
    background: var(--tooltip-minicalendar-bg-color);
  }

  &.new-sync-vault {
    text-align: left;
    max-width: 220px;
    //font-weight: 400;
    //font-size: 11px;
  }

  &.task-delete {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    .document-tooltip {
      display: flex;
      align-items: center;

      .icon {
        margin-right: 5px;
      }
    }
  }

  &-divider {
    display: block;
    border-radius: 50%;
    margin: 0 4px;
  }

  &-button {
    @include font12-500;
    color: var(--tooltip-button-text-color);
    height: 16px;
    background: var(--tooltip-button-bg-color);
    border-radius: 3px;
    font-weight: 500;
    line-height: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:not(:last-of-type) {
      margin-right: 3px;
    }
  }
}

.tippy-box {
  outline: none;
}

.vue-virtual-collection {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.vue-virtual-collection-container {
  position: relative;
}

.vue-virtual-collection .cell-container {
  position: absolute;
  top: 0;
  left: 0;
}

.vfm__container {
  @include scrollbar;
  display: flex;
  padding-top: 15vh;
  justify-content: space-around;
  overflow-y: auto;
  padding-bottom: 15vh;
  padding-left: 5vh;
  padding-right: 5vh;

  @media(max-height: 690px) {
    padding-top: 5vh;
    padding-bottom: 5vh;
  }

  .vfm__content {
    align-self: flex-start;
  }
}

.deeper-enter-active,
.deeper-leave-active {
  position: absolute !important;
  width: 100%;
  max-width: 100vw; /*make sur our content keep it's original width*/
  transition: transform 0.17s ease;
  top: var(--ion-safe-area-top);
}

/* entering start */
.deeper-enter {
  transform: translateX(100%);
}

/* entering end */
.deeper-enter-to {
  transform: translateX(0);
}

/* leaving start */
.deeper-leave {
  transform: translateX(0);

  &::after {
    background: rgba(0, 0, 0, 0) !important;
  }
}

/* leaving end */
.deeper-leave-to {
  transform: translateX(-60px);

  &::after {
    background: rgba(0, 0, 0, 0.5) !important;
  }
}

.back-enter-active,
.back-leave-active {
  position: absolute !important;
  width: 100%;
  max-width: 100vw; /*make sur our content keep it's original width*/
  transition: transform 0.17s ease;
  top: var(--ion-safe-area-top);
}

.back-enter-active {
  z-index: 1;
}

.back-leave-active {
  z-index: 2;
}

.back-leave {
  transform: translateX(0px);
}

.back-leave-to {
  transform: translateX(100%);
}

.back-enter {
  transform: translateX(-60px);

  &::after {
    background: rgba(0, 0, 0, 0.5) !important;
  }
}

.back-enter-to {
  transform: translateX(0px);

  &::after {
    background: rgba(0, 0, 0, 0) !important;
  }
}

.page {
  will-change: transform;

  .mobile & {
    box-shadow: -1px 0px 0px 0px var(--tab-divider-color);
  }

  &::after {
    transition: background 0.17s ease-in-out;
    will-change: background;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
  }
}

.os-theme-light.os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle {
  background-color: var(--scrollbar-bg-color) !important;

  &:hover {
    background-color: var(--scrollbar-bg-color__hover) !important;
  }
}

.scale-enter-active {
  animation: scale-in 0.2s;
}

.scale-leave-active {
  animation: scale-in 0.2s reverse;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 1s linear infinite;
}

@keyframes scale-in {
  0% {
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.move-in-enter-active {
  animation: move-in 0.4s;
}

.move-in-leave-active {
  //animation: move-in 0.2s reverse;
}

@keyframes move-in {
  0% {
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.fade-in-enter-active {
  transition: opacity 0.1s cubic-bezier(0.61, 1, 0.88, 1);
}

.fade-in-leave-active {
}

.fade-in-enter,
.fade-in-leave-to {
  opacity: 0;
}

.fade-in {
  opacity: 1;
  transform-origin: top;
}

.modals-container {
  position: relative;
  z-index: 2;
}

.github-timeline-date {
  @include font12-400;
  color: var(--github-timeline-date-color);
  position: relative;
  white-space: nowrap;
}

.github-timeline-author {
  @include font12-700;
  color: var(--github-timeline-author-color);
}

.github-timeline-text {
  @include font12-400;
  color: var(--github-timeline-text-color);

  &:hover {
    color: var(--github-timeline-text-color__hover);
  }
}


