/* RESET
   http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, 
/* em,  */
img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, 
/* i, */
center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: top;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/**** Isotope filtering ****/

html {
    scroll-behavior: smooth;
}

.isotope-item {
  z-index: 2;
}

.isotope-hidden.isotope-item {
  pointer-events: none;
  z-index: 1;
}

.isotope,
.isotope .isotope-item {
/* change duration value to whatever you like */
  -webkit-transition-duration: 0.8s;
     -moz-transition-duration: 0.8s;
          transition-duration: 0.8s;
}

.isotope {
  -webkit-transition-property: height, width;
     -moz-transition-property: height, width;
          transition-property: height, width;
}

.isotope .isotope-item {
  -webkit-transition-property: -webkit-transform, opacity;
     -moz-transition-property:    -moz-transform, opacity;
          transition-property:         transform, opacity;
}

.bold {
  font-weight: 500;
}



/*==============================
	MY STYLES
==============================*/

:root {
  --transition-time: 0.1s; 
  --main-text-color: #424949;
  --link-color: #2e86c1; 
  --link-hover-color: #1f5b83;
  --link-border-color: #2874a6; 
  --navbar-background-color: black;
  --button-icon-background-color: #f8f9fa;
  /* --button-hover-border-color: #dadce0; */
  --button-hover-border-color: #85c1e9;
  --button-hover-background-color: #aed6f1;
  --button-hover-color: #202124;
  --code-background-color: #f5f5f5;
  --div-border-radius: 5px;
  --button-border-radius: 10px;
  --dark-grey: #e0e0e0;
}

body {
  background: white;
  width: 900px;
  margin: 20px auto 0px;
  font-family: Helvetica Neue, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
  transition: var(--transition-time);;
}

b {
  font-weight: bold;
}

tr {
}

td {
  padding-top:10px;
  padding-bottom:10px;
}

ul {
  list-style-type:disc; 
  margin-left: 20px;
  margin-top: 0px;
}

li {
}

mark {
  background-color: var(--dark-grey);
  color: var(--main-text-color);
}

.section {
  padding-top: 20px;
  color: var(--main-text-color);
}

#personal {
  vertical-align: center;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

#basic {
  vertical-align: center;
}

#basic h1 {
  font-size: 36px;
  align: left;
  vertical-align: center;
}

#basic h2 {
  font-size: 20px;
  align: left;
}

#photo {
  width: 25%;
  align: right;
  vertical-align: middle;
}

#photo img {
  width: 80%;
  align: right;
  vertical-align: middle;
  margin-top: 0px;
}

#info {
  float: center;
}

#info h1 {
  font-size: 24px;
  font-weight: 450;
}

#info h2 {
  font-size: 20px;
  font-weight: 450;
}

#publications {
  line-height: 1.75;
  margin-top: -30px;
  vertical-align: top;
}

#publications img {
  width: 192px;
  height: 108px;
  margin-top: 10px;
  margin-right: 30px;
}

#publications table {
  float: left;
}

#publications-image {
  width: 20%;
  text-align: left;
  vertical-align: top;
}

#publications-info {
  width: 80%;
  text-align: left;
  vertical-align: top;
}

#publications .publications-link-bar {
}

#publications .publications-link-bar a {
  margin-left: -6px;
  margin-right: -6px;
  text-decoration: none;
  background-color: white;
  border: 1px solid white;
  border-radius: var(--button-border-radius);
  padding: 5px 5px;
}

#publications .publications-link-bar a:hover {
  text-decoration: none;
  color: var(--main-text-color);
  /* color: white; */
  background-color: var(--button-hover-background-color);
  border-color: var(--button-hover-border-color);
  border-radius: var(--button-border-radius);
  padding: 5px 5px;
  transition: var(--transition-time);;
}

#paper {
  font-weight: bold;
  color: black;
}

#author {
  color: #808080;
}

#author-kuan {
  color: black;
  white-space:nowrap;
}

