body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  background-color: #0a0a1a;
  color: #f2f2f2;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- HERO SECTION --- */

#hero {
  height: 110vh;
  background-image: url('bgimage.jpg');
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
  position: relative;
}

.hero-container {
  background-color: rgba(15, 15, 35, 0.85);
  padding: 60px 40px;
  border-radius: 24px;
  max-width: 900px;
  box-shadow: 0 0 30px #a97affaa;
}

.pixel-title {
  font-size: 64px;
  color: #f0e6ff;
  text-shadow: 0 0 20px #8b3eea;
  margin-bottom: 30px;
}

.pixel-title:hover {
  text-shadow: 5px 5px 30px #b382ff;
  cursor: default;
}

.hero-subtext {
  font-size: 13px;
  color: #aaaaff;
  margin-bottom: 30px;
}

.scroll-hint {
  font-size: 10px;
  color: #6666ff;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- MAIN SECTION --- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.side-by-side {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.input-box {
  flex: 1 1 400px;
  background-color: #1a1a2a;
  padding: 30px;
  border-radius: 20px;
  border: 2px solid #8b3eea;
  box-shadow: 0 0 24px #a379ff44;
  min-width: 300px;
  margin-right: 30px;
}

label {
  font-size: 15px;
  color: #d3bfff;
  display: block;
  margin-bottom: 14px;
}

textarea {
  width: 93%;
  height: 140px;
  background-color: #121220;
  color: #ffffff;
  border: 2px solid #5f33ff;
  border-radius: 10px;
  padding: 14px;
  font-size: 11px;
  font-family: 'Press Start 2P', monospace;
  box-shadow: 0 0 12px #5f33ff33 inset;
  resize: vertical;
  line-height: 20px;
}

.button-wrap {
  text-align: center;
}

button {
  margin-top: 20px;
  padding: 16px 28px;
  background-color: #8b3eea;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 14px #b58dff;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #a774ff;
  transform: scale(1.03);
}

#output {
  margin-top: 60px;
  background-color: #1c1c2e;
  padding: 30px;
  border-radius: 16px;
  border-left: 6px solid #c08aff;
  box-shadow: 0 0 24px #c08aff66;
  font-size: 12px;
}

footer {
  text-align: center;
  font-size: 10px;
  color: #8888ff;
  margin-top: 80px;
  padding-bottom: 30px;
}

/* --- SCROLL FADE --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

#mood-visual {
  margin-top: 30px;
  text-align: center;
  font-size: 42px;
  min-height: 100px;
  color: #fff0ff;
  text-shadow: 0 0 10px #a080ff;
}