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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-size: 300px 300px;
  animation: noise 0.3s steps(5) infinite;
  opacity: 0.9;
  will-change: transform;
  z-index: 100;
  pointer-events: none;
}

html {
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #caf291 #121212;
  scroll-behavior: smooth;
  background-color: #f7f8ff;
  color: #121212;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: sans-serif;
}

#loading-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f7f8ff;
}

#loading-bar-container {
  width: 300px;
  height: 5px;
  background-color: #e0e0e0;
  overflow: hidden;
  border-radius: 2.5px;
}
#loading-bar-container #loading-bar {
  width: 0%;
  height: 100%;
  background-color: #121212;
}

@media (max-width: 768px) {
  #loading-bar-container {
    width: 200px;
  }
}
@media (max-width: 480px) {
  #loading-bar-container {
    width: 150px;
  }
}