/* --- Base Styling --- */
body {
  margin: 0;
  background: #f2eee6;
  font-family: "Courier New", Courier, monospace;
  color: #111;
}

.basic_center {
  display: flex;
  justify-content: center;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  background: #f2eee6;
  border-bottom: 2px solid black;
  position: sticky;
  top: 0;
}

.navbar a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.navbar a:hover {
  border-bottom: 2px solid black;
}

.nav-left {
  font-weight: bold;
  font-size: 1.2rem;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

/* --- Typewriter Animation --- */
.typewriter {
  display: inline-block;
  font-size: 2.5rem;
  border-right: 3px solid black;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(30, end), blink .75s step-end infinite;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: black; }
}

.subtitle {
  margin-top: 20px;
  font-size: 1rem;
  display: block;
}

/* --- Sections --- */
.section {
  max-width: 750px;
  margin: 60px auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  border-left: 5px solid black;
  padding-left: 10px;
}

.section p {
  margin-bottom: 20px;
}

/* --- Listing --- */
.listing {
  list-style-type: square;
  padding-left: 20px;
}

.listing li {
  margin: 8px 0;
}

.listing a {
  color: black;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

.listing a:hover {
  border-bottom: 1px solid black;
}

.hover-modal {
  position: absolute;
  background: white;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 260px;
  font-size: 14px;
  z-index: 999;
  transition: opacity .15s ease, transform .15s ease;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

.hover-modal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.stats-panel {
  margin: 20px;
  padding: 14px;
  background: #f3eee7;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
}

.stats-table {
  border-collapse: collapse;
  min-width: 240px;
}

.stats-table th,
.stats-table td {
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}

.stats-table th {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.stats-table td {
  border-bottom: 1px solid #eee;
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

.stats-table td:nth-child(2),
.stats-table td:nth-child(3) {
  text-align: right;
}

.collapsible {
  max-width: 500px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
}

.collapsible-header {
  width: 100%;
  background: #d0ccc4;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.collapsible.open .collapsible-content {
  max-height: 500px; /* large enough to fit content */
  padding: 16px;
}

.arrow {
  transition: transform 0.3s ease;
}

.collapsible.open .arrow {
  transform: rotate(90deg);
}

