body, html {
  margin: 0;
  padding: 10px;
  overflow: auto; /* allow scrolling */
  min-height: 100vh;
  background: white;
  font-family: Arial, sans-serif;
  color: black;
  scroll-behavior: smooth;
}

#placeholder {
  position: relative; /* changed from absolute */
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
  z-index: 1;
}

#placeholder img {
  width: auto;
  height: auto;
  max-width: 100%;
  opacity: 0.9; /* make image semi-transparent */
}

#placeholder a {
  color: #0000ff;
  text-decoration: none;
  margin: 0 10px;
}

#placeholder a:hover {
  text-decoration: underline;
}

#description p, ul {
  text-align: left;
}

canvas {
  display: block;
  position: fixed; /* fixed so stars stay while scrolling */
  top: 0;
  left: 0;
  z-index: 0;
}

#donate {
  vertical-align: middle;
}

#header {
  margin-bottom: 5px;
}

#slogan {
  margin-top: 0;
}

/* Table styling */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 800px;
  margin: 20px 0;
}

th, td {
  border: 1px solid #888;
  padding: 8px;
  text-align: left;
}

th {
  background: #eee;
}

/* Responsive: turn table into cards */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    display: none;
  }
  tr {
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px;
  }
  td {
    position: relative;
    padding-left: 39%;
    border: none;
    border-bottom: 1px solid #444;
  }
  td::before {
    position: absolute;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    content: attr(data-label);
  }
}

footer#footer {
  width: 100%;
  text-align: center;
  padding: 10px 0;

  /* soft fade into page */
  background: linear-gradient(to top, rgba(170,170,170,1), rgba(255,255,255,0.7));

  color: #000;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
  font-size: 14px;
}

.zoom-img {
    cursor: pointer;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.zoom-overlay img {
  max-width: 95%;
  max-height: 95%;
  transition: transform 0.3s ease;
}