/* Style Sheet for choose your own adventure site. */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
body {
    background-color: #333033;
    color: #00ff00;
    font-family: "VT323", monospace;
    text-shadow: 0 0 2px #00ff00;
	font-size: 1.4em;
}

h1 {
	margin: 20px;
	padding: 10px;
	border: 3px solid #00ff00;
	box-shadow: 5px 5px 5px #00ff00;
}

a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #00ff00;
}

a:hover {
    background-color: #00ff00;
    color: black;
    text-shadow: none;
}

.terminal {
    width: 800px;
	height: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 4px solid #00ff00;
    box-shadow: 0 0 10px #00ff00;
    position: relative;
    overflow: auto;
	background-color: black;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 -100px; }
}

@keyframes flicker {
    0% { filter: brightness(100%); }
    25% { filter: brightness(90%); }
    50% { filter: brightness(110%); }
    75% { filter: brightness(95%); }
    100% { filter: brightness(100%); }
}

.terminal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 0, 0.15) 50%, rgba(0, 255, 0, 0.05) 50%);
    background-size: 100% 4px;
    animation: scanlines 0.2s infinite linear, flicker 2s infinite ease-in-out;
    pointer-events: none;
	
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 16px;
    background-color: #00ff00;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

