:root {
	--grey: rgb(90, 90, 90);
    --black:  rgb(0, 0, 0);
    --white: rgb(255, 255, 255);

	--blue1: rgb(2,33,105);
	--blue2: rgb(0,51,160);
	--blue3: rgb(0,114,206);
	--blue4: rgb(108,172,228);
    --blue5: rgb(23, 116, 210);
    --dukeblue:  rgb(1, 33, 105);
	--pink1: #F9564F;
 }

html, p{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    font-family: 'Source Sans Pro', sans-serif;
    /*font-family: "Helvetica Neue","Helvetica","Arial",sans-serif;;*/
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--black);
}
p{
    margin: 0.2em;
}

ol, ul {
    list-style: none;
}

ul {
    /*list-style-position: inside;*/
    list-style-position: outside;
    list-style-type: disc;
    font-size: 120%;
}

ul.research-topic-list {
    font-size: 100%;
}

a {
    text-decoration: none;
    font-weight: 500;
    color:  var(--dukeblue);
}

i {
    font-style: italic;
}

h1 {
    font-weight: 600;
    font-size: 180%;
    color: var(--black);
}

b {
    font-weight: 500;
}

/**************************************************/

#header {
    height: 2em;
    line-height: 2em;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 50% - 500px;
    z-index: 9999;
    width: 1000px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

#header a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 20px;
    transition: color 0.3s ease;
}

#header a:hover {
    color: var(--pink1);
}


/**************************************************/
.lab-name {
    padding: 80px 0px 0px 15%;
    /*border-bottom: 1px solid #ddd;*/
}

.lab-name img {
    width: 100px;
    margin:0 2%;
    float:left;
}

.lab-name-text {
    float:left;
}

.lab-name-text h4{
    width:100%;
    float:left;
    margin-top: 0px;
    font-size:3.5em;
}

.lab-name-text p {
    width:100%;
    float:left;
    font-size:1.6em;
    color: var(--grey);
    margin-top: -70px;
}


/**************************************************/

#profile {
    border-bottom: 1px solid #ddd;
}

#profile-pic {
    float: left;
    margin-right: 40px;
    text-align: center;
}

#profile img {
    width: 350px;
    margin-bottom: 18px;
}

#profile-name {
    font-size: 3em;
    line-height: 1em;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--black);
    text-align: center;
}


#profile-email {
    margin-bottom: 10px;
    color: var(--black);
    text-align: center;
}

#profile-links {
    text-align:  center;
    font-size: 120%;
    color: var(--dukeblue);
    font-weight: 1200;
}

#profile-links img {
    width: 30px;
}

#profile p {
    margin-bottom: 10px;
    text-align: justify;
}


.divider {
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.research-thumb {
    width: 8em;
    height: 8em;
    float: left;
    margin-top: 0px;
    padding-right: 30px;
    margin-bottom: 20px;
}

.research-thumb img {
    width: 100%;
}

/* .research-proj-title {
    color: var(--black);
    font-weight: 600;
    font-size: 18px;
} */

.research-proj-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.research-proj-title:hover {
    color: var(--pink1);
}

.paper-links {
    font-size: 1em;
    font-weight: 500;
    color: var(--dukeblue);
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.paper-links:hover {
    color: var(--pink1);
}

.press-thumb {
    width: 4em;
    height: 4em;
    float: left;
    margin-top: 0px;
    padding-right: 30px;
    margin-bottom: 30px;
}

.press-thumb img {
    width: 100%;
}

.press-title {
    color: var(--black);
    font-weight: 400;
    font-size: 16px;
}

.paper-award {
    color: red; 
}





.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    transition-duration: 0.3s;
    transition-property: transform;
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
    transform: scale(1.05);
}




div.gallery img {
  width: 100%;
  height: auto;
}

.responsive {
  padding: 2px;
  float: left;
  width: 24.99999%;
  box-sizing: border-box;
}


/*Hover people*/

.people-responsive {
  padding: 15px;
  float: left;
  width: 20%;
  box-sizing: border-box;
}

div.people-gallery img {
  width: 100%;
  height: auto;
}


.people-gallery-image-caption-top {
    text-align: center;
    width: 100%;
    margin-top: 3px;
    margin-bottom: -3px;
    font-size: 15px;
}

.people-gallery-image-caption-middle {
    text-align: center;
    width: 100%;
    margin-top: 0px;
    margin-bottom: -3px;
    font-size: 15px;
}

.people-gallery-image-caption-bottom {
    text-align: center;
    width: 100%;
    margin-bottom: -10px;
    font-size: 15px;
}

.people-off, #people-hover:hover .people-on{
   display:none
}
.people-on, #people-hover:hover .people-off{
   display:block
}

