@use "base/typographs" as *;
@use "base/borders";
@use "base/colors";
@use "base/displays";
@use "base/margins";
@use "base/spacing";
@use "base/tokens";

:root {
  --font-family:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  --height-viewport: calc(100vh - 48px);
  --border-default: 1px solid var(--border-subtle-2);
  --font-weight-large: 700;
}

html,
body,
#root {
  background-color: var(--background-default);
  height: calc(100% - 48px);
  font-family: var(--font-family);
}

body {
  margin: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  cursor: pointer;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-corner {
  background: #fff;
}

.pointer {
  cursor: pointer;
}

.spin {
  display: inline-block;
  animation: spin 2s linear infinite;
  color: var(--icon-primary-default);
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg); /* Positive value for clockwise */
  }
}

.desktop-only {
  display: flex !important;
}

.tablet-only,
.mobile-only,
.desktop-never {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only,
  .mobile-only,
  .tablet-never {
    display: none !important;
  }

  .tablet-only,
  .desktop-never {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .desktop-only,
  .tablet-only,
  .mobile-never {
    display: none !important;
  }

  .mobile-only,
  .desktop-never {
    display: flex !important;
  }
}
