body {
  font-family: Charter;
}

.header-wrapper {
    /* background: linear-gradient(-235deg, #1E0844 10%, #23316E 45%, #FE8383 75%, #F2E6C9 100%); */
   /* background: linear-gradient(-210deg, #014f9c 0%, #8db1e1 65%, #97da93 85%, #feec8d 100%); */
   background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
   padding: 15px 0;
   position: relative;
   overflow: hidden;
}

.header-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.header-container {
  color: #d7d167;
  text-align: center; 
  padding: 20px; 
  opacity: 1.0;
  z-index: 1000;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}


.icon {
    height: 1.8em; 
    width: auto; 
    margin-bottom: 5px; 
}

.icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    width: 100%;
    margin-left: 0%;
    padding: 20px; 
    line-height: 1rem;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
    color: inherit; 
    padding: 10px; 
    margin: 10px; 
    border: 3px solid #6f65b2;
    border-radius: 10px;
    background-color: #e7e5ee;
    flex: 1 1 100px; 
}

.icon-link:hover {
    background-color: #b1b8e0;
}

@media (max-width: 600px) {
    .icon-link {
        flex: 1 1 45%; 
    }
}


.icon-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1rem;
}

.icon-item {
    align-items: center;
    display: flex;
}

.icon-item > div {
    font-size: 1.15rem;
}

.icon-item img {
    width: 30px;
    height: 30px;
    margin-right: 1em;
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(240deg) brightness(70%) contrast(150%);
}

.icon-item-world {
  align-items: center;
  display: flex;
}

.icon-item-world img {
  width: 30px;
  height: 30px;
  margin-right: 1em;
  border: 1px solid rgb(154, 73, 73); 
  /* filter: invert(87%) sepia(11%) saturate(748%) hue-rotate(340deg) brightness(110%) contrast(100%); */
}

@media (max-width: 768px) {
  .icon-item img {
    margin-bottom: 1em;
  }
}

.header-content strong,
.icon-item strong {
    color: #4c5fb4;
    font-weight: 600;
}

.header-content {
    color: #333333;
    text-align: center;
}

.authors-section,
.affiliations-section {
    font-size: 1.1rem;
}

.header-content h1 {
    font-size: 1.7em;
    margin: 0;
    line-height: 1.2;
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content h2 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #34495e;
    font-weight: 700;
    opacity: 0.9;
}

.rover-logo {
  font-weight: bold;
  display: inline-block;
  position: relative;
  font-style: normal;
}

.rover-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2em;
}

.rover-title-image {
  height: 7em;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.rover-logo .r1 { color: rgb(255, 107, 157); }
.rover-logo .o { color: rgb(0, 150, 136); }    
.rover-logo .v { color: rgb(59, 132, 204); }   
.rover-logo .e { color: rgb(249, 202, 36); }
.rover-logo .r2 { color: rgb(108, 92, 231); }

.rover-text {
    font-weight: bold !important;
}

.rover-text .r1 { color: rgb(255, 107, 157) !important; }
.rover-text .o { color: rgb(0, 150, 136) !important; }    
.rover-text .v { color: rgb(59, 132, 204) !important; }   
.rover-text .e { color: rgb(249, 202, 36) !important; }
.rover-text .r2 { color: rgb(108, 92, 231) !important; }

.header-container p {
    font-size: 1.2rem;
}

#sankey-chart-ig, #sankey-chart-tg {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  height: 500px; /* 设置图表高度 */
  overflow: hidden;
  display: block;
}


