@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=TeX+Gyre+Termes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=STIX&display=swap');

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f8f8ff;
    color: #2d2d2d;
}

h1 {
    color: #000000;
    text-align: center;
    font-family: 'TeX Gyre Termes', serif;
}

h2, h3 {
    color: #2b2b2b;
    font-family: 'TeX Gyre Termes', serif;
}

code {
    font-family: 'STIX', monospace;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

.paper-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #2b2b2b;
}

.authors {
    font-style: italic;
    color: #6e6e6e; 
}

.links a {
    color: #1c1c1c;
    text-decoration: none;
    margin-right: 10px;
    background-color: #bfbfbf;
    padding: 3px 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.links a:hover {
    background-color: #9e9e9e;
}

.arxiv-links a {
    color: #f8f8ff;
    text-decoration: none;
    margin-right: 10px;
    background-color: #b31b1b;
    padding: 3px 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.arxiv-links a:hover {
    background-color: #8a1515;
}


.egg_spacer {
    margin-top: 8888px;
  }

nav {
    margin-top: 20px;
    text-align: center;
}

nav a {
    color: #1c1c1c;
    text-decoration: none;
    margin: 0 10px;
    background-color: #bfbfbf; 
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #9e9e9e; 
}

figure figcaption {
    color: #2d2d2d;
}


.image-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-row img {
    width: 150px;
    height: auto;
}


.container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.text-section {
    max-width: 60%;
}

.portrait img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.hof-row {
    display: flex;
    justify-content: center;
    /* gap: 10px; */
    /* flex-wrap: wrap; */
}

.hof-row img {
    width: 300px;
    height: auto;
}






/* ===== Centering ===== */
.binder-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Binder ===== */
.binder {
  margin-top: 20px;
}

.book {
  position: relative;
  width: 1200px;     /* two pages */
  height: 800px;
  perspective: 2500px;
}

/* ===== Spine ===== */
.book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to right, #111, #444, #111);
  transform: translateX(-50%);
  z-index: 20;
}

/* ===== Spreads ===== */
.spread {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 0.9s ease;
  z-index: 0;
}

.spread.active {
  transform: rotateY(0deg);
  z-index: 10;
}

/* ===== Pages ===== */
.page {
  width: 50%;
  height: 100%;
  background: #2b2b2b;
  padding: 20px;
  box-sizing: border-box;
}

.page.left {
  border-radius: 12px 0 0 12px;
}

.page.right {
  border-radius: 0 12px 12px 0;
}

.page.empty {
  background: transparent;
  box-shadow: none;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.card-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: black;
  box-shadow:
    inset 0 0 8px rgba(255,255,255,0.15),
    0 4px 10px rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
}

.card-grid img:hover {
  transform: scale(1.05);
}

/* ===== Controls ===== */
.controls {
  margin-top: 20px;
}

.controls button {
  font-size: 16px;
  padding: 6px 12px;
  margin: 0 6px;
  cursor: pointer;
}

/* ===== Disabled Controls ===== */
.controls button.hidden {
  opacity: 0;
  pointer-events: none;
}
