@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* Reset + base layout */
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #3AFF3A;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }

/* Noise & scanline overlays */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  background: url('assets/noise.png') repeat;
  opacity: 0.05;
  z-index: 10;
}
body::after {
  background: linear-gradient(rgba(0, 255, 0, 0.08) 1px, transparent 1px) repeat;
  background-size: 100% 2px;
  opacity: 0.15;
  z-index: 9;
}

/* Terminal box */
.terminal {
  position: relative;
  width: 90%;
  max-width: 800px;
  padding: 1rem;
  border: 2px solid #3AFF3A;
  background: rgba(0, 0, 0, 0.85);
  animation: border-glow 3s ease-in-out infinite;
  z-index: 20;
}
@keyframes border-glow {
  0%,100% { box-shadow: 0 0 20px rgba(58,255,58,0.2); }
  50%     { box-shadow: 0 0 40px rgba(58,255,58,0.4); }
}

/* Header & Footer */
.header, .footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
}
.header { border-bottom: 2px solid #3AFF3A; }
.footer {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 2px solid #3AFF3A;
}

/* Footer social buttons */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.socials a {
  border: 1px solid #3AFF3A;
  padding: 0.2rem 0.5rem;
  transition: background 0.2s;
}
.socials a:hover {
  background: rgba(58,255,58,0.1);
}

/* ASCII title block scaling */
.ascii-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 2rem; /* this is your side buffer at all times */
  box-sizing: border-box;
}

.ascii-logo-scaler {
  display: inline-block;
  transform-origin: center;
}

.ascii-logo {
  white-space: pre;
  font-size: 1rem;
  transform-origin: center;
  line-height: 1;
  opacity: 0.95;
  animation: flicker 2s infinite;
}



/* Body wrapper */
.body {
  padding: 1rem 0.5rem;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Flicker effect */
@keyframes flicker {
  0%,19%,21%,23%,25%,54%,56%,100% { opacity: 0.93; }
  20%,24%,55% { opacity: 0.3; }
}

/* Typewriter title with cursor */
.title {
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
}
.title::after {
  content: '_';
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,50% { opacity: 1; }
  51%,100% { opacity: 0; }
}

/* Footer credit */
.footer-credit {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(58, 255, 58, 0.4);
  white-space: nowrap;
}

/* Background crow ASCII */
.background-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  white-space: pre;
  text-align: center;
  opacity: 0.05;
  filter: blur(0.3px);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  font-family: 'JetBrains Mono', monospace;
}

/* Responsive footer stacking */
@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-credit {
    margin-left: 0;
  }
}

/* Status text */
.status {
  font-size: 0.85rem;
  margin-top: -4px;
}
