body {
  margin: 0px;
  box-sizing: border-box;
}

section {
  position: relative;
  height: 730vh;
  background-size: cover;
  background-attachment: fixed;
}

.card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  width: 400px;
  max-width: 90%;
  transition: all 0.3s ease;
  font-size: 22px;
  color: white;
  padding: 10px 20px;
}

.header {
  position: absolute;
  text-align: center;
  justify-content: center;
  top: 300px;
  flex-wrap: wrap;
  color: white;
  width: 100%;
  height: 100vh;
  gap: 10px;
}

/* Control bar */
#ambientControl {
  position: fixed;
  bottom: 16px;
  left: 16px;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  user-select: none;
  color: white;
  z-index: 1000;
}

#toggleBtn {
  background: #dc3545;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

#toggleBtn.off {
  background: #238636;
}

#toggleBtn:hover {
  opacity: 0.9;
}

.card.left {
  left: 100px;
}

.card.right {
  right: 100px;
}

.astronaut {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 400px;
  height: auto;
  z-index: 5;
}

@media (max-width:1024px) {
  .astronaut {
    width: 180px;
    top: 40px;
    right: 10px;
  }
}

@media (max-width:768px) {
  .card {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 90%;
    font-size: 18px;
  }

  .astronaut {
    position: relative;
    display: block;
    margin: 20px auto;
    width: 150px;
  }
}