:root {
		--font-sans:
				"Liberation Sans",	  /* High quality Libre font on X11/Wayland	   (unlikely to interfere) */
				"Noto Sans",			/* Modern FOSS font with notable coverage	   (unlikely to interfere) */
				-apple-system, BlinkMacSystemFont, /* Apple specific					  (won't interfere) */
				"Segoe UI",			 /* Windows (7-11, adaptive) system font */
				sans-serif;			 /* Platform default: Roboto or OEM font on Android & user preferences */
		--font-mono:
				"Liberation Mono",	  /* High quality Libre font on X11/Wayland	   (unlikely to interfere) */
				"Noto Sans Mono",	   /* Modern FOSS font with notable coverage	   (unlikely to interfere) */
				"SF Mono", "Monaco",	/* macOS specific */
				"Cascadia Mono", "Consolas",	/* Windows, better than legacy FOSS where available */
				monospace;			  /* Platform default: Roboto or OEM font on Android & user preferences */
}

body {
	font-family: var(--font-sans, sans-serif);
	margin: 0;
	padding: 4px 2px;
	background: #e9ecef;
	min-height: 90svh;
	animation: fadeIn 0.2s ease-in;
/* center horizontally AND vertically */
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.main-container {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
	max-width: 600px;
	width: 100%;
	overflow: hidden;
	transform: translateY(0);
	transition: transform 0.3s ease;
	border: 1px solid #e2e8f0;
}

.container-header {
	background: #1a2c3e;
	color: white;
	padding: 2lvh 2vw;
	text-align: center;
	border-bottom: 3px solid #2c5f8a;
}

.container-header h1 {
	margin-bottom: 10px;
	word-break: break-all;
	font-size: 2em;
	font-weight: 500;
	letter-spacing: -0.3px;
}

.container-header h1::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	background: rgba(255,255,255,0.6);
}

.container-header hgroup {
	font-size: 0.9em;
	opacity: 0.8;
	margin-top: 5px;
}

main {
	padding: 4svh 0;
}

.message {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 90%;
	margin: 0 auto 30px;
	padding: 0.75rem;
	text-align: center;
	border-radius: 12px;
	transition: all 0.3s ease;
	background: #f1f5f9;
	border-left: 3px solid #2c5f8a;
}

.message:hover {
	background: #f8fafc;
}

.message img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
}

.message p {
	line-height: 1.6;
	margin: 0;
}

.message a {
	color: #2c5f8a;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
	border-bottom: 1px solid transparent;
}

.message a:hover {
	color: #1a2c3e;
	border-bottom-color: #2c5f8a;
}

.redirect-message {
	display: block;
	margin: 1.25rem auto;
	width: 90%;
	padding: 0.5rem 0.75rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	color: #2d3748;
	text-align: center;
}


/* Enhanced timer styles - hidden without JS */
.redirect-message:not(.enhanced) .timeout-info { display: none; }
.redirect-message.enhanced .nojs { display: none; }

.js-countdown {
	font-size: 1.5em;
	font-weight: bold;
	color: #1a2c3e;
	display: inline-block;
	min-width: 1.5em;
}

.timeout-bar {
	width: 100%;
	height: 4px;
	background: #e2e8f0;
	border-radius: 2px;
	margin-top: 15px;
	overflow: hidden;
}

.timeout-progress-fill {
	width: 100%;
	height: 100%;
	background: #2c5f8a;
	transition: width 0.25s linear;
}

.targetlink-button {
	text-align: center;
	margin: 24px 0 8px 0;
}

.targetlink-button a {
	display: inline-block;
	padding: 10px 20px;
	background: transparent;
	color: #2c5f8a;
	text-decoration: none;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-weight: 500;
	font-size: 0.9em;
	transition: all 0.2s ease;
}

.targetlink-button a:hover {
	background: #f1f5f9;
	border-color: #2c5f8a;
}

/*
.manual-link {
	text-align: center;
	margin: 20px 0;
}

.manual-link a {
	display: inline-block;
	padding: 12px 24px;
	background: transparent;
	color: #2c5f8a;
	text-decoration: none;
	border: 1px solid #cbd5e0;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.manual-link a:hover {
	transform: translateY(-2px);
	background: #f1f5f9;
	border-color: #2c5f8a;
	box-shadow: 0 4px 12px rgba(44, 95, 138, 0.1);
}
*/

.tech-badge {
	font-family:  var(--font-mono, monospace);
	font-size: 0.7em;
	background: #e9ecef;
	padding: 2px 6px;
	border-radius: 3px;
	color: #495057;
}

footer {
	background: #fafbfc;
	padding: 20px 30px;
	text-align: center;
	border-top: 1px solid #e2e8f0;
}

footer hr {
	border: none;
	height: 1px;
	background: #e2e8f0;
	margin: 15px 0;
}

.footer-logos {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
}

.footer-logos img {
	padding: 10px;
	transition: transform 0.3s ease;
	opacity: 0.7;
}

.footer-logos img:hover {
	transform: scale(1.1);
	opacity: 1;
}

.footer-legal {
	font-size: 0.75em;
	color: #718096;
}

.footer-legal a {
	color: #2c5f8a;
	text-decoration: none;
}

.footer-legal a:hover {
	text-decoration: underline;
}

@media (min-width: 33rem) {
	main { padding: 4svh min(2vw, 2rem); }
	.container-header h1 {
		font-size: 2.5em;
	}
	.message { text-align: left; }
}


@media print {
	body {
		background: white;
		padding: 0;
	}
	
	.redirect-timer,
	.manual-link {
		display: none;
	}
}
