/* Basic reset and full-screen setup */
body {
  margin: 0;
  padding: 0;
  background-color: #050505;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
  display: block;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Header Styling with Logo */
.CIO_header {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  z-index: 10;
}

.CIO_logo {
  height: 60px; /* Responsive height */
  width: auto;
  object-fit: contain;
}

.CIO_text_group {
  display: flex;
  flex-direction: column;
}

.CIO_name {
  font-weight: 800;
  letter-spacing: 3px;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  margin: 0;
  color: white;
}

.planet_name {
  font-weight: 300;
  letter-spacing: 5px;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  opacity: 0.7;
  margin: 0;
  color: cyan;
}

/* Mobile adjustments for header */
@media (max-width: 600px) {
  .CIO_header {
    top: 15px;
    left: 15px;
    gap: 10px;
  }
  .CIO_logo {
    height: 45px;
  }
}

/* Planet Selector UI */
#planet-selector-container {
  position: absolute;
  bottom: 8%;
  transform: translateY(-50%);
  pointer-events: auto;
  z-index: 100;
}

#planet-dropdown {
  background: rgba(255, 255, 255, 0.09);
  color: cyan;
  padding: 8px 10px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid cyan;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  min-width: 160px;
}

#planet-dropdown:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: cyan;
}

#planet-dropdown option {
  background: #1a1a1a;
  color: white;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.7rem;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.control-btn {
  position: absolute;
  bottom: 5%;
  pointer-events: auto;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid cyan;
  color: cyan;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.control-btn:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
  transform: scale(1.05);
}

#stop-btn {
  border-color: #ff3333;
  color: #ff3333;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

#zoom-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.zoom-btn {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: cyan;
}

.hidden {
  display: none !important;
}