.dual-charts-container {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.chart-section {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .dual-charts-container {
    flex-direction: column;
    gap: 15px;
  }
}

.data-statistics-container {
  width: 150%;
  margin: 1em 0 1em -20%;
}

.data-statistics-container h3 {
  text-align: center;
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 1.7rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .header-content h2 {
    font-size: 1.2em !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
}



@media (max-width: 768px) {
  .header-container {
    padding: 16px;
    padding-top: 32px;
  }

  .rover-title-wrapper {
    gap: 15px;
    flex-wrap: wrap;
  }

  .rover-title-image {
    height: 3.5em;
  }

  .header-content h1 {
    font-size: 3em;
    margin: 0;
  }
  .header-content h2 {
    font-size: 1.7em;
    /* text no wrap */
    white-space: nowrap;
    margin-top: 0;
  }

  .header-container p {
    font-size: 1.7rem;
  }

  .header-image {
    /* 80% */
    max-width: 90%;
    /* center */
    margin-left: auto;
    margin-right: auto;
  }
}

.teaser-video video {
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  max-width: 100%;
}

.header-image img {
  max-width: 100%; /* Ensure the image is never more than 100% of its container */
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  margin: 0 auto 20px; /* Center the image horizontally and add margin below */
}

.button-container {
    margin-top: 15px; /* Add margin above the buttons */
    margin-bottom: 15px; /* Add margin below the buttons */
    /* center */
    /* text-align: center; */
}

.button-container a.button {
  display: inline-block; /* Make buttons inline */
  margin: 10px; /* Space around buttons */
  padding: 10px 20px; /* Increase tap area for touch screens */
}

.button-container a.button {
  background: #ffffff;
  color: #2d3748;
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 10px 20px;
  margin: 4px 2px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.button-container a.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.15), transparent);
  transition: left 0.6s ease;
}

.button-container a.button:hover::before {
  left: 100%;
}

.button-container a.button:hover {
  background: #f8f9ff;
  border-color: #667eea;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  color: #667eea;
}

/* Styles for larger screens using a media query */
@media (min-width: 600px) {
  .header-container {
    display: block; /* Use block layout for centering */
    text-align: center; /* Center all content */
    padding: 50px 50px; /* Increase padding for larger screens */
  }

  .header-content {
    max-width: 80%; /* Use full width for centering */
    text-align: center; /* Center text */
    margin: 0 auto; /* Center the content block */
  }

  .header-content h1 {
    font-size: 3.3em; /* Increase font size for larger screens */
  }

  .header-content h2 {
    margin-top: -0.75em; /* Reduce space between headers */
    font-size: 2em; /* Increase font size for larger screens */
  }

  .teaser-video {
    width: 100%; /* Set width to 100% */
    margin-bottom: 2em;
  }

  .header-image {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
  }

  .header-image img {
    max-width: 90%; /* Image should be responsive within the container */
    height: auto; /* Maintain the aspect ratio */
  }
}


.byline {
  /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 5px 20px; /* Increased bottom padding to create more space between content and line */
  margin-bottom: 20px;
}

.byline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align columns by the top */
  max-width: 1000px; /* Adjust as needed for your design */
  margin: 0 auto; /* Center the container */
}

@media (max-width: 768px) {

  .byline-column {
    margin-bottom: 20px; /* Space between columns */
    flex: 1;
  }

  .byline-column h3 {
    font-size: 16px;
  }

  .byline-column p {
    font-size: 14px;
    margin-bottom: 0.45em;
  }
}
.author-link, .affiliation-link {
  font-size: 1.1em;
  color: rgb(61, 99, 141); /* Set the color to match the other text */
  text-decoration: none; /* Removes the underline */
  border-bottom: none;
  cursor: pointer; /* Changes cursor to pointer to indicate link */
  white-space: nowrap;  /* Prevent breaking names across lines */
  /* Increase vertical spacing */
  line-height: 2.3rem; /* Increase line height for better readability */

}

.author-note {
  font-size: 0.9rem;
  color: #999; /* Light grey color for the text */
  margin-top: 0.25em; /* Space above the note */
  margin-bottom: 0.25em; /* Space below the note */
}

#affiliation {
  font-size: 1.6em;
  /* bold */
  font-weight: bolder;
}

.author-link:hover, .affiliation-link:hover {
text-decoration: underline; /* Adds underline on hover for visual feedback */
border-bottom: none;
color: #667eea; /* Same color as Key Insights */
}


d-article {
  contain: none;
  position: relative;
}

