@font-face {
	font-family: 'VT323';
	src: url('Fonts/VT323/VT323Regular/VT323Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--terminal-bg: rgba(255, 255, 255, 0.01);
	--terminal-border: #222;
	--accent-gold: #ffb700;
	--accent-orange: #ff5400;
	--accent-red: #cc0000;
	--text-main: #f5f2eb;
	--text-dim: #777;
}

body {
	margin: 0;
	background: #111;
	color: #fff;
	font-family: 'VT323';
	font-size: 1.2rem;
	overflow-x: hidden;
	align-items: center;
}

/* LINES */
.line, .content {
	position: relative;
	z-index: 12;
	text-shadow: 0 0 3px rgba(245, 242, 235, 0.4);
	opacity: 0; 
	animation: showLine 0.15s forwards; 
	animation-delay: var(--delay, 0.2s);
}

.line[style*="--delay"] {
	animation-delay: var(--delay);
}

@keyframes showLine { to { opacity: 1; } }

.title {
	text-align: right;
	align-self: center;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.title pre {
	font-size: 9px;
	line-height: 1.1;
	line-height: 1.25;
	margin: 0;;
	padding: 0;
	opacity: 0;
	animation: showLine 0.15s forwards;
	animation-delay: var(--delay, 0.2s);
}

@media (max-width: 768px) {
	.title {
		display: none;
	}
}

.page-title {
	font-size: 1.6rem;
	color: var(--accent-gold);
	letter-spacing: 2px;
	margin-bottom: 5px;
	align-self: flex-start;
	width: 100%;
	max-width: 900px;
	text-align: left;
}

.posspaq-stripe {
	height: 6px;
	width: 100%;
	max-width: 600px;
	margin: 8px auto;
	background: linear-gradient(
	90deg,
	var(--accent-gold) 0%,
	var(--accent-orange) 50%,
	var(--accent-red) 100%
	);
	box-shadow: 0 0 5px rgba(255, 120, 0, 0.4);
	opacity: 0;
	animation: showLine 0.15s forwards;
	animation-delay: var(--delay, 0.2s);
}



/* BUTTON STUFF */
.button-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	width: 100%;
	max-width: 500px;
}

@media (max-width: 600px) {
	.button-grid {
		grid-template-columns: 1fr;
		width: 100%;
		padding: 0 20px;
		box-sizing: border-box;
	}
}

.about-btn, .contacts-btn, .donations-btn, .services-btn, .blog-btn, .gallery-btn {
	display: inline-block;
	text-decoration: none;
	padding: 10px 20px;
	background: var(--terminal-bg);
	box-sizing: border-box;
	color: var(--text-main);
	border: 1px solid var(--terminal-border);
	font-family: 'VT323';
	font-size: 1.2rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	opacity: 0;
	animation: showLine 0.15s forwards;
	animation-delay: var(--delay, 0.2s);
}

.about-btn:hover, .contacts-btn:hover, .donations-btn:hover, .services-btn:hover, .blog-btn:hover, .gallery-btn:hover {
	background: var(--text-main);
	color: #000;
	border-color: var(--text-main);
}

.content {
	position: relative;
	min-height: 100vh;
	width: 100%;
	margin: 0 auto;
	background: #030303;
	color: var(--text-main);
	font-family: 'VT323';
	font-size: 1.2rem;
	padding: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	overflow-y: visible;
	animation: crt-flicker 0.15s infinite, crt-jitter 0.08s infinite;
}

.content::before {
	content: " ";
	display: block;
	position: absolute; 
	inset: 0;
	background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(245, 242, 235, 0.02), rgba(0, 0, 255, 0.04));
	background-size: 100% 3px, 3px 100%;
	pointer-events: none;
	z-index: 10;
}

.content::after {
	content: " ";
	display: block;
	position: absolute; 
	inset: 0;
	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(245, 242, 235, 0.06) 50%, rgba(255,255,255,0));
	background-size: 100% 8px;
	pointer-events: none;
	z-index: 11;
	animation: scanline-roll 8s linear infinite;
}


/* CRT EMULATION ANIMATIONS */
@keyframes crt-flicker {
	0% { opacity: 0.98; }
	50% { opacity: 1; }
	52% { opacity: 0.94; }
	54% { opacity: 1; }
	80% { opacity: 0.97; }
	100% { opacity: 0.98; }
}

@keyframes crt-jitter {
	0% { transform: translate(0, 0); }
	50% { transform: translate(0.3px, -0.3px); }
	100% { transform: translate(0, 0); }
}

@keyframes scanline-roll {
	0% { background-position: 0 0; }
	100% { background-position: 0 100vh; }
}

.cursor {
	display: inline-block;
	width: 1ch;
	height: 1.2em;
	background: currentColor;
	vertical-align: -0.2em;
	animation: cursor-blink 1s steps(2, start) infinite;
}

@keyframes cursor-blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

/*USING CURSOR: <span class="cursor"></span> */

.image-frame {
	width: 100%;
	height: 300px;
	border: 1px solid #444;
	background: #000;
	overflow: hidden;
}

.image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(30%) contrast(110%);
	opacity: 0; 
	animation: showLine 0.15s forwards; 
	animation-delay: var(--delay, 0.2s);
}

.image-frame video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0; 
	animation: showLine 0.15s forwards; 
	animation-delay: var(--delay, 0.2s);
}