@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --bg: #000;
    --text: #00ff66;
    --accent: #00ffaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Matrix canvas background */
#matrix {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 0;
    opacity: 0.50; /* subtle */
}

/* Overlay for content */
#content {
    position: relative;
    z-index: 1;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    text-shadow: 0 0 5px var(--text);
    position: relative;
}

/* CRT scanline overlay */
body::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.05) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 2px
    );
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 a {
    color: var(--accent);
    text-decoration: none;
    font-size: 2.2rem;
    text-shadow: 0 0 10px var(--accent);
    animation: flicker 2s infinite;
}

h2 {
    font-size: 1rem;
    color: var(--text);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Quote box */
main {
    border: 2px solid var(--text);
    background: rgba(0, 0, 0, 0.5); /* 0.8 = 80% opak, 20% gjennomsiktig */
	padding: 1.5rem 2rem;
    max-width: 700px;
    width: 90%;
    text-align: left;
    position: relative;
    box-shadow: 0 0 10px var(--text);
    animation: fadeIn 1s ease-out;
}

main p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

main h3 {
    text-align: right;
    font-size: 1rem;
    color: var(--accent);
}

/* Command-like cursor */
.cursor::after {
    content: "_";
    animation: blink 1.2s infinite step-start;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

#counter {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 600px) {
    main {
        font-size: 0.95rem;
        padding: 1rem;
    }
    h1 a {
        font-size: 1.7rem;
    }
}