d-article d-contents {
  max-width: 100%; /* Or the maximum width you want it to have */
  box-sizing: border-box; /* Include padding in the width calculation */
  align-self: start;
  grid-column: 1 / 4;
  grid-row: auto / span 4;
  justify-self: end;
  margin-top: 5em;
  padding-right: 3em;
  padding-left: 2em;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


d-article d-contents nav {
  display: block;
}

d-article d-contents nav h4 {
  margin-top: 0;
  margin-bottom: 1em;
}

d-article d-contents nav div {
  color: rgba(91, 184, 73, 0.8);
  font-weight: bold;
}

d-article d-contents nav a {
  color: rgba(0, 0, 0, 0.8);
  border-bottom: none;
  text-decoration: none;
}

d-article d-contents li {
  list-style-type: none;
}

d-article d-contents ul {
  padding-left: 1em;
}

d-article d-contents nav ul li {
  margin-bottom: 0.25em;
}

d-article d-contents nav a:hover {
  text-decoration: underline solid rgba(0, 0, 0, 0.6);
}

d-article d-contents nav ul {
  margin-top: 0;
  margin-bottom: 6px;
}

d-article d-contents nav > div {
  display: block;
  outline: none;
  margin-bottom: 0.5em;
}

d-article d-contents nav > div > a {
  font-size: 13px;
  font-weight: 600;
}

d-article d-contents nav > div > a:hover,
d-article d-contents nav > ul > li > a:hover {
  text-decoration: none;
}

.active-nav-item {
  color: #0d6efd; /* Change as per your preference */
}

.shaded-figure {
  background-color: hsl(0, 0%, 97%);
  border-top: 1px solid hsla(0, 0%, 0%, 0.1);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  padding: 30px 0;
}

.pointer {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 26px;
  left: -48px;
}

.sidebar {
  position: sticky;
}

d-article section{
  margin: 0 !important;
}


.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  height: 0; /* Collapse the container to the aspect ratio */
  margin-bottom: 430px; /* Increase this value for more white space below videos */

}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.preview-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers items horizontally */
  flex-wrap: wrap;

  margin-top: 10px; /* Adjust as needed */
  margin-bottom: 10px; /* Increase this value for more space below */
  clear: both;
}


.video-qa {
  margin-top: 20px; /* Increase spacing above questions/answers */
  padding-top: 20px; /* Optional: Adds internal spacing */
}

.preview {
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  opacity: 0.5; /* 50% transparent */
  height: 50px; /* Fixed height */
  width: auto; /* Auto width to maintain aspect ratio */
  margin-right: 10px;
  margin-left: 10px;
}

div .preview-video-active,
.preview:hover {
  opacity: 1.0; /* Fully opaque on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow effect on hover */
}



/* blockquote {
  border-left: 4px solid #ccc;
  margin: 0.5em auto;
  padding: 0.5em 10px;
  color: #666;
  font-style: italic;
  width: 80%;
} */

/* blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
} */

blockquote.storytext {
  border-left: 6px solid #4a90e2; /* Brighter border color */
  background-color: #f9f9f9;      /* Subtle background */
  margin: 0px auto;
  padding: 1em 10px;
  color: #333;                    /* Darker font color */
  font-style: italic;
  font-weight: bold;              /* Bolder font */
  width: 85%;
  box-shadow: 2px 2px 8px #ccc;   /* Box shadow */
  padding-left: 2em;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  font-size: 15px;
}

