body, td, th {
  font-family: 'Titillium Web', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

heading {
  font-family: 'Titillium Web', Verdana, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 600;
}

strong {
  font-family: 'Titillium Web', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

sectionheading {
  color: #000000;
  font-family: 'Titillium Web', Verdana, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 600;
}

pageheading {
  font-family: 'Titillium Web', Verdana, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 400;
}

.logo {
  max-width: 1000px;
  height: auto;
}

video {
  border-radius: 16px;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-weight: 500;
}

a:focus, a:hover {
  color: #1a8cff;
  text-decoration: none;
}

.author-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.title-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.title-link:focus, .title-link:hover {
  color: #1a8cff;
  text-decoration: none;
}

.author-link:hover {
  color: #1a8cff;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
}

.highlight-link {
  color: #0066cc;
  text-decoration: none;
  background-color: #f0f5ff;
  border-radius: 3px;
  padding: 4px 4px;
  transition: all 0.2s ease-in-out;
}

.ref-link, .name-link {
  color: #0066cc;
  font-weight: 400;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease-in-out;
}

.news-link {
  color: #333333;
  font-size: 16px;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.social-icon {
  color: #0066cc;
  font-size: 24px;
  margin: 0 8px;
  transition: color 0.2s ease-in-out;
}

.social-icon:hover {
  color: #1a8cff;
}

.paper-links {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-top: 8px;
}

.paper-link {
  color: #666;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
}

.paper-link:hover {
  color: #0066cc;
  background-color: #f0f5ff;
}

.paper-link-separator {
  color: #666;
  font-weight: 600;
  margin: 0;
  font-size: 0.4em;
  vertical-align: middle;
  line-height: 1;
}

.name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 0;
  height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.navbar > div {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5%;
}

.navbar .name {
  font-size: 25px;
  font-weight: 600;
  margin-left: 25px;
  color: #333;
}

.navbar .nav-links a {
  font-size: 18px;
  padding: 0 5px;
  margin-left: 15px;
  color: #336699;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-links a:hover {
  color: #b3d9ff;
}

section[id] {
  scroll-margin-top: 70px;
}

[id] {
  scroll-margin-top: 70px;
}

/* Add dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  body, td, th {
    color: #e0e0e0;
  }

  heading {
    color: #ffffff;
  }

  strong {
    color: #ffffff;
  }

  sectionheading {
    color: #ffffff;
  }

  pageheading {
    color: #ffffff;
  }

  .navbar {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333333;
  }

  .navbar .name {
    color: #e0e0e0;
  }

  .author-link {
    color: #e0e0e0;
  }

  .title-link {
    color: #e0e0e0;
  }

  .highlight-link {
    background-color: #0f2242;
  }

  .news-link {
    color: #cccccc;
  }

  .paper-link {
    color: #aaaaaa;
  }

  .paper-link:hover {
    background-color: #0f2242;
  }

  .paper-link-separator {
    color: #aaaaaa;
  }

  /* Keep blue colors consistent across themes */
  a, .social-icon, .ref-link, .name-link, .highlight-link {
    color: #1a8cff; /* slightly lighter blue for better visibility on dark background */
  }

  a:focus, a:hover, .social-icon:hover, .title-link:focus, .title-link:hover, .author-link:hover, .paper-link:hover {
    color: #6db0ff;
  }

  /* Use dark version of drivestudio logo */
  img[src="images/drivestudio.png"] {
    content: url("../images/drivestudio_dark.png");
  }

  .navbar .nav-links a {
    color: #1a8cff;  /* Brighter blue color for navbar links in dark mode */
  }
  
  .navbar .nav-links a:hover {
    color: #c2e0ff;  /* Even brighter on hover */
  }
}