html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  overflow-x: hidden;
  position: relative;
  color: #333;
}

canvas#background {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 40vh;
  z-index: -1;
}

body {
  text-align: center;
  padding: 3rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #444;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.loading-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 3.5rem auto 6.5rem;
}

.loading-bar {
  width: 100%;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
  position: relative;
}

.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  animation: loading 3s forwards;
  position: relative;
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.7);
}

.progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 50%
  );
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 10%; }
}

.loading-markers {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.marker {
  position: absolute;
  transform: translateX(-50%);
  top: 38px;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  white-space: nowrap;
  background-color: #f9f9f9;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 3px solid #4facfe;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.marker:hover {
  transform: translateX(-50%) translateY(-3px);
  opacity: 1;
}

.marker::before {
  content: '';
  display: block;
  width: 2px;
  height: 18px;
  background-color: #aaa;
  position: absolute;
  top: -18px;
  left: 50%;
  opacity: 0.6;
}

.marker::after {
  content: '•';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 16px;
}

button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
  border: none;
  border-radius: 50px;
  box-shadow: 5px 5px 10px #d1d1d1, -5px -5px 10px #ffffff;
  color: #444;
  font-weight: 600;
}

button:hover {
  box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
  transform: translateY(-2px);
}

button.fadeOut {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease-out;
  pointer-events: none;
}

.popup {
  margin-top: 2rem;
  background-color: #222;
  color: #fff;
  padding: 1.2rem 2rem;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hidden {
  display: none;
}

footer {
  margin-top: 5rem;
  font-size: 0.9rem;
  color: #888;
  padding: 10px;
  border-top: 1px solid #eee;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.terminal {
  width: 80%;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  background-color: #1e1e2e;
  color: #a6e22e;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 1.2rem;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid #333;
}

@media (max-width: 768px) {
  .loading-container {
    width: 95%;
    margin: 2rem auto 7rem;
  }
  
  .marker {
    font-size: 0.75rem;
    padding: 4px 8px;
    top: 35px;
  }
}