blockquote.storytext:before {
  color: #4a90e2;                 /* Matching the border color */
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

.fancybreak {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 0.8em auto;
}


#image-text-container {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}

.image-review-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.button-bar button {
  background-color: #88AB8E; /* Green background */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 11px;
  margin-top: 0px;  /* Keeps the original top margin */
  margin-bottom: 2em;
  margin-left: 5px;  /* Increases the left margin */
  margin-right: 5px;  /* Increases the right margin */
  cursor: pointer;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px #999; /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}

div .active-button,
.button-bar button:hover {
  background-color: #45a049; /* Slightly darker shade on hover */
  box-shadow: 0 6px #666; /* Change in shadow */
  transform: translateY(-2px); /* Slight raise */
}

.interactive-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 50px;
}

.llmul {
  text-decoration-color: royalblue;
}

.geoul {
  text-decoration-color: ForestGreen;
}

.cvul {
  text-decoration-color: #FF43A4;  
}

.colul {
  text-decoration-color: #FFAE42;
}

.character-card-img {
  width: 85%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* collapsible code */
.collapsible {
  background-color: hsla(206, 95%, 20%, 0.2);
  cursor: pointer;
  padding: 1em;
  border: none;
  text-align: left;
  outline: none;
}

.active, .collapsible:hover {
  transition: max-height 0.2s ease-out;
  /* background-color: #acc2c2; */
}

.collapsible {
  background-color: hsla(206, 95%, 20%, 0.2);
  cursor: pointer;
  padding: 1em;
  border: none;
  text-align: left;
  outline: none;
}

.active, .collapsible:hover {
  transition: max-height 0.2s ease-out;
}

.collapsible {
  display: flex;
  justify-content: space-between;
  align-content: center;
  border-radius: 4px;
}

.collapsible.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.collapsible .collapsible-indicator::after {
  content: "+"
}

.collapsible.active .collapsible-indicator::after {
  content: "-"
}

.collapsible h4 {
  margin: 0;
  line-height: inherit;
}

d-article .content {
  padding: .3em 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-color: hsla(206, 95%, 20%, 0.2);
  margin-bottom: 20px;
}

/* assign the final paragraph of an aside no bottom margin */
aside p:last-child {
  margin-bottom: 0;
}


aside.counting-table {
  position: absolute;
  top: 42%;
  left: 105%;
}

aside figure {
  margin: 0;
  display: block; /* Ensures that figure behaves as a block-level element */
}

aside figure table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Use fixed table layout for consistent column sizing */
}

aside th, aside td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
  text-overflow: ellipsis; /* Add ellipsis to clipped content */
}

aside th {
  background-color: #e9ecef;
  color: #495057;
}
aside tr:hover {
  background-color: #f2f2f2;
}
aside th:first-child, aside td:first-child {
  border-right: 1px solid #dee2e6;
}


figcaption .table-caption {
  text-align: center;
  padding: 8px;
  font-style: italic;
  color: #6c757d;
  margin-top: 0; /* Ensures there is no additional space between table and caption */
  font-size: 12px;
}


* {
  box-sizing: border-box;
}

.img-magnifier-container {
  position:relative;
  margin-bottom: 20px;
}

.img-magnifier-glass {
  position: absolute;
  border: 3px solid #000;
  border-radius: 50%;
  cursor: none;
  /*Set the size of the magnifier glass:*/
  width: 100px;
  height: 100px;
}


img {
  vertical-align: middle;
}


/* Position the image container (needed to position the left and right arrows) */
.slider-img-container {
  position: relative;
}

/* Hide the images by default */
.my-slides {
  display: none;
}

#slider-img-tourist .my-slides img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 75%;
}

#slider-img-photographer .my-slides img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 90%;
}

.my-slides:hover .overlay {
  opacity: 1;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 10px;
  margin-top: -50px;
  color: rgb(148, 143, 143, 0.8);
  font-weight: bold;
  font-size: 30px;
  border-radius: 3px 3px 3px 3px;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: none;
}

.prev {
  left: -5%;
}

/* Position the "next button" to the right */
.next {
  right: -5%;
  border-radius: 3px 3px 3px 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: rgb(255, 255, 255);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f8f9fa; /* Light color for better visibility */
  font-family: 'Arial', sans-serif; /* A more modern font */
  font-size: 16px; /* Slightly larger for readability */
  font-weight: bold; /* Make it bold */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  padding: 5px 15px; /* Increased padding for better spacing */
  position: absolute;
  top: 10px; /* Adjusted to not be too close to the edge */
  left: 50%;
  transform: translateX(-50%); /* Center it horizontally */
  text-shadow: 1px 1px 2px black; /* Text shadow for better readability */
  border-radius: 5px; /* Rounded corners for a softer look */
}

.row {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.5;
  height: 50px; /* Fixed height */
  width: auto; /* Auto width to maintain aspect ratio */
}

.active-slide-img,
.demo:hover {
  opacity: 1;
}


