body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}
#webcam, #canvas, #three-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  pointer-events: none;
  transform: scaleX(-1);
}
#instructions {
  position: absolute;
  top: 5px;
  left: 5px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  /* border-radius: 10px; */
  font-family: sans-serif;
  font-size: 14px;
  z-index: 30;
}

#links-para{
        position: absolute;
        bottom: 5px;
        left: 5px;
        font-family: Helvetica, sans-serif;
        font-size: 16px;
        background-color: rgba(255, 255, 255, 0.5);
        padding: 10px;
}

a {
    color: #0000FF !important;
}

#coffee-link {
  position: absolute;
  top: 5px;
  right: 5px;
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px;
}

#three-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55); /* dark but not fully black */
  z-index: 1;
  pointer-events: none;
}
#three-canvas > canvas {
  position: relative;
  z-index: 2;
}

#sim-date {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 18px;
  font-family: sans-serif;
  font-size: 16px;
  z-index: 50;
  border-radius: 8px;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* Styling for the bodies list */
#bodies-list-container ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#bodies-list-container li {
  padding: 2px 0;
  font-size: 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#bodies-list-container li:last-child {
  border-bottom: none;
}

/* Style for nested moon lists (and now planets under Sun) */
#bodies-list-container ul ul {
  padding-left: 20px; /* Indent sub-lists */
  margin-top: 2px;
  margin-bottom: 2px;
}

#bodies-list-container ul ul li {
  font-size: 0.9em;
  border-bottom: none;
  padding: 1px 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#bodies-list-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#bodies-list-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}