/* ============================
   Global Styles
============================ */
body {
  margin: 1em;
  padding: 0;
  font-family: "Roboto", "Noto Sans", Helvetica Neue, sans-serif;
  color: #56585e; /* Updated text color */
  background-color: transparent; /* No background */
  line-height: 1.6;
  text-align: center;
}

/* ============================
   Card Container (Reduced Width)
============================ */
#card {
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px; /* Reduced width */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  padding: 1.2em;
  background-color: transparent; /* No background */
}

/* ============================
   Model Viewer (Adjusted Width)
============================ */
model-viewer {
  width: 100%;
  height: 500px; /* Adjusted to match new card width */
  background-color: transparent; /* Removed white background */
  --poster-color: transparent;
  border-radius: 6px;
}

/* ============================
   Hotspot Styling
============================ */
.Hotspot {
  background: #ffffff;
  border-radius: 50%;
  border: 3px solid rgba(102, 204, 255, 0.9);
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.7);
  box-sizing: border-box;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 6px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

/* Hotspot Hover Effect */
.Hotspot:hover {
  box-shadow: 0 0 15px rgba(102, 204, 255, 1);
  transform: scale(1.1);
}

/* ============================
   Hotspot Annotations (Tooltip)
============================ */
.HotspotAnnotation {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  color: #56585e; /* Updated text color */
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0.5em 1em;
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: max-content;
  max-width: 180px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  display: block;
  visibility: hidden;
  z-index: 10;
}

/* Show Annotation on Hover */
.Hotspot:hover .HotspotAnnotation {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1.05);
}

/* ============================
   Attribution Section (Fixed Spacing & Updated Color)
============================ */
.attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  gap: 5px;
}

.attribution h1 {
  margin: 0;
  font-size: 1.4em; /* Slightly smaller */
  font-weight: 700;
  color: #56585e; /* Updated text color */
}

.attribution img {
  opacity: 0.7;
  height: 1.8em; /* Adjusted size */
  transition: opacity 0.3s ease-in-out;
  filter: grayscale(100%) brightness(40%); /* Makes CC icon match color */
}

.attribution img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

/* ============================
   Footer (Fixed Spacing & Updated Color)
============================ */
footer {
  display: flex;
  flex-direction: column;
  max-width: 500px; /* Match new card width */
  margin: auto;
  text-align: center;
  font-style: normal;
  line-height: 1.5em;
  padding: 1em;
  border-top: 1px solid #dddddd;
  margin-top: 1em;
  color: #56585e; /* Updated text color */
}

/* Footer Text */
footer p {
  margin: 0.5em 0;
  color: #56585e; /* Updated text color */
}

/* ============================
   Responsive Design Tweaks
============================ */
@media (max-width: 768px) {
  #card {
    max-width: 90%; /* Makes it fit smaller screens */
    padding: 1em;
  }

  model-viewer {
    height: 450px;
  }

  .Hotspot {
    width: 20px;
    height: 20px;
    padding: 4px;
  }

  .HotspotAnnotation {
    font-size: 12px;
    max-width: 160px;
  }

  .attribution h1 {
    font-size: 1.2em;
  }
}