.overlay {
  display: block;
  margin-left: 5%;
  margin-right: 5%;
  position: absolute; 
  top: 0; 
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1; 
  width: 90%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

.system-fundamental-aside {
  display: none;
  background-color: #F3F8FF;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  width: 300px;
  color: rgb(0, 0, 0);
  font-size: 14px;
  height: fit-content;
  position: absolute;
  top: 39.5%;
  left: 105%;
}

.clickable-region {
  position: absolute;
  /* border: 2px solid rgba(255, 255, 255, 0.5); */
  /* background: rgba(255, 255, 0, 0.5);  */
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
}

.clickable-region:hover {
  background: rgba(255, 255, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.75); /* Brighter border on hover */
}

.clickable-image-container {
  position: relative;
  width: 100%;
}
.clickable-image-container img {
  width: 100%;
  height: auto;
}

.resscolor {
  background-color: rgb(194,255,191);
}

.sizescolor {
  background-color: rgb(194,215,255);
}

.inline-tag {
  height: 18px;
  width: auto;
}

blockquote.place-review {
  border-left: 2px solid #FFAE42; /* Brighter border color */
  padding-left: 5px !important;
  color: #333;                    /* Darker font color */
  font-style: italic;
  box-shadow: 2px 2px 8px #ccc;   /* Box shadow */
  padding-left: 2em;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  text-overflow: ellipsis; /* Add ellipsis to clipped content */
  margin-bottom: 0px;
}

aside blockquote {
  padding-left: 10px;
  color: #505050;                   
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


.avatar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2%;
  margin: 20px;
}

.avatar {
  text-align: center;
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar img:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.avatar figcaption {
  /* display: inline-block; */
  /* margin-top: 8px; */
  margin-left: auto;
  margin-right: auto;
  padding: 5px 10px;
  font-size: 1.05em;
  color: #333;
  /* background-color: #f8f8f8; */
  /* border: 1px solid #ddd; */
  /* border-radius: 5px; */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  text-align: center;
  width: 80px; /* Adjust as needed */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.left-aside-container {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}

.left-side-bar {
  position: absolute;
  top: 91.5%;
  left: -35%;
}
.right-side-bar {
  position: absolute;
  top: 91.5%;
  right: -35%;
}
.click-hint{
  display: block;
  margin: auto;
  width: 60%;
  font-size: 15px; /* Adjust the font size */
  color: #333333; /* Set text color */
  /* background-color: #f2f2f2; */
  border: 2px solid #FBBC04; /* Add border */ 
  padding: 10px; /* Add padding around text */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(254, 239, 195, 0.3); /* Add a subtle shadow */
  text-align: center; /* Center the text */
  margin-bottom: 20px; /* Add some margin at the bottom */
}

.click-hint strong {
  color: #667eea; /* Highlight the 'strong' element with a different color */
  /* text-decoration: underline; Underline the 'strong' text */
}

.click-hint2{
  display: block;
  margin: auto;
  width: 60%;
  font-size: 15px; /* Adjust the font size */
  color: #333333; /* Set text color */
  /* background-color: #f2f2f2; */
  border: 2px solid #cccccc; /* Add border */
  padding: 10px; /* Add padding around text */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  text-align: center; /* Center the text */
  margin-bottom: 20px; /* Add some margin at the bottom */
}

.click-hint2 strong {
  color: #667eea; /* Highlight the 'strong' element with a different color */
  /* text-decoration: underline; Underline the 'strong' text */
}


.grey-overlay {
  position: absolute; /* Change to absolute positioning */
  top: 0;
  left: 0;
  width: 1000%; /* Full container width */
  height: 100%; /* Full container height */
  background-color: rgba(245, 237, 220, 0.5);
  z-index: -1; /* Ensure it's above other content */
  margin-left: -500%;
}

d-article h3 {
  margin-top: 20px;
}

d-article > div > h3 {
  width: 150%;
  margin-left: -10%;
}


.text {
  /* width: 150%; */
  width: 150%;
  margin: 1em 0 1em -25%;
  font-size: 1.2rem;
}

h1.text {
    font-size: 2em;
}
h2.text {
    font-size: 1.8em;
}

.abstract {
    font-size: 1.25rem;
    width: 140%;
    margin-left: -20%;
}

.auto-video {
  width: 130%;
  margin-left: -15%;
}

#diego-plan-video, #diego-plan-video-cap {
  width: 150%; 
  margin-left: -20%;
}

.nav-bar {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 70px;
  height: fit-content;
  max-height: 100%;  /* Gives navbar a scrollbar if it's too long */
  background-color: #dbdbdb39;
  overflow-x: hidden;
  padding-top: 10px;
  z-index: 101;
  display: none;
}


.figure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.figure {
    /* width: 150%; */
    display: flex;
    justify-content: center;
    flex-direction: row;
}

figure {
    width: 150%;
    margin-left: -25%;
}

#fig-teaser {
      margin-top: -10px; 
      padding-top: 0;
      width: 90%;
  }






figcaption {
    font-size: 1.125em;
    margin-top: 1em; /* Increased from 0.25em to create more space */
    text-align: center;
}

/* Default: show iframe, hide image */
.responsive-content iframe {
    display: block;
    justify-content: center;
    width: 150%;
    margin-left: -5%;
    margin-top: -2em;
    margin-bottom: -2em;
}

.responsive-content img {
    display: none;
}

#mllm_interface_click_hint {
    display: block;
}

