@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: #00ff00;
    font-family: 'Source Code Pro', monospace;
    font-size: 16px;
    text-shadow: 0px 0px 5px #00ff00;
    overflow: hidden;
    padding: 20px;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.3;
}

.terminal {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    white-space: pre-wrap;
    overflow-y: auto;
    height: 90vh;
    border-left: 2px solid #00ff00;
}

h1 {
    text-align: center;
    font-size: 20px;
    animation: flicker 1.5s infinite alternate;
}

#output {
    min-height: 400px;
    padding: 10px;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.prompt {
    margin-right: 5px;
}

#terminalInput {
    background: black;
    color: #00ff00;
    border: none;
    font-size: 16px;
    font-family: 'Source Code Pro', monospace;
    outline: none;
    caret-color: #00ff00;
    width: 100%;
}

@keyframes flicker {
    0%   { opacity: 1; }
    50%  { opacity: 0.8; }
    100% { opacity: 1; }
}

.scanlines {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,255,0,0.03) 50%);
    background-size: 100% 3px;
    z-index: 2;
    mix-blend-mode: overlay;
}

#matrixModal {
  display: block; /* <-- required! */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#matrixModal.show {
  opacity: 1;
  pointer-events: auto;
}


