/*
===========================
General - Auftrag 2
===========================
*/

:root {
	--bg-main: #0b0c15;
	--bg-card: #1b0e49;
	--primary: #6e46ff;
	--secondary: #00d2ff;
	--text-light: #e0e0e0;
}

body {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	background-color: var(--bg-main);
	color: var(--text-light);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
	padding: 40px 20px;
}

.aboutme-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 1.3em;
}

header {
	border-bottom: var(--primary) solid 1px;
}

/* 
=======
TASKBAR
=======
*/

nav ul {
	display: flex;
	list-style: none;
	gap: 30px;
	justify-content: center;
	padding: 20px;
	background-color: var(--bg-main);
	margin: 0;
}

nav ul a {
	position: relative;
	font-size: 1.5em;
	color: var(--text-light);
	transition: 0.3s ease;
}

nav ul a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--primary);
	transition: 0.3s ease-in-out;
}

nav ul a:hover {
	color: var(--primary);
}

nav ul a:hover::after {
	width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
}

/*
=======
FOOTER
=======
*/

footer {
	background-color: var(--bg-main);
	border-top: var(--primary) solid 1px;
}

.footer-wrapper {
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.footer-wrapper a {
	position: relative;
	color: var(--text-light);
	transition: 0.3s ease;
}

.footer-wrapper a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--primary);
	transition: 0.3s ease-in-out;
}

.footer-wrapper a:hover {
	color: var(--primary);
}

.footer-wrapper a:hover::after {
	width: 100%;
}

/*
======
Landing Page / HERO
======
*/

.hero-section {
	position: relative;
	width: 100%;
	max-height: 600px;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 30px;
	box-shadow: 0 4px 8px var(--bg-main);
}

.hero-section img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	display: block;
	opacity: 0.8;
	transition: 0.5s ease;
}

.hero-section img:hover {
	opacity: 1;
	transform: scale(1.02);
}

.hero-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	text-align: center;
	font-size: 3.5em;
	margin: 0;
	text-transform: uppercase;
	font-weight: 900;
	color: var(--text-light);
	transition: 0.3s ease;
}

.hero-title:hover {
	color: var(--primary);
}

.intro-text {
	text-align: center;
	font-size: 1.2em;
	color: var(--text-light);
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
	transition: 0.4s ease;
}

.intro-text:hover {
	color: var(--primary);
	font-size: 1.25em;
}

/* 
=========
Sammlung
=========
*/

.page-title {
	font-size: 1.5em;
	margin-bottom: 40px;
	text-align: center;
	transition: 0.3s ease;
}

.page-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background-color: var(--primary);
	margin: 10px auto 0;
	transition: 0.3s ease-in-out;
}

.page-title:hover {
	color: var(--primary);
}

.page-title:hover::after {
	background-color: var(--secondary);
	width: 80%;
}

.collection-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
	max-width: 1200px;
	margin: 0 auto;
}

.game-card {
	background-color: var(--bg-card);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 8px var(--bg-main);
	transition: 0.3s ease;
}

.game-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: 0.3s ease;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px var(--bg-card);
	cursor: pointer;
}

.game-card:hover img {
	transform: scale(1.05);
}

.game-info {
	padding: 10px;
}

.game-info h2 {
	margin: 0;
	margin-bottom: 5px;
	font-size: 1.4em;
}

.game-info p {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--text-light);
}

.meta-data {
	color: var(--text-light);
	font-size: 0.9em;
	margin-bottom: 15px;
}

.genre-tag {
	background-color: var(--secondary);
	color: var(--bg-main);
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: bold;
	margin-right: 10px;
}

/*
========
Slideshow?
========
*/

.slider-wrapper {
	overflow: hidden;
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px 30px;
	border-right: var(--primary) solid 2px;
	border-left: var(--primary) solid 2px;
}

.collection-track {
	border-top: var(--primary) dashed 2px;
	border-bottom: var(--primary) dashed 2px;
	display: flex;
	width: max-content;
	animation: scrollAnim 20s infinite linear;
}

.slide-group {
	display: flex;
	gap: 25px;
	padding-right: 25px;
}

@keyframes scrollAnim {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.slider-wrapper:hover .collection-track {
	animation-play-state: paused;
}

.slider-wrapper .game-card {
	width: 400px;
}
