/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #000000;
  line-height: 1.6;
  text-align: center; /* Only the header should be centered */
  padding: 2rem;
}

/* Header */
header {
  padding: 1.5rem 1rem;
  border-radius: 8px;
  margin: 0 auto 2rem auto;
  max-width: 800px;
}

/* header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

header h2 {
  font-size: 1.1rem;
  color: #dddddd;
} */

/* Main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 3rem; /* Top/Bottom: 2rem, Left/Right: 3rem */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.title {
  font-weight: bold;
}

section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Section titles */
/* section h1 {
  color: #000000;
  border-bottom: 2px solid #CBA135;
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
} */



.section-title {
  font-weight: bold;
  max-width: 1200px;  /* Increase this number as needed */
  font-size: 2rem;
  color: #ba0c2f;
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.25rem;
}


.authors {
  display: flex;
  gap: 1.5em; /* Adjust spacing here */
  justify-content: center;
  margin-top: 0.5em;
}

.affiliations {
  margin-top: 0.5em;
}

.venue {
  margin-top: 0.5em;
}

.tldr-block {
  border-left: 6px solid #ba0c2f; /* MERL red */
  background-color: #f9f9f9;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tldr-title {
  font-weight: bold;
  font-size: 32px;
  color: #ba0c2f;
  margin-bottom: 8px;
}

.tldr-content {
  font-weight: bold;
  text-align: left;
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
}

.tldr-content ol {
  margin: 0;
  padding-left: 20px;
}

.tldr-content li {
  margin-bottom: 8px;
}

/* Paragraphs */
p {
    text-align: left;
    margin-bottom: 1rem;
    padding-left: 5rem;
    padding-right: 5rem;
}

/* BibTeX Citation Block */
.bibtex-block {
    background-color: #eeeeee;
    border-left: 4px solid #CBA135;
    padding: 1rem;
    margin-top: 1rem;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
    font-size: 0.9rem;
    text-align: left;
}

.button-group {
    display: flex;
    gap: 1rem; /* space between buttons */
    justify-content: center; /* center horizontally */
    flex-wrap: wrap; /* wrap on smaller screens */
    margin-top: 0.5em;
    margin-bottom: 2rem; /* <-- add vertical space below buttons */
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* space between icon and text */
  background-color: #CBA135; /* Purdue Gold */
  color: #000000;
  padding: 0.6rem 1.3rem;
  font-size: 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  font-weight: 600;
  white-space: nowrap;
}

.btn:hover {
  background-color: #b38f2b;
  color: #ffffff;
}

/* Individual button icon colors (optional) */
/* .github-btn i {
  font-size: 1.2rem;
}

.arxiv-btn i {
  font-size: 1.2rem;
}

.hf-btn i {
  font-size: 1.2rem;
} */

/* Responsive tweaks */
@media (max-width: 500px) {
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

a {
    color: #CBA135;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #555;
    text-align: center;
}

.figure-block {
  margin: 2rem auto;
  text-align: center;
  display: flex;
  gap: 20px;            /* Space between the two figures */
  justify-content: center; /* Center horizontally */
  align-items: flex-start; /* Align captions properly */
  flex-wrap: wrap;      /* Optional: allows stacking on smaller screens */
}


.gif-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.gif-container img {
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* If only one image: allow it to expand */
.gif-container img:only-child {
  max-width: 90%;
}

/* If two images: restrict width so they sit side-by-side */
.gif-container img {
  max-width: 48%;
}

figure {
  /* display: block; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
  max-width: 100%;
  box-shadow: none;
}

figure img {
  max-width: 100%;
}

figcaption {
  text-align: left;
  margin-top: 0.75rem;
  font-style: italic;
  color: #555;
  font-size: 0.9rem;
  /* max-width: 80%; */
  padding-left: 5rem;
  padding-right: 5rem;
  margin-bottom: 1rem;
}

.paper-section {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}



.paper-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}
