@font-face {
    font-family: 'Linux Libertine'; /* normal */
    src: url('/assets/fonts/LinLibertine_R.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Linux Libertine'; /* italic */
    src: url('/assets/fonts/LinLibertine_RI.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Linux Libertine'; /* bold */
    src: url('/assets/fonts/LinLibertine_RB.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Linux Libertine'; /* bold */
    src: url('/assets/fonts/LinLibertine_RBI.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

/* General Body and Container Styles */
body {
  font-family: 'Linux Libertine';
  font-size: large;
  text-align: justify;
  hyphens: auto;
  margin: 20px 35px;
  line-height: 1.4;
}

.container {
  margin: 0 auto;
  max-width: 960px;
}

hr {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 0;
  border-top: 1px solid #eee;
}

a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Profile Section on Homepage */
.profile-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.profile-info {
  flex: 1;
  max-width: 480px;
}

.profile-photo {
  max-width: 160px;
}

/* Papers Section on Homepage */
.paper-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.paper-thumbnail {
  width: 280px;
  height: auto;
  align-self: flex-start;
  /* aspect-ratio: auto; */
}

.paper-info {
  flex: 1;
}

.paper-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.paper-title a {
  color: #333;
}
.paper-title a:hover {
  color: #007bff;
  text-decoration: underline;
}

.paper-venue {
  font-style: italic;
  color: #555;
}

.paper-links a {
  margin-right: 10px;
}


/* Paper Page Styles */
.paper-page-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin: 2rem;
}

.paper-page-authors {
  font-size: 1.1rem;
  text-align: center;
  margin: 1rem;
  /* line-height: 1.5; */
}

.paper-page-venue {
  text-align: center;
  font-style: italic;
  color: #555;
  margin: 1rem;
}

.paper-page-links {
  text-align: center;
  margin: 1rem;
}
.paper-page-links a {
  margin: 0 10px;
}

.paper-page-teaser {
  text-align: center;
  margin: 2rem 0;
}
.paper-page-teaser img {
  max-width: 100%;
  height: auto;
  /* border-radius: 5px; */
}

.paper-page-abstract, .paper-page-bibtex {
  margin: 2rem 0;
}

.paper-page-bibtex pre {
  background-color: #f8f9fa;
  padding: 1rem;
  /* border-radius: 5px; */
  overflow-x: auto;
}

.paper-page-bibtex code {
  color: #555;
  font-size: 0.9rem;
  font-family: 'Consolas';
  /* white-space: pre-wrap; */ /* new line on overflow */
}

/* Responsive Design */
@media (max-width: 768px) {
  .paper-container {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .profile-container {
    flex-direction: column;
  }
}