@import "import";

html {
  font-family: font-family(base);
  font-size: font-size(base);
  line-height: line-height(base);
  letter-spacing: letter-spacing(base);
  font-weight: font-weight(base);
  background-color: color(black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  @include transition(color, 0.4s);
}

html,
body {
  position: fixed;
  width: 100%;
  height: 100%;
  overscroll-behavior-y: contain;
  overflow: hidden;
}

#__next {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  isolation: isolate;
}

hr {
  @include global-container;
  width: min(calc(100% - spacer(4) * 2), calc(max-w(global) - spacer(4) * 2));
  height: 0.05rem;
  border: none;
  background-color: currentColor;

  @include breakpoint(medium) {
    width: min(calc(100% - spacer(6) * 2), calc(max-w(global) - spacer(6) * 2));
  }
}

.debug {
  @include debug;
}

.light,
.dark {
  @include transition(color, 0.4s);
}

.light {
  color: color(on-surface-light);
}

.dark {
  color: color(on-surface-dark);
}

/* Lenis */

.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

//share

.web-share-fade {
  animation: rwsFade 0.5s;
  animation-fill-mode: both;
}

@keyframes rwsFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.web-share-fade-in-up {
  animation: rwsfadeInUp 0.5s;
  animation-fill-mode: both;
}

@keyframes rwsfadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.rws-icons {
  width: 100%;
  height: 100%;
  @include flex(row, center, center, 12px);
}

.rws-icon {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: 0;
  background: #1a78f6;
  border-radius: 9999px;
  font-size: 0;
  transition: transform 0.3s;
  &:hover {
    transform: scale(1.1);
  }

  svg {
    transform: scale(0.6);
  }
}

.rws-container {
  width: 340px;
  padding: 18px 32px;
  @include flex(column, center, center, 1.8rem);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.25);
}

.rws-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1400;
}

.rws-header {
  font-family: var(--font-family-sans-serif);
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.016rem;
  @include flex();
}

.rws-close {
  background: #edf2f7;
  cursor: pointer;
  padding: 0.75rem;
  display: block;
  width: 100%;
  border: 0;
  font-size: 1rem;
  display: none;
}

#results {
  height: var(--vh);
  > div {
    padding: 0;
  }
}

// Clerk overrides

.cl-card {
  transform: scale(1.35);
  transform-origin: top center;
}

.cl-footerAction {
  flex-direction: column;
}

.cl-footer {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column-reverse;
}

.cl-footerPages {
  display: inline;
}

.cl-footerActionText,
.cl-footerPagesLink {
  font-size: 0.75rem;
}

.cl-footerPagesLink__privacy {
  margin-right: 3px;
}

.cl-userButtonPopoverFooter {
  display: none;
}

.cl-userProfile-root,
.cl-userProfile-root .cl-card {
  width: 100%;
}
