body {
  font-family: 'Noto Sans', sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

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

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.urdf-carousel {
  overflow: hidden;
}

.urdf-carousel .item {
  margin: 0px;
  overflow: hidden;
  border: 0px solid #bbb;
  border-radius: 0px;
  padding: 0;
  font-size: 0;
}


.carousel-canvas-container {
  position: relative;
  width: auto;
  height: auto;
  border: 1px solid #ccc;
  margin: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.urdf-gif {
  max-width: 200%;
  max-height: 40rem; /* doubled from 20rem */
  object-fit: contain;
  background-color: #f5f5f5;
}

.results-carousel .item {
  margin: 0px;
  overflow: hidden;
  border: 0px solid #bbb;
  border-radius: 0px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.affiliation{
    color: #555;
    width: fit-content;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    vertical-align: text-bottom;
    /*font-weight: bold;*/
}

.affiliation :hover {
    text-decoration: underline;
}
.affiliation a:hover {
    text-decoration: underline;
}

.hide{
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
    white-space: nowrap;
  vertical-align: bottom;
  transition: max-width 1.0s, opacity 1.6s;
    position: relative;
}
.affili_abbrv:hover .hide{
  display: inline-block;
  max-width: 100px;
  opacity: 1;
  transition: max-width 1.0s, opacity 0.5s;
  vertical-align: bottom;
    text-decoration: underline;
}


.overlay_content {
  /* Center your content vertically and horizontally */
 /* position: absolute; */
  bottom: 0;
  /* right: 25; */
  /* transform: translate(-50%, -50%); */
  z-index: 2;
  color: #fff; /* Set the color for your content */
  background-color: rgba(0, 0, 0, 0.4);
}

.urdf-viewer {
  width: 100%;
  height: 100%;
  display: block; /* Important for custom elements */
}

.gripper-text{
  display: none;
}


#gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Change 5 to 4 for 4x4 */
  gap: 0px;
  padding: 0px;

}

.size-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.size-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.size-3x1 {
  grid-column: span 3;
  grid-row: span 1;
}
.size-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.size-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0; /* remove spacing between videos */
  margin: 0;
  padding: 0;
}
.video-grid video {
  width: 101%;
  height: auto;
  display: flex;           /* Avoid inline spacing */
  margin: 0;
  padding: 0;
  object-fit: cover;    
}

.video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.video-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-box video {
  width: 100%;
  height: auto;
  display: block;         /* Avoid inline spacing */
  margin: 0;
  padding: 0;
  object-fit: cover;    
}

.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.end-effector-button-group {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  overflow-x: auto;
}

.end-effector-button-group button {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px; /* pill shape */
  border: 1px solid black;
  background-color: transparent;
  color: black;
  cursor: pointer;
}

.end-effector-button-group 
button:hover,
button:focus {
  background-color: black;
  color: white;
  border: 1px solid black;
}

.end-effector-button-group button.selected {
  background-color: black;
  color: white;
  border: 1px solid black;
}

.viewer-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;  
}

/* .canvas-container {
  width: 400px;
  height: 400px;
  border: 1px solid #ccc;
  position: relative;
} */
canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.canvas-container {
  position: relative;
  width:  25rem;
  height: 25rem;
  border: 1px solid #ccc;
  margin: 10px;
}

.gripper-text {
  background-color: #f5f5f5;
  padding: 15px;

}

/* #URDF-VIEWERS{
  background-color: #f5f5f5;
  padding: 15px;
} */

.joint-panel {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  color: rgb(45, 45, 45);
  padding: 5px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 2;
  max-height: 80%;
  width: 60%;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.joint-panel.collapsed {
  max-height: 30px;
  overflow: hidden;
  padding-bottom: 4px;
  cursor: pointer;
}

.joint-panel.collapsed .slider-row,
.joint-panel.collapsed button,
.joint-panel.collapsed label,
.joint-panel.collapsed input,
.joint-panel.collapsed span {
  display: none;
}

.slider-row {
  display: flex;
  align-items: center;
  /* margin-bottom: 3px;
  margin-right: 5px; */
}
.slider-row label {
  width: 30px;
  margin-right: 60px;
}
.slider-row input[type="range"] {
  width: 80%;
}

.viewer-title {
  position: absolute;
  top: 8px;
  left: 12px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7);
  z-index: 3;
  pointer-events: none; /* allows clicking through to canvas below */
}

.viewer-learn-more {
  position: absolute;
  top: 8px;
  right: 12px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7);
  z-index: 3;
  text-decoration: underline;
}


.youtube-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
}

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

.contributer{
  color: #000000;

}
.contributer a {
  color: #6745ff;

}
.contributer a:hover {
  text-decoration: underline;

}

.publisher{
  color: #000000;
}
.publisher a {
  color: #6745ff;
}
.publisher a:hover {
  text-decoration: underline;
}