input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-middle);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-inactive);
}
/* End of scrollbar */

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.w-fit {
  width: fit-content;
}

.h-fit {
  height: fit-content;
}

.no-select {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.clickable {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.glass-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset -1px 2px 10px rgba(255, 255, 255, 0.5),
    inset 0 -5px 10px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.1);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  overflow: hidden;
  isolation: isolate;
}

.glass-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
  z-index: 20;
  transition:
    transform 0.75s ease-in-out,
    opacity 0.3s ease;
  opacity: 0;
}

.glass-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
  z-index: 10;
}

.glass-box:hover::before {
  transform: translateX(100%) rotate(25deg);
  opacity: 1;
  animation: sweep 2s infinite cubic-bezier(0.56, -0.04, 0.35, 1.42);
}

@keyframes sweep {
  0% {
    transform: translateX(-100%) rotate(25deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    transform: translateX(100%) rotate(25deg);
    opacity: 0;
  }
}

#theme-container {
  z-index: 100;
  right: 0.3rem;
  top: 0;
  width: fit-content;
  height: fit-content;
}

#moon-container {
  transform: scaleX(-1);
}

#toggle-menu-container {
  z-index: 100;
  right: calc(64px + 5 * 0.3rem);
  top: 0;
  width: fit-content;
  height: fit-content;
}

#toggle-menu-container > div {
  width: 34px;
  height: 34px;
}
