html {
  font-size: 20px;
}

@media screen and (max-width: 480px) {
  html {
    font-size: 17px;
  }
}

@media screen and (max-width: 320px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: "Zilla Slab", serif;
  margin: 1rem;
}

h1 {
  text-align: center;
}

h3 {
  text-align: center;
}

/*p + p {
  text-indent: 1.5em;
  margin-bottom: 0;
  margin-top: 0;
}*/

article {
  margin: 0 auto;
  line-height: 1.3;
  max-width: 35rem;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#iteration {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
#surface-plot {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

html {
  scroll-behavior: smooth;
}

#bibliography li {
  margin-bottom: 1rem;
}

/* Highlight animation */
@keyframes flashHighlight {
  30% {
    background-color: #fff3cd;
  } /* light yellow */
  100% {
    background-color: transparent;
  }
}

#bibliography li.highlight {
  animation: flashHighlight 2s ease-out;
}

.citation-popup {
  background: white;
  border: 1px solid #0000001a;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  line-height: 1.4;
  /* Add transform for slide-up effect */
  transform: translateY(4px);
  transition:
    opacity 120ms ease,
    visibility 120ms ease;
}

.citation-popup.visible {
  transform: translateY(0);
}

a,
a:visited {
  color: #0056b3;
}

ol#bibliography {
  list-style: none;
  counter-reset: item;
}

ol#bibliography li {
  counter-increment: item;
}

ol#bibliography li::marker {
  content: "[" counter(item) "] ";
  /* font-weight: bold; */
}
