@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: #05080f;
  color: #fff;
  overflow-x: hidden;
}

/* Canvas */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Panel container */
.container {
  display: flex;
  flex-direction: row;
  width: 500vw;
}

/* Individual panel */
.panel {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: clamp(2rem, 6vw, 4rem);
  text-transform: uppercase;
  box-sizing: border-box;
  position: relative;
}

/* Welcome message */
.welcome {
  position: fixed;
  top: 20px;
  left: 30px;
  font-size: clamp(1rem, 2vw, 1rem);
  text-shadow: 0 0 10px #fdfdfd;
  z-index: 20;
}

/* Planet label */
.planet-label {
  position: absolute;
  top: 70px;
  right: 35px;
  font-size: clamp(1rem, 2vw, 2rem);
  color: #fdfdfd;
  text-shadow: 0 0 8px #fdfdfd;
}

/* Instructions */
.instructions {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: clamp(1rem, 2vw, 1rem);
  color: #4cc9f0;
  text-shadow: 0 0 6px #4cc9f0;
}

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 10;
  background: rgba(5, 8, 15, 0.6);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  display: flex;
  gap: 1rem;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
  color: #f3efef;
  text-shadow: 0 0 6px #000000;
}

/* Captain photo */
.captain-photo {
  margin-top: 1rem;
  width: clamp(60px, 20vw, 100px);
  height: clamp(60px, 20vw, 100px);
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fdfdfd;
  box-shadow: 0 0 10px #fdfdfd;
}

/* Audio button */
.audio-btn {
  position: fixed;
  bottom: 70px;
  right: 30px;
  background: rgba(76,201,240,0.2);
  border: none;
  padding: clamp(8px, 2vw, 12px);
  border-radius: 50%;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #4cc9f0;
  box-shadow: 0 0 12px #4cc9f0;
  cursor: pointer;
}
.audio-btn:hover {
  background: rgba(76,201,240,0.5);
  color: #fff;
}

/* Ship and planet visuals */
.spaceship,
.planet {
  max-width: 80vw;
  height: auto;
  margin: 2rem auto;
}

/* 📱 Portrait mode fix */
@media (max-width: 768px) {
  .container {
    flex-direction: row;
    width: 500vw !important;
  }

  .panel {
    padding: 2rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .planet-label {
    position: static;
    margin-top: 1rem;
    margin-left: 3rem;
  }

  .spaceship,
  .planet {
    max-width: 100%;
    margin: 1rem auto;
  }

  .welcome {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .instructions {
    font-size: 0.9rem;
    margin-top: 2rem;
  }

  nav {
    top: 10px;
    right: 10px;
    font-size: 0.9rem;
    gap: 0.75rem;
  }

  .audio-btn {
    bottom: 10px;
    right: 10px;
    font-size: 1rem;
  }
}