.formula {
  text-align: center;
  margin: 20px 0;
}

@media (max-width: 720px) {
    .figure {
        width: 100%;
        margin-left: -1%;
    }
    figure {
        width: 100% !important;
        margin-left: 0% !important;
    }
    figure > iframe {
        max-width: 100%;
    }

    /* For mobile devices: hide iframe, show image */
    .responsive-content iframe {
        display: none;
    }

    #mllm_interface_click_hint {
        display: none !important;
    }

    .responsive-content img {
        display: block;
    }
}

#nav-bar > div {
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
  /* background-color: #fae7f378; */
  /* background-color: #ac87c52a; */
}
.nav-link > img {
    padding-top: 5px;
    padding-bottom: 5px;
    width: 40px;
    height: auto;
}
.geo-color {
    background-color: rgba(227, 242, 233, 0.5);
}
.llm-color {
    background-color: rgba(227, 237, 248, 0.5);
}
.cv-color {
    background-color: rgba(254, 237, 237, 0.5);
}
.col-color {
    background-color: rgba(255, 255, 204, 0.5);
}
.geo-color:hover {
    background-color: rgba(227, 242, 233, 0.9);
}
.llm-color:hover {
    background-color: rgba(227, 237, 248, 0.9);
}
.cv-color:hover {
    background-color: rgba(254, 237, 237, 0.9);
}
.col-color:hover {
    background-color: rgba(255, 255, 204, 0.9);
}

div.nav-bar a {
  border: none;
  opacity: 0.5;
}

div.nav-bar a:hover {
  color: black;
  opacity: 1.0;
}

div.nav-bar img:hover {
  transform: scale(1.3);
}

a.active-link {
  color: #007bff; /* Change to your preferred color */
    /* If you're using images inside <a>, you might want to apply a filter instead */
  /* filter: brightness(1.2); */
  opacity: 1.0 !important;
}

/* a.active-link img {
  border: 2px solid #007bff;
  border-radius: 4px;
} */

.takeaway-card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 0px;
  margin: 1em;
  border-radius: 15px;
  line-height: 1.6;
}

.takeaway-head {
  display: flex;
  justify-content: space-between; /* Aligns items in a row with space between them */
  text-align: left;
  padding: 10px;
  padding-left: 15px;
  background-color: rgb(113, 115, 148);
  border-radius: 15px 15px 0px 0px;
  line-height: 1.6;
  color: white;
  font-size: 20px;
}

.takeaway-tags {
  display: flex; /* Ensures the images are lined up horizontally */
  align-items: center; /* Vertically centers the tags within the div */
  /* Additional styling, if necessary, can go here */
}

.exemplar-takeaways > .takeaway-card {
    display: none;
}


div.takeaway-tags img {
  height: 28px;
  margin-right: 5px;
}

.takeaway-content {
  font-size: 17px; /* Adjusts the font size */
  color: #333; /* Sets the text color; choose a color that fits your design */
  margin: 0px; /* Adds space around the paragraph */
  padding: 10px 10px 15px 15px;
  background-color: #f9f9f9; /* Optional background color */
  border-radius: 5px; /* Rounds the corners if there's a background color */
  line-height: 1.4; /* Adjusts the line height for better readability */
  border-radius: 0px 0px 15px 15px;
}


.diego-revise-img {
  width: 130%;
  margin-left: -15%;
}

#prev-diego-revise-1, #prev-diego-revise-2 {
  top: 75%;
  left: -20%
}

#next-diego-revise-1, #next-diego-revise-2 {
  top: 75%;
  right: -20%
}


