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

/* Ensure the body takes the full height and width of the viewport */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  -ms-overflow-style: none; /* hide the scroll bar for IE and Edge */
}

/* Hide scroll bar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
body {
  scrollbar-width: none;  /* Firefox */
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.anchor {
  height: 0px;
  width: 0px;
  display: none;
}

spline-viewer {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

main {
  background-color: #ffffff;
}

.title {
  font-size: 4em;
  text-transform: uppercase;
  color: #fff;
}

.subtitle {
  font-size: 2em;
  margin-top: 0.5em;
  margin-bottom: 2em;
  color: #fff;
}

.text {
  font-size: 1em;
  line-height: 1.5em;
  max-width: 600px;
  color: #fff;
}

#loading-screen {
  height: 100vh;
  width: 100%;
  flex: 1;
  position: absolute;
  transition: opacity 1s ease-out;
  z-index: 9999;
}

.fade-out {
  opacity: 0;
}


#glazing-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
  pointer-events: none;
}

#white-patch {
  position: absolute;
  width: 200px;
  height: 100px;
  bottom: 0;
  right: 0;
  background-color: white;
  z-index: -1; /* Ensure it is under #glazing-layer (z-index: 0) but above #loading-animation (z-index: -2) */
}


#loading-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#loading-dialogue {
  width: 100%;
  flex: 1;
  text-align: center;
  font-family: Arial, sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#loading-text {
  font-size: 1.5em;
  margin-bottom: 20px;
}

#progress-container {
  flex: 1;
  position: relative;
  width: 40%;
  background-color: #e0e0e0;
  border-radius: 25px;
  overflow: hidden;
  margin: 0 auto;
}

#progress-bar {
  height: 30px;
  width: 0;
  background-color: #000;
  border-radius: 25px;
  transition: width 0.5s;
}

#resource-name {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 30px;
  top: 0;
  left: 0;
  color: white;
  mix-blend-mode: difference;
}