#venue {
  color: black;
}

.pinyin-tooltip {
  position: relative;
  display: inline-block;
  font-size=16px;
}

.pinyin-tooltip .pinyin-text {
  visibility: hidden;
  width: 120px;
  text-align: center;
  padding: 5px 0;
  border-radius: var(--button-border-radius);
  font-size=16px;

  /* Position the tooltip text */
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.pinyin-text mark{
  white-space: pre;
  background-color: var(--dark-grey);
  font-size=16px;
  color: var(--main-text-color);
}

.pinyin-tooltip:hover .pinyin-text {
  visibility: visible;
  transition: var(--transition-time);;
}


.navbar {
  display: flex;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: white;
  transition: background-color var(--transition-time) ease;
  padding: 15px 20px;
  z-index: 0;
}

.navbar-container {
  width: 100%;
  max-width: 968px;
  margin: 0 auto; /* Center align the container */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-left {
  margin-right: auto; /* Push the navbar-left (logo) to the far left */
  display: flex;
  align-items: center;
  padding-left:0px;
}

.navbar-right {
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
}

/* Navbar Items */
.nav-item {
  text-decoration: none;
  margin: -5px 10px;
  padding: 5px 5px;
  border: 1px solid white;
  border-radius: var(--button-border-radius);
  color: var(--main-text-color);
  font-size: 16px;
  transition: color var(--transition-time) ease;
}

.nav-item-name {
  text-decoration: none;
  margin: -5px 10px;
  padding: 5px 5px;
  border: 1px solid white;
  border-radius: var(--button-border-radius);
  color: var(--main-text-color);
  font-size: 16px;
  font-weight: bold;
  transition: color var(--transition-time) ease;
  display: none;
}

.nav-item:hover {
  text-decoration: none;
  background-color: var(--button-hover-background-color);
  color: var(--button-hover-color);
  border-color: var(--button-hover-border-color);
  border-radius: var(--button-border-radius);
  padding: 5px 5px;
  transition: var(--transition-time);;
}

.nav-item-name:hover {
  text-decoration: none;
  border-radius: var(--button-border-radius);
  padding: 5px 5px;
  transition: var(--transition-time);;
}

.navbar.scrolled {
  background-color: var(--navbar-background-color);
  z-index: 1000;
}

.navbar.scrolled .nav-item {
  color: white;
  border-color: var(--navbar-background-color);
}

.navbar.scrolled .nav-item-name {
  display: inline;
  color: white;
  border-color: var(--navbar-background-color);
}

.navbar.scrolled .nav-item {
  color: white;
}

.navbar.scrolled .nav-item-name {
  display: inline;
}

.navbar.scrolled .nav-item:hover {
  text-decoration: none;
  color: white;
  background-color: var(--link-color);
  border-color: var(--link-border-color);
}

.navbar.scrolled .nav-item-name:hover {
  text-decoration: none;
  color: white;
  background-color: var(--link-color);
  border-color: var(--link-border-color);
}

/* Responsive Styling for Mobile Devices */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align the items to the left */
    padding: 0 15px; /* Reduce padding */
  }

  .navbar-right {
    display: flex;
    flex-direction: column; /* Stack the nav-items vertically */
    width: 100%; /* Take the full width on mobile */
    margin-top: 10px; /* Add a bit of spacing */
  }

  .nav-item {
    margin: 10px 0; /* Add spacing between each nav-item */
  }
}

