/* style.css */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* or dark background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* keeps it on top */
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

#slideText {
  position: fixed;
  top: 30%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 9998;
  pointer-events: none;
}

#slideText h2 {
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 2rem;
  margin-left: -100vw;
  opacity: 0;
}

#slideText.show h2 {
  animation: slideInLeft 1s forwards;
}

@keyframes slideInLeft {
  from {
    margin-left: -100vw;
    opacity: 0;
  }
  to {
    margin-left: 40px;
    opacity: 1;
  }
}
