@font-face {
	font-family: 'Minecraft-Seven';
	src: url('fonts/Minecraft-Seven_v2.ttf') format('truetype');
	font-display: block;
}


html,
body,
main.content {
	height: 100%;
	width: 100%;
	margin: 0px;
	padding: 0px;
}

body {
	background: url('../images/background.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-color: #000;
}

main.content {
	font-family: 'Minecraft-Seven', "Helvetica", "Arial", sans-serif;
	-webkit-font-smoothing: none;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeSpeed;
	display: block;
	position: relative;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.75);
}

nav {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 200;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
	overflow: hidden;
	transition: all 0.3s ease;
}



nav .nav-links {
	display: flex;
	gap: 10px;
	padding: 10px 15px;
}

nav .nav-item {
	color: white;
	text-decoration: none;
	font-size: 16px;
	letter-spacing: 2px;
	transition: all 0.3s ease;
	position: relative;
	text-shadow: 2px 2px 0px #3F3F3F;
	padding: 5px 8px;
}

nav .nav-item:hover {
	color: #5EE55E;
	transform: translateY(-2px);
	text-shadow: 2px 2px 0px #0e220e;
}

nav .nav-item::after {
	content: '';
	position: absolute;
	width: 0%;
	height: 2px;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #5EE55E;
	transition: width 0.3s ease;
}

nav .nav-item:hover::after {
	width: 80%;
}

.page {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	width: 90%;
	height: 90vw;
	max-height: 800px;
	overflow-y: scroll;
	background-color: white;
	padding: 10px;
	font-family: "Helvetica", "Arial", sans-serif;
	font-size: 20px;
}

.page>h2 {
	font-family: "Helvetica", "Arial", sans-serif;
}

.page p,
.page ul {
	font-family: "Helvetica", "Arial", sans-serif;
	font-size: 14px;
}

.logo {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	width: 50%;
	height: 50vw;
	max-height: 400px;
	max-width: 400px;
}

.logo:before {
	content: '';
	position: relative;
	display: block;
	width: 400%;
	height: 400%;
	box-sizing: border-box;
	margin-left: -150%;
	margin-top: -150%;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .5);
	animation: pulse-ring 3.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
	border: 5px solid white;
}

.logo:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: url('../images/logo.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(0, 0, 0, .5);
	animation: pulse-dot 3.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -1.5s infinite;
}

@keyframes pulse-ring {
	0% {
		transform: scale(.25);
	}

	80%,
	100% {
		opacity: 0;
	}
}

@keyframes pulse-dot {
	0% {
		transform: scale(.9);
	}

	50% {
		transform: scale(1);
	}

	100% {
		transform: scale(.9);
	}
}

.play-with-us-container {
	position: absolute;
	bottom: 60px;
	left: 50%;
	width: max-content;
	max-width: 95%;
	transform: translateX(-50%);
	text-align: center;
	color: white;
	background: rgba(0, 0, 0, 0.6);
	padding: 15px 25px;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	white-space: normal;
	font-family: "Helvetica", "Arial", sans-serif;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
}

.play-with-us-header {
	margin: 0 0 10px 0;
	font-family: 'Minecraft-Seven', sans-serif;
	color: #5EE55E;
	font-size: 16px;
	text-shadow: 2px 2px 0px #0e220e;
	letter-spacing: 2px;
}

.play-with-us-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	align-items: center;
	font-size: 16px;
}

.play-with-us-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.play-with-us-code {
	background: rgba(255, 255, 255, 0.1);
	padding: 5px 10px;
	border-radius: 6px;
	font-family: monospace;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 16px;
	color: #FFD700;
	font-weight: bold;
	text-shadow: 1px 1px 0px #000;
}

footer {
	font-family: 'Minecraft-Seven', "Helvetica", "Arial", sans-serif;
	display: block;
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	text-align: center;
}

footer a {
	color: white;
	font-size: 12px;
	letter-spacing: 1px;
	text-shadow: 2px 2px 0px #3F3F3F;
}

footer>.spacer {
	color: white;
	padding: 0px 10px;
	font-size: 12px;
	text-shadow: 2px 2px 0px #3F3F3F;
}


@media only screen and (max-width: 800px) {
	nav {
		width: 95%;
		border-radius: 20px;
	}

	nav .nav-links {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
		padding: 10px;
		width: 100%;
		box-sizing: border-box;
		justify-items: center;
	}

	nav .nav-item {
		font-size: 14px;
		padding: 8px 4px;
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	nav .nav-item::after {
		display: none;
	}
}

@media only screen and (max-width: 768px) {
	.page {
		transform: translateX(-50%) translateY(-40%);
		height: 120vw;
	}

	/* Fix for AdSense Auto Ads blocking page on mobile */
	ins.adsbygoogle,
	.adsbygoogle,
	[id^="google_ads_iframe"] {
		z-index: 1 !important;
		pointer-events: auto !important;
		max-width: 100vw !important;
		max-height: 100vh !important;
		position: static !important;
		display: block !important;
	}

	.hide-mobile {
		display: none;
	}

	.footer-break {
		display: block;
		margin-top: 5px;
	}
}

/* Modal Overlay */
.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 250;
	justify-content: center;
	align-items: center;
	animation: modal-fade-in 0.25s ease;
}

.modal-overlay.active {
	display: flex;
}

@keyframes modal-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal-container {
	width: 90%;
	max-width: 1100px;
	height: 85vh;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
	from {
		transform: translateY(30px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
	color: white;
	font-family: 'Minecraft-Seven', sans-serif;
	font-size: 16px;
	letter-spacing: 2px;
	text-shadow: 2px 2px 0px #3F3F3F;
}

.modal-header-buttons {
	display: flex;
	gap: 4px;
}

.modal-btn {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 8px;
	transition: all 0.2s ease;
	line-height: 1;
}

.modal-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #5EE55E;
}

.modal-fullscreen {
	width: 100%;
	height: 100%;
	max-width: 100%;
	border-radius: 0;
	animation: none;
}

.modal-overlay:has(.modal-fullscreen) {
	z-index: 300;
}

.modal-iframe {
	flex: 1;
	width: 100%;
	border: none;
	background: #111;
}

.modal-youtube {
	flex: 1;
	display: flex;
	gap: 0;
	min-height: 0;
}

.yt-video {
	flex: 2;
	border: none;
	background: #000;
}

.yt-chat {
	flex: 1;
	border: none;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	background: #0f0f0f;
	min-width: 300px;
}

@media only screen and (max-width: 800px) {
	.modal-container {
		width: 96%;
		height: 80vh;
		border-radius: 14px;
	}

	.modal-title {
		font-size: 14px;
	}

	.modal-youtube {
		flex-direction: column;
	}

	.yt-video {
		flex: none;
		height: 35vh;
	}

	.yt-chat {
		flex: 1;
		min-width: 0;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}