/* Matrix Style */
body {
	margin: 0;
	padding: 20px;
	min-height: 100vh;
	width: 100vw;
	position: relative;
	background: #000000;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	line-height: 1.4;
	box-sizing: border-box;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow-x: hidden;
	background: #000000;
}

body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	background: #000000;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
	html {
		margin: 0;
		padding: 0;
		width: 100vw;
		height: 100vh;
		overflow-x: hidden;
		background: #000000;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}
	
	body {
		margin: 0;
		padding: 20px;
		padding-top: calc(20px + env(safe-area-inset-top));
		padding-bottom: calc(20px + env(safe-area-inset-bottom));
		padding-left: calc(20px + env(safe-area-inset-left));
		padding-right: calc(20px + env(safe-area-inset-right));
		width: 100vw;
		height: 100vh;
		overflow-x: hidden;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: #000000;
	}
	
	/* Force black background for Dynamic Island area */
	body::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: env(safe-area-inset-top);
		background: #000000;
		z-index: 9999;
	}
	
	/* Additional Dynamic Island specific fix */
	body::after {
		content: '';
		position: fixed;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 126px;
		height: 37px;
		background: #000000;
		border-radius: 0 0 20px 20px;
		z-index: 10000;
	}
}

.container {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	min-height: 100vh;
	padding: 0 15px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

h1 {
	font-size: clamp(1.8rem, 5vw, 2.5rem);
	margin: 60px 0 20px 0;
	color: #00ff41;
}

p {
	margin: 10px 0;
	color: #ffffff;
}

a {
	color: #00ff41;
	text-decoration: none;
	border-bottom: 1px solid #00ff41;
	transition: all 0.3s ease;
}

a:hover {
	background-color: #00ff41;
	color: #000000;
}

.links {
	margin: 20px 0;
}

.links a {
	display: inline-block;
	margin-right: 15px;
	margin-bottom: 10px;
	padding: 8px 15px;
	border: 1px solid #00ff41;
	background-color: rgba(0, 255, 65, 0.1);
	color: #00ff41;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.links a:hover {
	background-color: #00ff41;
	color: #000000;
}

.copyright {
	position: fixed;
	bottom: 20px;
	left: calc(50% - 400px + 15px);
	color: #888888;
	opacity: 0.8;
	font-size: 0.9rem;
	z-index: 1000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	html {
		margin: 0;
		padding: 0;
		width: 100vw;
		height: 100vh;
		overflow-x: hidden;
		background: #000000;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}
	
	h1 {
		margin: 40px 0 20px 0;
	}
	
	body {
		margin: 0;
		padding: 15px;
		padding-top: calc(15px + env(safe-area-inset-top));
		padding-bottom: calc(15px + env(safe-area-inset-bottom));
		padding-left: calc(15px + env(safe-area-inset-left));
		padding-right: calc(15px + env(safe-area-inset-right));
		width: 100vw;
		height: 100vh;
		overflow-x: hidden;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: #000000;
	}
	
	body {
		padding: 15px;
	}
	
	.container {
		padding: 0 10px;
	}
	
	.links a {
		margin-right: 10px;
		padding: 6px 12px;
		font-size: 0.9rem;
	}
	
	.copyright {
		bottom: calc(15px + env(safe-area-inset-bottom));
		left: 15px;
		transform: none;
		font-size: 0.8rem;
	}
}

@media (max-width: 480px) {
	body {
		padding: 10px;
	}
	
	h1 {
		margin: 30px 0 20px 0;
	}
	
	.container {
		padding: 0 5px;
	}
	
	.links {
		text-align: left;
	}
	
	.links a {
		margin: 5px;
		padding: 8px 12px;
	}
	
	.copyright {
		bottom: calc(10px + env(safe-area-inset-bottom));
		left: 10px;
		transform: none;
		font-size: 0.75rem;
	}
}