.button-icon {
  background-color: var(--button-icon-background-color);
  color: var(--main-text-color);
  border: 1px solid var(--button-icon-background-color);
  border-radius: var(--div-border-radius);
  cursor: pointer;
  font-family: Helvetica Neue, Roboto, Arial, sans-serif;
  font-size: 14px;
  height: 28px;
  line-height: 27px;
  min-width: 54px;
  padding: 0 16px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-icon:hover {
  background-color: var(--button-hover-background-color);
  color: var(--button-hover-color);
  border-color: var(--button-hover-border-color);
  box-shadow: rgba(0, 0, 0, .1) 0 1px 1px;
  transition: var(--transition-time);;
}

.button-icon:focus {
  border-color: var(--button-hover-background-color);
  outline: none;
  transition: var(--transition-time);;
}

/* .button-publication { */
/*   background-color: white; */
/*   border: 0px solid white; */
/*   border-radius: 4px; */
/*   color: var(--link-color); */
/*   cursor: pointer; */
/*   font-family: Helvetica Neue, Roboto, Arial, sans-serif; */
/*   height: 28px; */
/*   line-height: 27px; */
/*   min-width: 54px; */
/*   padding: 0 16px; */
/*   text-align: center; */
/*   user-select: none; */
/*   -webkit-user-select: none; */
/*   touch-action: manipulation; */
/* } */
/*  */
/* .button-publication:hover { */
/*   background-color: var(--button-hover-background-color); */
/*   border-color: #dadce0; */
/*   box-shadow: rgba(0, 0, 0, .1) 0 1px 1px; */
/*   color: var(--button-hover-color); */
/*   transition: var(--transition-time);; */
/* } */
/*  */
/* .button-publication:focus { */
/*   border-color: var(--button-hover-background-color); */
/*   outline: none; */
/*   transition: var(--transition-time);; */
/* } */

.bibtex-link {
  color: var(--link-color);
  text-decoration: none;
}
.bibtex-link:hover {
    text-decoration: underline;
}
.bibtex-content {
  /* display: none; */
  /* margin-left: 0px; */

  /* background-color: #f9f9f9; */
  /* padding: 10px; */
  /* border-left: 2px solid #ccc; */
  /* border-radius: var(--div-border-radius); */
  /* font-size: 14px; */
  /* line-height: 1.5; */
  /* width: 640px; */
  /* overflow-x: visible; */
  /* overflow-y: hidden; */
}

.grill-head {
  display: flex;
  align-items: center;
  color: var(--main-text-color);
  margin-top: 60px;
}

.grill-logo {
  width: 10%;
}

.grill-logo img {
  width: 100%;
  height: auto;
}

.grill-name {
  width: 90%;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
}

#grill-info {
  float: center;
}

#grill-info h1 {
  font-size: 24px;
  font-weight: bold;
}

#grill-info h2 {
  font-size: 20px;
  font-weight: bold;
}

.tab-content {
  display: block;
  margin-left: 0px;
  padding: 0px;
  max-width: 100%;
  /* background-color: #f9f9f9; */
}

.code-window {
  position: relative;
  margin: 4px 0;
  border-radius: 5px;
  overflow: hidden;
  width: 672px;
}

.code-header {
  background-color: #808080;
  padding: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
}

.code-header .language {
  color: var(--button-icon-background-color);
  margin-left: 8px;
}

.code-header .copy-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--button-icon-background-color);
  font-size: 14px;
  margin-right: 8px;
}

.code-header .copy-button:hover {
  text-decoration: none;
}

.code-content {
  padding: 8px;
  background-color: var(--code-background-color);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: visible;
  overflow-y: hidden;
}

.code-content pre {
  margin: 0;
}

.profile-photo-hoverable {
  color: var(--main-text-color);
  text-decoration: none;
  cursor: pointer;
}

.profile-photo-hoverable:hover {
  color: var(--link-hover-color);
}

/* Robot video carousel */

.robot-carousel-container {
  position: relative;
  max-width: 960px;
  margin: 16px auto;
  overflow: hidden;
}

.robot-carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.robot-carousel-track {
  display: flex;
}

.robot-carousel-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  padding: 4px;
}

.robot-carousel-item video {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
  display: block;
}

/* Arrow buttons */
.robot-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.robot-carousel-arrow.left { left: 6px; }
.robot-carousel-arrow.right { right: 6px; }

.robot-carousel-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.robot-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.robot-carousel-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
}
