@import url("https://fonts.googleapis.com/css2?family=Koulen&display=swap");

html {
  font-size: 100%; /* Establish 1rem = 16px (browser default) */
  box-sizing: border-box; /* Better box model */
}

*,
*::before,
*::after {
  box-sizing: inherit; /* Inherit box-sizing */
}

body {
  margin: 0; /* Remove default body margin */
  padding-top: 60px; /* Add padding to body to prevent content overlap with fixed header */
  font-family: "Roboto", sans-serif; /* Default font */
  overflow: hidden; /* Prevent scrollbars */
  background-color: black; /* Ensure body background is black */
}

/* --- Loader Styles --- */
#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top of everything */
  opacity: 1;
  transition: opacity 0.75s ease-out; /* Smooth fade-out */
}

#loader-container.hidden {
  opacity: 0;
  pointer-events: none; /* Allow interaction with content below after hiding */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.2); /* Light grey border */
  border-left-color: #ffffff; /* White moving part */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* --- End Loader Styles --- */

canvas {
  position: absolute; /* Position explicitly */
  top: 0;
  left: 0;
  display: block; /* Prevent potential inline spacing issues */
  width: 100%;
  height: 100%;
  z-index: 0; /* Place it below scene containers (z-index: 1) */
}
