@font-face {
	font-family: "ubuntu";
	src: url("/fonts/UbuntuRegular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "inkpot";
	src: url("/fonts/Inkpot.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "cocogoose";
	src: url("/fonts/Cocogoose.ttf");
	font-weight: normal;
	font-style: normal;
}

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: "ubuntu", sans-serif;
	background: #211527 no-repeat center center fixed;
	background-size: cover;
	color: #fff;
	font-size: 1rem;
	line-height: 1.5;
}

li {
	max-width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.navbar {
	width: 100%;
	background: rgba(0, 0, 0, 0.7);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 90%;
	margin: 0 auto;
	padding: 1rem 0;
	flex-wrap: nowrap;
}

.navbar nav {
	display: flex;
	gap: 1.5rem;
	flex-shrink: 1;
	flex-wrap: nowrap;
}

.navbar nav a {
	color: #fff;
	text-decoration: none;
	margin-left: 1.5rem;
	font-weight: bold;
	flex-shrink: 1;
	flex-wrap: nowrap;
}

.navbar nav a:hover {
	color: #ffcc00;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
	flex-shrink: 1;
	min-width: 0;
	flex-wrap: nowrap;
}

.nav-links a {
	white-space: nowrap;
	flex-shrink: 1;
	text-decoration: none;
	color: #fff;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	flex-shrink: 1;
	flex-wrap: nowrap;
	font-family: "cocogoose";
	transition: transform 0.3s ease;
}

.logolink {
	text-decoration: none;
	color: white;
}

.logo:hover {
	transform: scale(110%);
}

.inkheader {
	font-family: "inkpot", sans-serif;
	font-size: 3rem;
}

.main-body {
	display: flex;
	justify-content: center;
	padding: 6rem 2rem 2rem 2rem;
}

.main-body .content {
	background: rgba(0, 0, 0, 0.8);
	padding: 2rem;
	max-width: 90%;
	width: 100%;
	box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.5);
	text-align: center;
	font-size: 1rem;

	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
}

.generic-center {
	margin-left: auto;
	margin-right: auto;
}

footer {
	text-align: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.267);
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.5rem;
}

p {
	font-size: 1rem;
}

@media (max-width: 768px) {
	.nav-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.navbar nav {
		margin-top: 0.5rem;
		width: 100%;
	}

	.navbar nav a {
		margin: 0.25rem 0;
	}

	h1 {
		font-size: 1.5rem;
	}

	h2 {
		font-size: 1.25rem;
	}

	.main-body .content {
		padding: 1.5rem;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.25rem;
	}

	h2 {
		font-size: 1.1rem;
	}

	.main-body .content {
		padding: 1rem;
	}
}

.logoimg {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 20%;
	height:auto;
}

.mods-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin-top: 2rem;
	justify-items: center;
}

.mod-card {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border-radius: 1rem;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	aspect-ratio: 1 / 1;
	width: 15rem;
}

.mod-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mod-card:hover img {
	transform: scale(1.05);
}

.mod-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0);
	opacity: 0;
	transition: background 0.3s ease, opacity 0.3s ease;
}

.mod-card:hover .mod-overlay {
	background: rgba(0, 0, 0, 0.85);
	opacity: 1;
}

.mod-overlay h2 {
	margin: 0.5rem 0;
	font-size: 1.2rem;
}

.mod-overlay p {
	margin: 0.25rem 0;
	font-size: 0.9rem;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 4rem;
	margin-top: 2rem;
}

.game-card {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border-radius: 1rem;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	aspect-ratio: 1 / 1;
	margin-left:auto;
	margin-right:auto;
	width: 40%;
	height: 12rem;
}

.game-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.game-card:hover img {
	transform: scale(1.05);
}

.game-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0);
	opacity: 0;
	transition: background 0.3s ease, opacity 0.3s ease;
}

.game-card:hover .mod-overlay {
	background: rgba(0, 0, 0, 0.85);
	opacity: 1;
}

.game-overlay h2 {
	margin: 0.5rem 0;
	font-size: 1.2rem;
}

.game-overlay p {
	margin: 0.25rem 0;
	font-size: 0.9rem;
}

.screenshots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.screenshot-card {
	position: relative;
	display: block;
	overflow: visible;
	border-radius: 1rem;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	height: 0;
	padding-bottom: 100%;
	justify-content: center;
	z-index: 2;
}

.screenshot-card:hover {
	z-index: 10;
}

.screenshot-card img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	border-radius: 1rem;
}

.screenshot-card:hover img {
  	transform: scale(150%);
}

.link-button {
	display: block;
	background-color: #a88bb6;
	color: black;
	padding: 1rem;
	border-radius: 2rem;
	text-decoration: none;
	transition: background-color 0.3s ease;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1rem;
	max-width: 50%;
}

.link-button:hover {
	background-color: rgb(103, 66, 124);
}

.m212-p {
	margin-top: 1em;
	justify-content: center;
	display: flex;
	align-items: center;
}

.m212-button {
	margin-left: 0.5rem;
	width: 2rem;
}