@font-face {
	font-family: 'AnomineseV4';
	src: url('/img/AnomineseV4-Regular.woff') format('woff');
}

.anominese-font,
.anominese-font button,
.anominese-font .game-button,
.anominese-font .game-title,
.anominese-font .subtitle,
.anominese-font .feature-title,
.anominese-font p,
.anominese-font h1,
.anominese-font h2,
.anominese-font .home-button,
.anominese-font .suggest-button,
.anominese-font .modal-content,
.anominese-font input,
.anominese-font textarea,
.anominese-font label {
	font-family: 'AnomineseV4', 'Courier New', monospace !important;
}

:root {
	--primary-color: #0f0;
	--primary-dim: rgba(0, 255, 0, 0.7);
	--bg-color: #000;
	--card-bg: rgba(0, 50, 0, 0.3);
	--highlight: #32CD32;
	--text-color: #0f0;
	--border-color: #0f0;
	--button-hover: #00ff00;
	--button-pressed: #008000;
}

body {
	margin: 0;
	padding: 0 10px 40px 10px;
	font-family: 'Courier New', monospace;
	background-color: var(--bg-color);
	color: var(--text-color);
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}

.container {
	text-align: center;
	position: relative;
	z-index: 2;
	padding-top: 20px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	text-shadow: 0 0 10px var(--primary-dim);
	animation: glitch 1s infinite alternate;
	word-wrap: break-word;
	padding: 0 10px;
}

.subtitle {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

.static {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15),
		rgba(0, 0, 0, 0.15) 1px,
		transparent 1px,
		transparent 2px
	);
	opacity: 0.2;
	z-index: -1;
	pointer-events: none;
}

/* Games grid layout */
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 20px auto;
	max-width: 1200px;
	padding: 0 15px;
}

.game-card {
	background-color: var(--card-bg);
	border: 2px solid var(--border-color);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.3s ease;
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
	position: relative;
	overflow: hidden;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.game-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		45deg,
		rgba(0, 255, 0, 0.1) 0%,
		transparent 100%
	);
	z-index: -1;
}

.game-title {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--primary-color);
	text-shadow: 0 0 5px var(--primary-dim);
}

.game-image {
	width: 100%;
	height: 180px;
	object-fit: contain;
	border-radius: 5px;
	margin-bottom: 15px;
	border: 1px solid var(--border-color);
}

.game-button {
	background-color: var(--primary-color);
	color: #000;
	border: none;
	padding: 10px 20px;
	font-family: 'Courier New', monospace;
	font-size: 1.2rem;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 10px;
	transition: all 0.3s;
	animation: pulse 2s infinite;
	width: 80%;
	text-decoration: none;
	display: inline-block;
}

.game-button:hover {
	background-color: var(--button-hover);
	box-shadow: 0 0 15px var(--primary-dim);
	transform: scale(1.05);
}

.home-button {
	background-color: #4169E1;
	color: white;
	border: none;
	padding: 10px 20px;
	font-family: 'Courier New', monospace;
	font-size: 1.2rem;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	margin: 30px auto;
	transition: all 0.3s;
	display: inline-block;
	text-decoration: none;
}

.home-button:hover {
	background-color: #5f89ff;
	box-shadow: 0 0 15px #4169E1;
	transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
	.games-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
	
	h1 {
		font-size: 2rem;
	}
}

@media (max-width: 480px) {
	.games-grid {
		grid-template-columns: 1fr;
	}
	
	.game-card {
		max-width: 100%;
	}
	
	h1 {
		font-size: 1.8rem;
	}
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

@keyframes glitch {
	0% {
		transform: translate(2px, 0) skew(0deg);
	}
	20% {
		transform: translate(-2px, 0) skew(0deg);
	}
	40% {
		transform: translate(0, 0) skew(0deg);
	}
	60% {
		transform: translate(2px, 0) skew(0deg);
	}
	80% {
		transform: translate(-2px, 0) skew(0deg);
	}
	100% {
		transform: translate(0, 0) skew(0deg);
	}
}

/* Feature highlights */
.features {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.feature {
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	padding: 15px;
	width: 250px;
	text-align: center;
}

.feature-icon {
	font-size: 2rem;
	margin-bottom: 10px;
}

.feature-title {
	font-size: 1.2rem;
	margin-bottom: 5px;
	font-weight: bold;
}

.hidden-text {
	color: rgba(0, 255, 0, 0.1);
	position: absolute;
	font-size: 0.8rem;
	bottom: 10px;
	right: 10px;
}

/* Glitch animation for game cards */
.game-card:hover .game-title {
	animation: glitch 0.5s infinite alternate;
}

/* Game Suggestion Button */
.suggest-button {
	background-color: #32CD32;
	color: #000;
	border: 2px solid var(--border-color);
	padding: 10px 20px;
	font-family: 'Courier New', monospace;
	font-size: 1.2rem;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	margin: 10px 20px;
	transition: all 0.3s;
	animation: pulse 2s infinite;
}

.suggest-button:hover {
	background-color: var(--highlight);
	box-shadow: 0 0 15px var(--primary-dim);
	transform: scale(1.05);
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: #000;
	border: 2px solid var(--border-color);
	box-shadow: 0 0 20px var(--primary-dim);
	width: 80%;
	max-width: 500px;
	padding: 20px;
	position: relative;
	animation: glowPulse 2s infinite alternate;
}

*::-webkit-scrollbar {
	width: 14px;
	height: 14px;
}

*::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.8);
	border-left: 1px solid rgba(0, 255, 0, 0.2);
}

*::-webkit-scrollbar-thumb {
	background: rgba(0, 255, 0, 0.3);
	border-radius: 7px;
	border: 2px solid rgba(0, 0, 0, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 255, 0, 0.5);
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

*::-webkit-scrollbar-corner {
	background: rgba(0, 0, 0, 0.8);
}

/* Firefox scrollbar styling for all elements */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 255, 0, 0.3) rgba(0, 0, 0, 0.8);
}

@keyframes glowPulse {
	from { box-shadow: 0 0 10px var(--primary-dim); }
	to { box-shadow: 0 0 25px var(--primary-dim); }
}

.close-button {
	color: var(--primary-color);
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.close-button:hover {
	color: var(--highlight);
	transform: scale(1.2);
}

.modal h2 {
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 20px;
	text-shadow: 0 0 10px var(--primary-dim);
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	color: var(--primary-color);
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	background-color: #111;
	border: 1px solid var(--border-color);
	color: var(--primary-color);
	font-family: 'Courier New', monospace;
}

.form-group input:focus, .form-group textarea:focus {
	outline: none;
	border-color: var(--highlight);
	box-shadow: 0 0 10px var(--primary-dim);
}

.submit-button {
	background-color: var(--primary-color);
	color: #000;
	border: none;
	width: 100%;
	padding: 10px;
	font-family: 'Courier New', monospace;
	font-size: 1.1rem;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 10px;
	transition: all 0.3s;
}

.submit-button:hover {
	background-color: var(--highlight);
	box-shadow: 0 0 15px var(--primary-dim);
}

/* Modal message styles */
.modal-message {
	margin: 10px 0;
	padding: 10px;
	border-radius: 4px;
	text-align: center;
}

.modal-message.success {
	background-color: rgba(0, 100, 0, 0.3);
	color: #32CD32;
	border: 1px solid #32CD32;
}

.modal-message.error {
	background-color: rgba(100, 0, 0, 0.3);
	color: #ff5555;
	border: 1px solid #ff5555;
}