/* 
  GALAXY Viewer - Premium Error Pages (404 and Unauthorized)
  Organized for clean code and high performance.
*/

:root {
  --g-accent: #9BC734;
  --g-dark: #000;
  /* Keeping it dark as requested */
  --g-navy: #0D2339;
  --g-black: #000000;
  --g-bg: #f4f4f4;
  --g-text: #e2e8f0;
}


.galaxy-error-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--galaxy-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* Green line header */
.galaxy-error-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--g-accent);
  box-shadow: 0 0 25px rgba(155, 199, 52, 0.6);
  z-index: 100000;
}


.galaxy-error-logo-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 100001;
}

.galaxy-error-logo {
  height: 50px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}



.galaxy-astronaut {
  max-width: 320px;
  /* Reduced to fit above fold */
  width: 50%;
  height: auto;
  animation: galaxy-float 6s ease-in-out infinite;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 40px rgba(155, 199, 52, 0.3));
}

.galaxy-error-content {
  text-align: center;
  max-width: 700px;
  padding: 0 30px;
  animation: galaxy-fade-in 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.galaxy-error-title {
  font-size: 2.8rem;
  /* More compact */
  margin-bottom: 0.8rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.galaxy-error-desc {
  font-size: 1.2rem;
  color: var(--g-text);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.9;
}

.galaxy-error-button {
  display: inline-block;
  padding: 14px 45px;
  background-color: var(--g-accent);
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--g-accent);
  cursor: pointer;
}

.galaxy-error-button:hover {
  background-color: transparent;
  color: var(--g-accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(155, 199, 52, 0.5);
}



/* Background Stars Animation */
.galaxy-stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

.galaxy-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  animation: galaxy-twinkle var(--duration) infinite ease-in-out;
}

@keyframes galaxy-float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(2deg);
  }
}

@keyframes galaxy-twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

@keyframes galaxy-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .galaxy-error-title { font-size: 1.8rem; }
  .galaxy-error-desc { font-size: 1rem; }
  .galaxy-astronaut { 
    max-width: 420px; 
    width: 90%;
    margin-bottom: 2rem;
  }
  .galaxy-error-logo { height: 40px; }
}