body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Courier New', monospace;
  color: #00ff66;
}

/* Matrix canvas */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: -1;
}

.container {
  text-align: center;
  max-width: 650px;
  padding: 20px;
  z-index: 1;
  animation: flicker 2s infinite;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66;
}

input {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  border: none;
  border-radius: 8px;
  outline: none;
  margin-bottom: 15px;
  font-size: 1rem;
  background: #111;
  color: #00ff66;
}

.btn {
  padding: 10px 20px;
  background: #111;
  border: 1px solid #00ff66;
  color: #00ff66;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 5px #00ff66;
}

.btn:hover {
  background: #00ff66;
  color: black;
}

.output {
  margin-top: 20px;
  font-size: 1rem;
  min-height: 80px;
  text-align: left;
  white-space: pre-line;
}

.result {
  margin-top: 20px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffeb3b;
  display: none;
  text-shadow: 0 0 15px #ffeb3b, 0 0 30px #ffeb3b;
}
.log-line {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  margin-bottom: 4px;
  text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff;
  animation: glowFlicker 1.5s infinite alternate;
}

@keyframes glowFlicker {
  0% { opacity: 0.7; text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff; }
  50% { opacity: 1; text-shadow: 0 0 10px #ffffff, 0 0 25px #ffffff; }
  100% { opacity: 0.8; text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff; }
}


/* Flicker effect */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.4;
  }
}
