/* Global body setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%; /* Ensure the body fills the full viewport height */
    width: 100%;
    line-height: 1;  
    font-family: 'finnshandwriting', sans-serif;
  background-color: #d2ffd3;
  color: #000000;
  text-align: center;
}



/* Spinner that is always visible before content loads */
#spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  z-index: 9999;
  color: black;
  background: white;
  padding: 10px 20px;
  border-radius: 8px;
}

    #Title {
  margin-top: 0;
  padding: 10px;
font-size: 30px;
}

/* #content will have its own background and fade in after loading */
#content {
  min-height: 100vh;  /* Full viewport height */
    min-width: 100vh;
  opacity: 0;             /* Initially hidden */
  transition: opacity 0.5s ease;
  background-color: #d2ffd3; /* White background after loading */
  color: #000000;         /* Text color */
  font-size: 25px;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Fade in content once loaded */
body.loaded #content {
    min-height: 100vh;
  opacity: 1;
}

/* Hide spinner after content has loaded */
body.loaded #spinner {
  display: none;
}
