body {
  background-color: #dce3f4;
  padding: 50px;
  color: #444;
  font-weight: 300;
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

p {
  padding-bottom: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: black;
  margin: 0 0 20px;
  font-family: "Courier Prime";
}

.highlight {
  position: relative;
  display: inline;
}

.highlight::before {
  content: "";
  position: absolute;
  width: calc(100%);
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 35%;
  background-color: rgba(193, 82, 180, 0.5);
  z-index: -1;
}

.highlight-matcha {
  position: relative;
  display: inline;
}

.highlight-matcha::before {
  content: "";
  position: absolute;
  width: calc(100%);
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 35%;
  background-color: rgba(167, 199, 108, 1);
  z-index: -1;
}

ul,
ol,
table,
pre,
dl {
  margin: 0 0 20px;
  list-style-type: circle;
}

ul {
  padding-left: 30px;
}

li {
  margin: 2px 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3,
h4,
h5,
h6 {
  font-weight: 500;
}

a {
  color: #333;
  text-decoration: none;
  font-weight: 400;
}

a:hover {
  color: #888;
  transition: all 0.3s ease;
}

a small {
  font-size: 2.5px;
  margin-top: -0.3em;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 500;
}

th {
  color: #444;
}

table,
tr,
td {
  border: none;
}

img {
  width: 100%;
}

strong {
  font-weight: bold;
}

section {
  width: 700px;
  margin: auto;
}

small {
  font-size: 14px;
}

tiny {
  font-size: 11px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}

/* additions */

.flex-container {
  display: flex;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.flex-left {
  flex: 60%;
}

.flex-right {
  line-height: 1;
  flex: 20%;
}

.authors {
}

.paper-links {
  padding-top: 2px;
  font-size: 13px;
}

.paper-links a {
  text-decoration: underline;
  padding-right: 0 14px;
}

.paper {
  padding-left: 13px;
  padding-bottom: 20px;
}

#title {
  float: left;
}

#contact {
  font-family: 'Courier Prime', monospace;
  font-size: 1rem; /* Adjust size as needed */
  padding-left: 13px;
  float: left;
  clear: both;
}

.socials {
  padding-top: 9px;
  float: right;
}

.social {
  padding-left: 5px;
}

.circular-image {
  border-radius: 50%;
  object-fit: cover;
}

/* --- tags --- */

.tag {
  font-family: "Cedarville Cursive", cursive;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 25px;
  font-size: 14px;
  color: white;
  font-weight: bold;
  margin-top: 7px;
}

.tag-theory {
  background-color: #335c67;
}

.tag-graphics {
  background-color: #e09f3e;
}

.tag-math-art {
  background-color: #9e2a2b;
}

.tag-hci {
  background-color: #283618;
}

/* --- show  --- */
.hidden {
  display: none;
}

.show {
  text-decoration: underline;
}

.show:hover {
  color: #888;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* --- hover --- */

.text-with-image {
  font-weight: 300;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Floating image container */
.floating-image {
  position: relative;
  display: inline-block;
  font-weight: 300;
  text-decoration: underline;
  text-decoration-style: dotted;
  font-size: 16px;
  font-family: "Open Sans", cursive;
}

/* Image */
.floating-image img {
  visibility: hidden;
  height: 250px;
  width: auto;
  position: absolute;
  z-index: 1;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the image when hovering */
.floating-image:hover img {
  visibility: visible;
  opacity: 1;
}

#matcha {
  text-align: left;
}

#matcha ol {
  list-style-type: decimal;
  padding-left: 1.5em; /* Optional, helps visually indent */
}

#matcha li {
  text-align: left; /* Redundant if #matcha is already left-aligned, but just in case */
  margin-bottom: 0.5em;
}

#matcha p {
  text-indent: 0;
  margin: 0;
  padding: 0;
}

#matcha li p {
  margin-top: 0.5em;
}


.caption {
  text-align: center;
  font-size: 0.8em;
  color: #555; /* Optional: lighter color for a caption feel */
  margin-top: 0.5em;
}

#nav {
  float: right;
  padding-top: 10px;
}

#nav a {
  text-decoration: underline;
}

.icon i {
  font-size: 18px; /* or 1.5em, etc. */
}

.icon i:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.snapshots {
  margin: 0 0 20px;
  padding-left: 10px;
  max-width: 700px;
}

/* Media queries */
@media screen and (max-width: 768px) {
  body {
    padding: 10px 0;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
}

#papers {
  padding-left: 10px;
}


/* Nav */
#side-nav {
  position: fixed;
  top: 50px; /* Adjust as needed */
  left: 30px; /* Add more padding on the left */
  width: 200px; /* Adjust width */
  background-color: transparent; /* Transparent background */
  padding: 10px;
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
}

#side-nav ul {
  list-style-type: none;
  padding: 0;
}

#side-nav ul li {
  margin-bottom: 15px;
}

#side-nav ul li a {
  text-decoration: none;
  color: #333; /* Adjust color as needed */
  font-size: 14px;
  position: relative;
}

#side-nav ul li a:hover {
  color: #007acc; /* Adjust hover color */
}

#side-nav ul li a::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(193, 82, 180, 0.5); /* Same color as the highlight */
  position: absolute;
  bottom: -3px;
  left: 0;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#side-nav ul li a:hover::after {
  transform: scaleX(1.1); /* Slightly enlarge the underline on hover */
}

/* Hide the navigation bar on narrow screens */
@media screen and (max-width: 1040px) {
  #side-nav {
    display: none;
  }
}