.lab-photo-column {
  float: left;
  width: 49%;
  padding: 5px;
}

/* Clearfix (clear floats) */
.lab-photo-row::after {
  content: "";
  clear: both;
  display: table;
}


/*footer*/
footer {
    position: relative;
    height: 50px;
    width: 100%;
    background-color: var(--white);
}

p.copyright {
    position: absolute;
    width: 100%;
    color: var(--black);
    line-height: 40px;
    font-size: 1em;
    text-align: center;
    bottom:0;
}

.dot {
  height: 5px;
  width: 5px;
  background-color: black;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  text-align: center;
}


/**************************************************/
/*slide show*/
.video-slide img {
    vertical-align: middle;
}

/* Position the image container (needed to position the left and right arrows) */
.video-slide-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

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

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  margin-left: -80px;
  margin-right: -80px;
  color: black;
  font-weight: bold;
  font-size: 40px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 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.2);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

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

/* Six columns side by side */
.column {
  float: left;
  width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.5;
  border-radius: 5%;
  border: 1px solid #555;
}

.active,
.demo:hover {
  opacity: 1;
}
/**************************************************/

.research-focus-text {
    /* color: var(--grey); */
    margin-bottom: 8px;
    /* line-height: 1.5; */
}

.year-filter-container {
    margin: 20px 0;
}

.year-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.year-filter-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-filter-tab:hover {
    background: #f0f0f0;
}


.year-filter-tab.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.papers-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.paper-item {
    display: none;
}

.paper-item.visible {
    display: block;
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-button {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    width: auto;
}

.load-more-button:hover {
    background-color: var(--black);
    color: white;
    border: 2px solid var(--black);
    transform: translateY(-2px);
}

.load-more-button:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

/* Sponsor Acknowledgments */
.acknowledgments-section {
    margin: 45px 0;
    padding: 0;
    text-align: center;
    width: 1000px;  /* Fixed width to match container */
    margin-left: auto;
    margin-right: auto;
}

.acknowledgments-section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--black);
}

.acknowledgments-section p {
    margin-bottom: 25px;
    font-size: 1.1em;
}

.sponsors-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin: 45px auto;
    width: 1000px;  /* Fixed width instead of max-width */
    padding: 0 20px;
    box-sizing: border-box;
}

.sponsor-item {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sponsor-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Specific style for BMW logo to make it smaller */
.sponsor-item img[alt="BMW"] {
    max-width: 55%;
    max-height: 55%;
}

/* Robots */

.robots-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.robot-item {
    width: calc(25% - 23px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
}

.robot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.robot-thumb:hover img {
    transform: scale(1.05);
}

.robot-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--dukeblue);
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.robot-name:hover {
    color: var(--pink1);
}

.other-robots-list {
    margin: 20px 0;
    padding-left: 20px;
}

.other-robots-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.facilities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.facility-category {
    width: calc(50% - 15px);
}

.facility-category h2 {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--black);
}

.facility-category ul {
    padding-left: 20px;
}

.facility-category li {
    margin-bottom: 8px;
}

/* Add horizontal scrolling for small screens while keeping content centered */
@media screen and (max-width: 1000px) {
    body {
        min-width: 1000px;  /* Force minimum width */
        overflow-x: auto;   /* Allow horizontal scrolling */
    }
}

/* Lab Photos Slideshow */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.lab-photo-slide {
    display: none;
    width: 100%;
}

.lab-photo-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.year-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 18px;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.dots-container {
    text-align: center;
    padding: 15px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}