.img-grid-row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  width: 120%;
  margin-left: -10%;
}

.img-grid-column {
  flex: 16%;
  padding: 0 4px;
}

.img-grid-column img {
  margin-top: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  d-article > div > h3 {
    width: 100%;
    margin-left: 0%;
  }

  .text {
    width: 100%;
    margin: 1em 0 1em 0;
  }

  div.takeaway-tags img {
    height: 22px;
    margin-right: 2px;
  }

  #prev-diego-revise-1, #prev-diego-revise-2 {
    top: 115%;
    left: -7%
  }
  
  #next-diego-revise-1, #next-diego-revise-2 {
    top: 115%;
    right: -7%
  }

  aside {
    display: none;
  }
}
.highlight-box {
  border: 2px solid #CCCCCC; 
  border-radius: 12px; 
  background-color: #F9F9F9; 
  font-size: 1.2em; 
  font-style: italic; 
  font-weight: bold; 
  text-align: center; 
  margin: 2% auto; 
  padding: 2vw; /* Padding scales with viewport width */

  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
  width: 100%;          /* Dynamic width; adjusts to screen */
  margin: 20px auto;   /* Center the box horizontally */
  padding: 15px;       /* Padding for content */
  border: 2px solid #CCCCCC;
  border-radius: 12px;
  background-color: #F9F9F9;
  font-size: 1em;
  font-style: italic;
  font-weight: bold;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}




.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  display: flex; 
  justify-content: center; 
}



.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.styled-table th, .styled-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.styled-table thead th {
  background-color: #f8f9fa;
  font-weight: bold;
  padding: 10px;
}

.styled-table tbody .section-header td {
  background-color: #e3f2fd;
  font-weight: bold;
  text-align: left;
  padding: 10px;
}

.styled-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.styled-table tbody tr:hover {
  background-color: #f1f1f1;
}

.styled-table th[colspan="4"] {
  background-color: #FFF2CC; /* Custom color for "Numerical Answer" */
}

.styled-table th[colspan="4"]:nth-of-type(2) {
  background-color: #FFECB3; /* Custom color for "Multiple-Choice Answer" */
}

/* Mobile-specific styles */
@media screen and (max-width: 600px) {
    .data-table {
        font-size: 0.8em;
    }
    
    .data-table td, .data-table th {
        padding: 0.2em 0.4em;
        font-size: 0.8em;
    }
    
    iframe {
        width: 99%;
    }
}

iframe {
    width: 1250px;
    height: 650px;
    border: none;
}

.bibtex {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f9f9f9;
  padding: 2em;
  color: #222;
  font-size: 1em;
}

.video-label {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: rgba(128, 0, 128, 0.8); 
  color: white;
  font-family: Charter; 
  font-size: 14px; 
  font-weight: bold; 
  padding: 1px 6px; 
  /* border-radius: 5px;  */
  z-index: 10;
}

.speed-reminder {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin-top: 5px;
  font-style: italic;
  padding: 4px;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.speed-reminder i {
  margin-right: 5px;
}



figcaption {
  text-align: justify;
}
body {
  text-align: justify;
}

@media screen and (max-width: 768px) {
    .video-container {
        margin-bottom: 20px; 
        overflow-y: scroll;
        max-height: 90vh; 
        scrollbar-width: thin; 
        scrollbar-color: #888 #f1f1f1; 
    }

    .video-container::-webkit-scrollbar {
        width: 6px; 
    }

    .video-container::-webkit-scrollbar-thumb {
        background: #888; 
        border-radius: 10px;
    }

    .video-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    .video-container:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 30px;
      background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
      pointer-events: none; 
  }
}

/* Data Viewer Styles */
.rover-demo {
  width: 150%;
  margin: 1em 0 1em -25%;
}

.main-title {
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  color: #222222 !important;
  margin-bottom: 15px !important;
  text-align: left !important;
  position: relative !important;
  z-index: 1 !important;
}

