/* Base/Shared Styles - Space Webbies */

* {
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  border: 0;
  padding: 0;
  background: #0a0a1a;
  min-height: 100vh;
  color: #00ff88;
  overflow-x: hidden;
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* Gradient overlay on top of video */
#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 26, 0.5) 0%, rgba(26, 26, 58, 0.3) 50%, rgba(10, 10, 42, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
  margin: auto;
  max-width: 400px;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-weight: 700;
  font-size: 2em;
  margin: 0;
  text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 0.9em;
  color: #00ccff;
  margin: 5px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Content Container */
#content {
  width: 100%;
  flex: 1;
}

/* Footer */
footer {
  margin-top: 20px;
  text-align: center;
}

footer p {
  font-size: 0.8em;
  color: #00ccff;
  margin: 0;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #1a1a3a;
  border-top-color: #00ff88;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Not Found / Error State */
.not-found {
  text-align: center;
  padding: 40px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border: 2px solid #00ccff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
}

.not-found-icon {
  font-size: 4em;
  margin-bottom: 10px;
}

.not-found-title {
  color: #00ccff;
  font-size: 1.5em;
  text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
  margin: 0 0 15px 0;
}

.not-found p {
  color: #888;
}

/* Shared Button Styles */
.return-btn {
  background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
  border: 1px solid #00ccff;
  color: #00ccff;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.return-btn:hover {
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
  background: linear-gradient(145deg, #3a3a5a, #2a2a4a);
}