:root {
--terminal-bg: #000000;
--terminal-green: #39ff14;
--terminal-white: #ffffff;
--terminal-red: #ff3333;
--terminal-muted: rgba(57, 255, 20, 0.45);
}

* {
  box-sizing: border-box;
  }

html,
body {
margin: 0;
min-height: 100%;
}

body {
background-color: var(--terminal-bg);
color: var(--terminal-green);
font-family: "Courier New", Courier, monospace;
font-size: 16px;
line-height: 1.4;
padding: 20px;
overflow-x: hidden;
text-shadow:
0 0 5px rgba(57, 255, 20, 0.45),
0 0 10px rgba(57, 255, 20, 0.25);
}

a {
color: var(--terminal-green);
text-decoration: underline;
}

a:hover,
a:focus-visible {
color: var(--terminal-white);
}

a:focus-visible,
input:focus-visible {
outline: 1px solid var(--terminal-green);
outline-offset: 4px;
}

.terminal-header {
position: relative;
z-index: 5;
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 20px;
}

.terminal-home,
.uptime-tag {
color: var(--terminal-muted);
font-size: 14px;
text-decoration: none;
}

.terminal-home:hover,
.terminal-home:focus-visible {
color: var(--terminal-green);
}

.terminal-shell {
position: relative;
z-index: 5;
}

#terminal-history {
white-space: pre-wrap;
margin-bottom: 10px;
}

.input-line {
display: flex;
align-items: center;
}

.prompt {
color: var(--terminal-green);
margin-right: 10px;
white-space: nowrap;
}

#terminal-input {
flex: 1;
min-width: 0;
background: transparent;
border: none;
color: var(--terminal-white);
font: inherit;
padding: 0;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.system-response {
color: var(--terminal-white);
margin: 5px 0 15px;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
}

.error-response {
color: var(--terminal-red);
margin: 5px 0 15px;
text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

.command-line {
margin: 0 0 4px;
}

.command-text {
color: var(--terminal-white);
text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#matrix-canvas {
position: fixed;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
opacity: 0.15;
display: none;
pointer-events: none;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

@media (max-width: 700px) {
body {
padding: 14px;
font-size: 14px;
}

.terminal-header {
    flex-direction: column;
    gap: 8px;
}

.input-line {
    align-items: flex-start;
}

.prompt {
    margin-right: 6px;
}

}

@media (prefers-reduced-motion: reduce) {
#matrix-canvas {
display: none !important;
}

}

[hidden] {
    display: none !important;
}

#terminal-input:focus,
#terminal-input:focus-visible {
    outline: none;
}
