html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Azeret Mono", monospace;
  background-color: #0e1117;
  color: #ffffff;
  overflow: hidden;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #0e1117;
}

.loading-box {
  max-width: 500px;
  animation: fadeIn 0.8s ease-out;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.loading-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.info {
  font-size: 0.95rem;
  opacity: 0.85;
}

#progress-container {
  margin: 2rem auto 1rem;
  width: 100%;
  max-width: 400px;
  background: #2a2f3a;
  height: 12px;
  border-radius: 30px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #007bff;
  transition: width 0.4s ease;
}

.reload-note {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 1.5rem;
}
.reload-note span {
  color: #0b84ff;
  cursor: pointer;
  text-decoration: underline;
}

#error-display {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #c62828;
  color: #fff;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  cursor: pointer;
  font-size: 0.85rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

#error-display button {
  margin: 0.5rem 0.5rem 0 0;
  background: #fff;
  color: #c62828;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

#error-display button:hover {
  background: #f5f5f5;
}

#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  background: #0e1117;
  color: #999;
  padding: 0.5rem 1rem;
  border-top: 1px solid #1c1f24;
}
#footer a {
  color: #bbb;
  text-decoration: none;
}
#footer a:hover {
  color: #fff;
}

.blueprints,
.dots,
.dance {
  font-family: Courgette, cursive;
  color: #00bfff;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
