
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  font-family: monospace;
  overflow: hidden;
  color: #0f0;
}
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
#ascii-title {
  color: #0f0;
  font-size: 8px;
  white-space: pre;
  text-align: center;
  margin-bottom: 10px;
  animation: flicker 1.5s infinite alternate;
}
@keyframes flicker {
  0% { opacity: 1; text-shadow: 0 0 4px #0f0; }
  50% { opacity: 0.8; text-shadow: 0 0 2px #0f0; }
  100% { opacity: 1; text-shadow: 0 0 8px #0f0; }
}
input, button {
  font-size: 1.1em;
  padding: 10px;
  margin: 5px 0;
  width: 100%;
  border: 1px solid #0f0;
  background: #000;
  color: #0f0;
}
button {
  background: #0f0;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}
#messages {
  width: 100%;
  height: 40vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #0f0;
  padding: 10px;
  margin: 10px 0;
  font-size: 1.1em;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 10px;
}

#ascii-title {
  font-size: 10px;
  margin-bottom: 20px;
}

#landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
@media (min-width: 768px) {
  #landing input,
  #landing button {
    width: 80% !important;
    max-width: 640px;
  }
}

@media (max-width: 767px) {
  #ascii-title {
    font-size: 6.5px;
    overflow-x: auto;
    display: block;
    white-space: pre;
  }
}
