/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-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(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-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(https://fonts.gstatic.com/s/lato/v15/S6u_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(https://fonts.gstatic.com/s/lato/v15/S6u_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(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.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(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.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(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.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(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.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;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --link-color: #1772d0;
  --link-hover-color: #f09228;
  --code-bg-color: #f5f5f5;
  --code-hover-color: #eaeaea;
  --community-count-color: #666;
  --community-name-color: #333;
  --community-tag-text-color: #ffffff;
}

[data-theme="dark"] {
  --bg-color: #222222;
  --text-color: #e0e0e0;
  --link-color: #3a8fff;
  --link-hover-color: #ff9f3a;
  --code-bg-color: #333333;
  --code-hover-color: #444444;
  --community-count-color: #cccccc;
  --community-name-color: #ffffff;
  --community-tag-text-color: #333333;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-color: #222222;
    --text-color: #e0e0e0;
    --link-color: #3a8fff;
    --link-hover-color: #ff9f3a;
    --code-bg-color: #333333;
    --code-hover-color: #444444;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:focus,
a:hover {
  color: var(--link-hover-color);
  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;
}

.container {
  margin-right: auto;
  margin-left: auto;
  max-width: 800px;
}

.personal-photo{
  width: 80%;
  max-width: 100%;
  margin: auto;
  display: block;
}

.institute-logo{
  width: 90px;
}

.paper-images{
  width: 100%;
  margin: auto;
  display: block;
}

@media screen and (max-width: 576px) {
  .personal-photo{
    width: 80%;
    max-width: 200px;
    margin: auto;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .paper-images{
    width: 100%;
    max-width: 200px;
    margin: auto;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}


.left-column{
  margin-top: auto;
  margin-bottom: auto;
}

.right-column{
  margin-top: auto;
  margin-bottom: auto;
}

.personal-column{
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
}

.name-column{
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
}

.common-rows {
  margin-top: 10px;
  margin-bottom: 10px;
}

.section-heading-rows {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* BibTeX styling */
.bibtex-content {
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 6px;
  background-color: var(--code-bg-color);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.2;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  font-family: monospace;
  display: block;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

.bibtex-content:hover {
  background-color: var(--code-hover-color);
}

.bibtex-content:hover::after {
  content: "Click to copy";
  position: absolute;
  top: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 0 4px 0 4px;
  opacity: 0.8;
}

.bibtex-content pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  font-family: monospace;
}

/* Community filter styling */
.community-toggle {
  display: inline-block;
  margin: 2px;
}

.community-checkbox {
  margin-right: 5px;
}

#communityFilters {
  margin-top: 10px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

/* Style the control buttons to match community tags */
.community-control-btn {
  background-color: #4a86e8;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  border: none;
  font-family: 'Mukta', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.community-control-btn:hover {
  background-color: #3a76d8;
}

/* Fix for button spacing */
.mr-2 {
  margin-right: 8px;
}

/* Dark mode toggle */
.theme-switch-wrapper {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.darkmode-label {
  font-size: 12px;
  margin: 0 8px;
  color: var(--text-color);
}