.rover-demo h3 {
  padding-left: 150px;
  font-size: 1.7rem;
  margin-bottom: 15px;
  margin-top: 0px;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-btn {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  color: #495057;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: Charter, serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

.category-btn:hover {
  background: #8b9dc3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 157, 195, 0.3);
}

.category-btn.active {
  background: #8b9dc3;
  border-color: #8b9dc3;
  color: white;
}

.top-thumbnails {
  margin-bottom: 30px;
}

.thumbnail-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.top-thumbnail {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.top-thumbnail:hover {
  transform: scale(1.05);
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.detail-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.left-panel {
  flex: 0.8;
  min-width: 0;
}

.right-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
}

.data-chart {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #dee2e6;
  position: relative;
}

/* TG 的 data-chart 专门样式 - 缩小高度 */
#data-chart-tg {
  max-height: 200px; /* 缩小 TG 的框高度 */
  padding: 20px; /* 减少内边距 */
}

.data-chart img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 4px;
}

.reasoning-type-label {
  background: #f8f8f8;
  color: #555555;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  text-align: center;
  width: fit-content;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.prompt-section h3 {
  margin-bottom: 10px;
  margin-top: 20px;
  color: #495057;
  font-size: 20px;
  font-weight: 600;
  margin-left: -150px;
}

.prompt-text {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  font-style: italic;
  color: #495057;
  line-height: 1.6;
}

/* Answer 部分的专门样式 - 只影响 TG 的 Answer */
#answer-text-tg {
  font-size: 14px; 
  margin-top: 0px !important; /* 让 Answer 文字往上移 */
}

.model-result {
  flex: 1;
  min-width: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #dee2e6;
  margin-bottom: 0;
}

.model-name {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
  color: #495057;
}

.model-name.nano {
  color: #e74c3c;
}

.model-name.gpt {
  color: #3498db;
}

.model-name.bagel {
  color: #f39c12;
}

.model-name.qwen {
  color: #9b59b6;
}

.generated-image {
  background: white;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  color: #6c757d;
  font-style: italic;
}

.generated-image img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 4px;
}

.model-result-tg {
  margin-bottom: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  max-height: 250px;
  border: 1px solid #dee2e6;
}

.model-output-tg {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.output-image {
  flex: 1;
  background: white;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  min-height: 180px;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  color: #6c757d;
  font-style: italic;
}

.output-image img {
  max-width: 100%;
  max-width: 250px;
  min-height: 170px;
  max-height: 170px;
  object-fit: contain;
  border-radius: 4px;
}

.output-text {
  flex: 1;
  background: white;
  border-radius: 6px;
  padding: 15px;
  border: 1px solid #dee2e6;
  color: #495057;
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 768px) {
  .detail-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .model-output-tg {
    flex-direction: column;
  }
  
  .thumbnail-row {
    justify-content: center;
  }
  
  .top-thumbnail {
    width: 100px;
    height: 100px;
  }
  
  .right-panel {
    flex-direction: column;
  }
  
  .model-result {
    min-width: 100%;
    margin-bottom: 15px;
  }
  
  .category-nav {
    gap: 5px;
  }
  
  .category-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}


/* ===== SAW-Bench Task Colors ===== */

.loc {
  color: #E7A29C;      /* coral */
  font-weight: 700;
}

.dir {
  color: #7C98A6;      /* blue-gray */
  font-weight: 700;
}

.shape {
  color: #D67D53;      /* orange-red */
  font-weight: 700;
}

.revplan {
  color: #5B9877;      /* sage green */
  font-weight: 700;
}

.mem {
  color: #B37486;      /* dark pink */
  font-weight: 700;
}

.aff {
  color: #E6BD57;      /* mustard yellow */
  font-weight: 700;
}

.red {
  color: #c1121f;
}


.float-right-img {
  float: right;
  width: 320px;              /* adjust size */
  margin: 0 0 15px 25px;     /* space between image & text */
  border-radius: 6px;        /* optional: subtle rounding */
}

.float-right-figure {
  float: right;
  width: 500px;              /* adjust size */
  margin: 0px -180px 0px 30px;  /* ← negative right margin pulls it right */
}

.float-right-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.float-right-figure figcaption {
  font-size: 1.15rem;
  line-height: 1.4;
  color: #555;
  margin-top: 8px;
  text-align: left;
}
.table-figure img {
    width: 60%;          /* adjust: 60% / 65% / 75% */
    display: block;
    margin: 0 auto;      /* center the image */
}