html {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #ffffff;
}

html > body {
  display: none;
}

html::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 2. Disabled state: When .loaded is added, restore normal layout and remove spinner */
html.loaded {
  display: block;
  height: auto;
  background-color: transparent;
}

html.loaded > body {
  display: block;
}

html.loaded::after {
  display: none;
}

