* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter_28pt-Regular.ttf);
  font-weight: 400;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter_28pt-Thin.ttf);
  font-weight: 300;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter_24pt-Light.ttf);
  font-weight: 200;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 168, 255, 0.55) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 168, 255, 0.75), rgba(74, 125, 224, 0.75));
  border-radius: 100px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(140, 190, 255, 0.9), rgba(94, 145, 244, 0.9));
}

.loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 16, 34, 0.55);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}
