:root {
  --text-color: rgb(26, 26, 26);
  --link-color: rgb(20, 20, 175);
  --background-secondary-color: rgb(245, 245, 245);
}

body {
  font-family: ui-sans-serif, -apple-system, system-ui, Helvetica, Arial, sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  color: var(--text-color);
  line-height: 1.5em;
  font-weight: 400;

  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  font-family: 'Google Sans', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  text-align: justify;
}

footer {
  margin-top: 2rem;
  text-align: center;
}

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

a:hover {
  text-decoration: underline;
}

p:not(:first-child) {
  margin-top: .5rem;
}

p {
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

h1.title {
  font-family: 'Google Sans', sans-serif;
  text-align: center;
  margin-bottom: .25em;
  margin-top: .25em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: .5em;
  margin-top: 1em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .5em;
  margin-top: 1em;
}

sup {
  font-size: 0.75rem;
}

.authors {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.25rem;
  display: flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin: 0.5rem;
  gap: 0.25em 0.75em;
}

.notes {
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin: 0.25rem;
  gap: 0.25em 0.75em;
}

.affiliations {
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin: 0.25rem;
  gap: 0.25em 0.75em;
}

.venue {
  font-size: 1.25rem;
  font-style: italic;
  margin: .5rem;
  text-align: center;
}

.links {
  font-size: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin: 1rem;
  gap: 0.5em 0.5em;
}

.links a {
  text-decoration: none;
  padding: 7px 20px;
  border: 1px solid var(--link-color);
  border-radius: 20px;
  transition: background-color 0.25s ease;
}

.links a:hover {
  background-color: var(--background-secondary-color);
}

figure {
  margin: 2rem auto;
}

figure img {
  max-width: 100%;
  height: auto;
}

figure figcaption {
  text-align: justify;
  margin: 0 2rem;
  font-style: italic;
}

.code-container {
  background-color: var(--background-secondary-color);
  margin: 1em 0;
}

pre {
  margin: 0;
  padding: 1em;
  line-height: 1.2;
  overflow-x: auto;
  background-color: var(--background-secondary-color) !important;
}

.clipboard-button {
  float: right;
  font-size: 1em;
  margin: 5px;
  padding: 5px;
  color: rgba(0, 0, 0, 0.4);
  background-color: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.clipboard-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

article.publication {
  margin: 1rem 0;
}
