body {
  font-family: 'Fira Code', monospace;
  background-color: #0d0d0d;
  color: #00ff88;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

.navbar-brand img {
  vertical-align: middle;
  margin-top: -1px; /* adjust as needed */
  filter: drop-shadow(0 0 5px #00ff88);
}

#space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: transparent;
  pointer-events: none;
  filter: brightness(1.3) blur(0.3px);
}

.hacker-nav {
  background-color: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid #00ff88;
}

.glow-text {
  color: #00ff88;
  text-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88;
}

/* Textarea styles */
.hacker-textarea {
  background-color: #090909;
  color: #00ff88;
  border: 1px solid #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  resize: horizontal;
  width: 100%;
  height: 300px;
  caret-color: #00ff88;
  outline: none; /* Remove default blue border */
}

.hacker-textarea:focus {
  background-color: #090909; /* Keep background gray on focus */
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 15px #00ff88;
}

.hacker-textarea::placeholder {
  color: #66ffcc;
  font-style: italic;
}

/* Result Panel (instead of card) */
.result-box {
  background-color: rgba(26, 26, 26, 0.95);
  border: 2px solid #00ff88;
  box-shadow: 0 0 20px #00ff88;
  padding: 30px;
  max-width: 650px;
  width: 100%;
  border-radius: 12px;
  text-align: center;
}

.result-input {
  background-color: #000;
  border: 1px solid #00ff88;
  color: #00ff88;
  font-family: 'Fira Code', monospace;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  outline: none;
  transition: box-shadow 0.3s ease-in-out;
  animation: greenFlamePulse 2s infinite ease-in-out;
}

.result-input:focus {
  box-shadow: 0 0 25px #00ff88, 0 0 40px #00ff88;
  border-color: #00ff88;
}

.result-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.small-text {
  color: #88ffaa;
  font-size: 0.9rem;
  margin-top: 5px;
  font-style: italic;
}

/* Flame-like pulsing glow animation */
@keyframes greenFlamePulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.3);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  }
}

/* Buttons */
.btn-glow {
  background-color: transparent;
  border: 2px solid #00ff88;
  color: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  transition: all 0.3s;
}

.btn-glow:hover {
  background-color: #00ff88;
  color: #000;
  box-shadow: 0 0 20px #00ff88;
}

.btn-outline-light:hover {
  color: #000;
  background-color: #00ff88;
  border-color: #00ff88;
}

.destroy-box {
  background-color: rgba(26, 26, 26, 0.95);
  border: 2px solid #00ff88;
  box-shadow: 0 0 15px #00ff88;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  text-align: center;
  animation: fadeInDestroy 0.6s ease-in-out;
}

.destroy-time {
  color: #66ffcc;
  font-family: 'Fira Code', monospace;
  font-size: 18px;
  margin-top: 10px;
  padding: 8px;
  background-color: #111;
  border: 1px solid #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
  border-radius: 5px;
}

@keyframes fadeInDestroy {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.note-box {
  background-color: rgba(26, 26, 26, 0.95);
  border: 2px solid #00ff88;
  box-shadow: 0 0 20px #00ff88;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  text-align: center;
  animation: fadeInNote 0.5s ease-in-out;
}

.note-box.full-width {
  max-width: none;
}

.note-textarea {
  color: #00ff88;
  font-family: 'Fira Code', monospace;
  background-color: #111;
  padding: 20px;
  border: 1px solid #00ff88;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
  min-height: 150px;
  text-align: left;
}

@keyframes fadeInNote {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.error-box {
  background-color: rgba(20, 20, 20, 0.95);
  border: 2px solid #00ff88;
  box-shadow: 0 0 25px #00ff88;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
  animation: fadeInError 0.5s ease-in-out;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glitch Headline for 404 */
.glitch-text {
  position: relative;
  color: #00ff88;
  font-size: 2.2rem;
  text-shadow: 0 0 3px #00ff88, 0 0 6px #00ff88;
  animation: glitch-flicker 1.5s infinite;
}

/* Glitch Body Text */
.glitch {
  position: relative;
  display: inline-block;
  animation: glitch-flicker 1.8s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  top: -2px;
  color: #ff0055;
  animation: glitchTop 2s infinite linear alternate-reverse;
}

.glitch::after {
  top: 2px;
  color: #00ffff;
  animation: glitchBottom 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes glitchTop {
  0% { clip: rect(0, 999px, 0, 0); }
  50% { clip: rect(0, 999px, 10px, 0); transform: translate(-2px, -2px); }
  100% { clip: rect(0, 999px, 0, 0); }
}

@keyframes glitchBottom {
  0% { clip: rect(0, 999px, 0, 0); }
  50% { clip: rect(5px, 999px, 999px, 0); transform: translate(2px, 2px); }
  100% { clip: rect(0, 999px, 0, 0); }
}



