html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: url("images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  cursor: url("images/cursor.png") 0 0, auto;
}

.chatroom-page {
  overflow-x: hidden;
}

.tree-page {
  overflow-x: auto;
}

hr {
    border: none;
    height: 1px; /* Set the line thickness */
  background-color: darkblue; /* Set the color for modern browsers */
    box-shadow: 0 0 2px black;
    width: 100%;
    max-width: 100%;
    margin: 10px 0; /* Optional: add vertical spacing */
  }
  .center-container {
    text-align: center; 
}

.center-container img {
  max-width: 100%;
  height: auto;
}

a {
  text-align: center;
}

.links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px;
  box-sizing: border-box;
}

.links-row a {
  font-style: italic;
}

.link-divider {
  width: 1px;
  height: 16px;
  background-color: darkblue;
  margin: 0;
}

marquee {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  font-size: 1.25rem;
  color: darkblue;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.55),
    1px -1px 0 rgba(0, 0, 0, 0.55),
    -1px 1px 0 rgba(0, 0, 0, 0.55),
    1px 1px 0 rgba(0, 0, 0, 0.55);
}

h1,
p {
  text-align: center;
  color: darkblue;
}

h1 {
  text-shadow: none;
  -webkit-text-stroke: 5px black;
  paint-order: stroke fill;
}

p {
  max-width: 60ch;
  margin: 0 auto 12px;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-text-stroke: 0.5px black;
  paint-order: stroke fill;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

p a,
p a:visited {
  color: inherit;
  text-shadow: inherit;
  text-decoration: underline;
}

.index-rick-astley {
  margin-top: 22px;
  text-align: center;
}

.index-rick-astley img {
  display: inline-block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.gallery-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  max-width: 1200px;
  margin: 26px auto 40px;
  padding: 0 20px;
}

.gallery-card {
  width: 280px;
  border: 2px solid darkblue;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.gallery-image-frame {
  width: 100%;
  height: 200px;
  border: 2px solid darkblue;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.gallery-title {
  color: darkblue;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.gallery-title {
  margin: 12px 0 8px;
  font-size: 1.15rem;
}

.gallery-desc {
  margin: 0;
  max-width: none;
  font-size: 0.9rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.site-footer {
  margin-top: 16px;
  width: 100%;
  background-color: rgba(0, 0, 139, 0.77);
  border-top: 1px solid rgba(0, 0, 70, 0.9);
  padding: 6px 10px;
}

.site-footer .footer-note {
  margin: 0 auto;
  width: min(700px, 100%);
  padding: 0;
  font-style: italic;
  color: #eaf1ff;
  text-shadow: none;
  border: 0;
  background: transparent;
  text-align: center;
}

.site-footer .footer-note a,
.site-footer .footer-note a:visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.page-content {
  min-height: calc(100vh + 1px);
}

.about-hobbies-table,
.about-hobbies-table td {
  border: 2px solid darkblue;
}

.about-hobbies-table td {
  font-weight: 565;
}

@media (max-width: 700px) {
  .links-row {
    justify-content: center;
  }

  .link-divider {
    display: none;
  }
}
