/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6uyw4BMUTPHjx4wXiWtFCc.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

a {
  color: #1772d0;
  text-decoration: none;
}

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

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* Prevent fixed navbar from covering anchor targets */
#about,
#research,
#projects {
  scroll-margin-top: 80px;
}

/* Publication readability tweaks: separate title/authors/venue more clearly */
.pub-list tr > td:nth-child(2) > a papertitle {
  display: inline-block;
  margin-bottom: 2px;
}

.pub-list tr > td:nth-child(2) > font {
  display: block;
  margin-top: 2px;
  line-height: 1.0;
}

.pub-list tr > td:nth-child(2) > font > em {
  display: inline-block;
  margin-top: 5px;
  color: #1f5f99;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* For the Navigation Bar */
.topnav {
  overflow: hidden;
  text-align: center;
}

.topnav a {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: black;
  text-align: center;
  padding: 8px 20px;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background-color: rgba(44, 110, 173, 0.8);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  outline: none;
}

ul {
    list-style: none;
    display: inline-block;
}

ul li {
    float: left;
    margin: 0 20px;
}

ul li a {
    color: white;
}

.container {
    height: auto;
    padding: 4px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    border: 1px solid rgba(255, 255, 255, 0.65);
    top: 10px;
    left: 0px;
    right: 0px;
    z-index: 1000; /* Set a higher z-index value */
    background-color: rgba(159, 197, 233, 0.7);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    max-width: 800px;
    margin: auto;
}

.center {
    margin-top: 0;
    position: static;
    top: auto;
    left: auto;
    transform: none;
}

/* Keep navbar links on one row if the default layout wraps */
html.nav-compact .topnav .center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
    transform-origin: center top;
    transform: scale(var(--nav-scale, 1));
}

html.nav-compact .topnav a {
    padding: 6px 15px;
    font-size: 15px;
    white-space: nowrap;
}

html.nav-compact .topnav a .axure-handwriting {
    font-size: 1.1rem !important;
    letter-spacing: 0.03rem !important;
    word-spacing: 0.06rem !important;
}

html.nav-compact .container {
    padding: 3px 0px;
}

html.page-compact .main {
  transform-origin: top center;
  transform: scale(var(--page-scale, 1));
}

.main {
  margin-top: 70px; /* Add a top margin to avoid content overlay */
}

@font-face {
  font-family: "Axure Handwriting";
  src:
    url("/?originalUrl=https%3A%2F%2Fsairajk.github.io%2Ffonts%2FAxureHandwriting.woff2") format("woff2"),
    url("/?originalUrl=https%3A%2F%2Fsairajk.github.io%2Ffonts%2FAxureHandwriting.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.axure-handwriting {
  font-family: "Axure Handwriting", "Nanum Pen Script", cursive;
  font-weight: 400;
  font-style: normal;
}
