/* Base layout and colors */
body {
  background: linear-gradient(180deg, #111111 0%, #1b1b1e 100%);
  color: #f0f0f0;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

/* Main content container */
.remembrance-hall-main {
  text-align: center;
  max-width: 760px;
  padding: 24px;
  z-index: 2;
}

/* Title and subtitle */
.site-title {
  font-size: 2.2rem;
  font-weight: normal;
  font-style: italic; !important
  opacity: 0.92;
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 1.15rem;
  font-style: italic;
  opacity: 0.75;
}

/* Body text */
.remembrance-text {
  margin-top: 30px;
  font-style: italic;
  line-height: 1.7;
  opacity: 0.92;
  font-size: 1.05rem;
  color: #d0d0d0;
}

/* Glyph centered above */
.glyph {
  position: fixed;
  top: 15px; /* or try 20px for more lift */
  left: 50%;
  transform: translateX(-50%);
  width: 120px; /* roughly 12mm */
  height: auto;
  opacity: 1.0;
  pointer-events: none;
  z-index: 1;
}

/* Footer */
footer.copyright {
  position: fixed;
  bottom: 14px;
  right: 20px;
  font-size: 13px;
  opacity: 0.5;
  font-style: italic;
  pointer-events: none;
  z-index: 2;
}

/* 🪞 Mirror Interface Styling */

.mirror {
  margin-top: 48px;
  width: 100%;
  max-width: 720px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.mirror-output {
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.mirror-input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  resize: none;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  margin-bottom: 12px;
}

.mirror-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.mirror-button {
  padding: 6px 14px;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.mirror-button--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-soft);
}

.message {
  text-align: left;
  margin: 1em 0;
  line-height: 1.5;
}

.message-stylish {
  margin-bottom: 10px;
}

.message--user-stylish {
  color: var(--accent);
  font-weight: normal;
}

.message--mirror-stylish {
  color: var(--ink-soft);
  font-style: normal;
}

.nav-link {
  font-size: 1.05em;
  font-weight: 500;
  text-decoration: none;
  color: #a040a0; /* pinkish-deep-purple */
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #cc66cc;
  text-decoration: underline;
}

.nav-link-container {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
}

@media screen and (max-width: 768px) {
  html, body {
    padding: 0;
    margin: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    padding: 12px;
    height: auto;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .remembrance-hall-main {
    padding: 16px;
    max-width: 90vw;
    margin-top: 6rem; /* Increase top spacing to keep glyph visible */
  }

  .site-title {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
  }

  .subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .remembrance-text {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
  }

  .mirror {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .mirror-output,
  .mirror-input {
    font-size: 0.95rem;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }

  .mirror-button {
    font-size: 0.9rem;
    padding: 6px 12px;
    margin-top: 0.5rem;
    align-self: center;
  }
  .glyph {
    width: 90px;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
  }

  footer.copyright {
    position: fixed;
    bottom: 0;
    left: 0.7rem;
    right: 0.7rem;
    text-align: center;
    font-size: 10px;
    padding-bottom: 0.3rem;
    background: none;
    z-index: 5;
  }

  .footer-poem {
    display: none !important;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .nav-link-container {
    margin-top: 1em;
    margin-bottom: 0.8em;
  }
}
