html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

.content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  padding: 20px;
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 3rem;
  margin: 0 0 15px;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.7);
}

p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Q&A box styling */
.qa-box {
  margin-top: 2rem;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  margin-left: auto;
  margin-right: auto;
}

.qa-box h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.qa-box textarea {
  width: 100%;
  resize: vertical;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: rgba(20, 20, 20, 0.9);
  color: #f0f0f0;
  font-family: inherit;
  margin-bottom: 0.5rem;
}

.qa-box button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.answer-box {
  margin-top: 0.75rem;
  min-height: 2rem;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  text-align: left;
}

/* Each Q/A pair */
.qa-entry {
  margin-bottom: 0.75rem;
}

.qa-q {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.qa-a {
  margin-left: 0.5rem;
}

.qa-error {
  color: #ff8080;
}

/* Mobile / tablet tweaks */
@media (max-width: 900px) {
  html, body {
    overflow: auto;          /* allow scrolling on smaller screens */
    height: auto;
  }

  .content {
    position: static;        /* stop absolute centering on mobile */
    top: auto;
    left: auto;
    transform: none;
    margin: 5vh auto;        /* ~5% vertical padding */
    width: 90%;              /* 5% side padding on each side */
    padding: 10px;           /* tighter internal padding */
  }

  h1 {
    font-size: 2.2rem;
  }

  p {
    font-size: 1rem;
  }

  .qa-box {
    max-width: 100%;         /* full width inside content */
    padding: 0.75rem;
  }

  .answer-box {
    max-height: 40vh;        /* don’t let it eat the whole screen */
  }
}
