/* 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;
}

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;
}

h2 {
  margin: 0;
  font-weight: normal;
  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 {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  max-width: 160px;
  width: 30vw;
  max-height: 160px;
  height: 30vw;
  position: relative;
}

.two {
  max-width: 160px;
  width: 30vw;
  max-height: 160px;
  height: 30vw;
  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;
}

.title {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin-bottom: -3px;
  font-size: 24px;
}

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

.research-table tr td:first-child {
  width: 49%;
  padding: 0;
  vertical-align: top;
}

.research-table tr td:last-child {
  width: 50%;
  padding: 20px;
  padding-top: 0px;
  vertical-align: middle;
}

.maco {
  color: rgb(55, 157, 143);
}

.research-table {
  --fs : 15px
}

.research-table .title {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: solid 2px rgba(31, 31, 31, 0.9);
  font-family: 'Crimson Text', serif;
  font-size: 22px;
  text-align: center;
  font-weight: bold;
}


.research-table .authors {
  text-align: center;
  font-size: var(--fs);
}
.research-table .conference {
  font-size: var(--fs);
}

.research-table .links {
  font-size: var(--fs);
}

.research-table .resume {
  font-size: var(--fs);
  text-align: justify;
  text-justify: inter-word;
}

.research-table .conference {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 10px;
  font-style: italic;
  text-align: center;
}

.container {
  width: 80%;
  margin: auto;
  padding: 2rem 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 300px);
  gap: 1rem;
}
.grid-item {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.grid-item:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 4px rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
}
.grid-item img, .grid-item video {
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 5px;
}
.grid-item h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-width: 100%;
  margin: auto;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.photo-grid img.vertical {
  grid-row: span 2; /* Make vertical photos span two rows */
  object-fit: cover; /* Ensure the photo covers the area without distortion */
  height: 100%; /* Ensure the height spans correctly */
}

.photo-grid img.horizontal {
  grid-column: span 1.5; /* Make horizontal photos span two columns */
  object-fit: cover; /* Ensure the photo covers the area without distortion */
  width: 100%; /* Ensure the width spans correctly */
}

.insta-logo {
  float:right;
}

.writing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.writing-item {
  flex: 1 1 calc(50% - 20px); /* Adjust size depending on layout */
  box-sizing: border-box;
}

.writing-item img {
  border-radius: 8px;
}

.writing-item h3 {
  font-size: 1.2em;
  margin: 10px 0;
}

.writing-item p {
  font-size: 0.9em;
  color: #555;
}

/* Navigation bar styles (moved from index.html) */
.navbar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 10px 0;
    /* border-bottom: 1px solid #f0f0f0; */
    text-align: center; /* Center the navigation links */
}

.navbar a {
    margin: 0 15px; /* Spacing between links */
    color: #1772d0; /* Nice green color for links */
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px; /* Space for the underline */
}

.navbar a:hover {
    color: #99bcee; /* Lighter green on hover */
    text-decoration: bold; /* Underline on hover for clarity */
}

.navbar a.active {
    /* Remove orange background and white text */
    /* background-color: orange; */ 
    /* color: white; */
    border-bottom: 3px solid #cccccc; /* Light grey underline/bar for active link */
    font-weight: bold; /* Ensure active link is still bold */
}

/* Ensure general link styles don't override navbar specific styles */
body a {
  color: #1772d0; /* Revert general link color to blue */
}

body a:focus,
body a:hover {
  color: #99bcee; /* Revert hover color to orange */
  text-decoration: none; /* Keep original no-underline on hover */
}

/* Hand Drawn Nav Styles */
#hand-drawn-nav {
    text-align: center;
}

#hand-drawn-nav img {
    height: 110px; /* Control the size of the icons */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align icons nicely */
    transition: transform 0.2s ease; /* Smooth hover effect */
}

/* Notes Page Styles */
.notes-header {
  text-align: center;
  margin-bottom: 30px;
}

.notes-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.topic-connections {
  max-width: 600px;
  margin: 0 auto 40px;
  overflow-x: auto;
}

.connections-svg {
  display: block;
  margin: 0 auto;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #e9e9e9;
}

.filter-btn.active {
  background-color: #1772d0;
  color: white;
  border-color: #1772d0;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.note-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.note-header h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.note-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

.note-excerpt {
  flex-grow: 1;
  margin-bottom: 15px;
}

.note-excerpt p {
  margin: 0;
  color: #444;
  line-height: 1.6;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: #f0f0f0;
}

.tag.ml {
  background-color: #e1f5fe;
  color: #0288d1;
}

.tag.neuro {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.tag.consciousness {
  background-color: #e8f5e9;
  color: #388e3c;
}

.tag.philosophy {
  background-color: #fff3e0;
  color: #f57c00;
}

.tag.personal {
  background-color: #fce4ec;
  color: #c2185b;
}

.read-more {
  font-size: 12px;
  font-weight: bold;
}

.related-notes {
  font-size: 12px;
  color: #666;
  padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .name {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .research-table tr,
  .research-table tr td:first-child,
  .research-table tr td:last-child {
    display: block;
    width: 100%;
  }

  .research-table tr td:last-child {
    padding: 15px;
    padding-top: 5px;
  }

  .research-table img {
    max-width: 250px;
    display: block;
    margin: 10px auto;
  }

  .one,
  .two {
    width: 140px;
    height: 140px;
  }

  .research-table {
    --fs: 14px;
  }

  .navbar a {
    display: block;
    margin: 10px auto; /* Add vertical spacing, maintain centering */
    padding: 5px 0;
  }
}

.polaroid img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.polaroid img:hover {
  transform: scale(1.03);
}

/* Lightbox Styles */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 85vh; /* Limit height */
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  padding: 10px 12px 10px 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .site-footer p {
    font-size: 0.9em;
    text-align: center;
    padding-right: 0;
  }
  
  /* Notes page responsive adjustments */
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .topic-connections {
    max-width: 100%;
  }
  
  .category-filter {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
  }
}
