
body {
  margin: 0;
  background-color: #000000;
  color: #d0d0d0;
  font-family: 'Times New Roman', Times, serif;
  overflow: hidden;
  height: 100vh;
}
h1 {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.5px;
}
.hint {
  font-family: 'Times New Roman', Times, serif;
  position: absolute;
  top: 35px;
  left: 20px;
  font-size: 11px;
  color: #666;
  opacity: 0.7;
  line-height: 1.5;
  white-space: pre;
}
.granule-container {
  position: absolute;
  width: 100%;
  height: 100%;
}
.granule {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.granule:hover {
  transform: scale(1.5);
}
.label {
  position: absolute;
  font-size: 14px;
  color: #aaa;
  font-family: 'Times New Roman', Times, serif;
  transform: translateX(-50%);
  white-space: nowrap;
}
.subpage {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 700px;
  margin: auto;
  padding: 20px;
  background-color: rgba(0,0,0,0.8);
  overflow-y: auto;
  max-height: 60vh;
}
.subpage p {
  font-size: 13px;
  line-height: 1.6;
  color: #ccc;
}
.subpage h2 {
  font-size: 14px;
  color: #eee;
  margin-bottom: 10px;
}


/* Styling for images in subpages */
.subpage .text img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 2em auto;
}




.subpage .cite {
  font-size: 0.9em;
  color: inherit;
  opacity: 1;
}


body

body.subpage .cite {
  font-size: 0.9em;
  color: inherit;
  opacity: 1;
}






/* Subpage h1 override */
body.subpage h1 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2em;
  position: static;
}


/* Center title on subpages */
body.subpage h1 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 auto 2em auto;
  text-align: center;
  position: static;
}

/* Responsive images and layout */
.subpage .text img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 2em auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    margin: 20px;
  }

  .subpage h1 {
    font-size: 16px;
    margin-bottom: 1.5em;
  }

  .subpage .text img {
    max-width: 90%;
  }

  .hint {
    font-size: 9px;
  }

  h1 {
    font-size: 12px;
  }
}
