/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
	--font-family: 'Poppins', sans-serif;
	--bg-color: #13141a;
	--box-bg-color: hsla(230, 15%, 25%, 0.5);
	--text-color: #fff;
	--heading-color: #ffc200;
	--button-bg: #ffc200;
	--button-text: #151515;
	--button-hover-bg: #eaeaea;
	--footer-text: #6c7592;
	--border-radius: 0.5rem;
	--transition-duration: 0.3s;
	--box-border-color: rgba(255, 255, 255, 0.1);
	--box-border-width: 1px;
	--discord-color: #5865f2;
	--discord-hover: #eaeaea;
}

/* Reset and Base Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	flex-direction: column;
	background-color: var(--bg-color);
	min-height: 100vh;
	color: var(--text-color);
	line-height: 1.6;
	font-family: var(--font-family);
}

/* Header Styles */
header {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
}

.logo {
	mix-blend-mode: overlay;
	max-height: 5rem;
}

/* Main Content Styles */
main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin: 0 auto;
	padding: 2rem;
	max-width: 1200px;
}

/* Box Container Styles */
.box-container {
	flex: 1 1 calc(50% - 1rem);
	min-width: 300px;
}

.box {
	transition: transform var(--transition-duration) ease, border-color var(--transition-duration) ease;
	border: var(--box-border-width) solid var(--box-border-color);
	border-radius: var(--border-radius);
	background-color: var(--box-bg-color);
	overflow: hidden;
}

.box:hover {
	/* transform: scale3d(1.05, 1.05, 1.05); */
	border-color: var(--heading-color);
}

.box-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Download page specific image styling */
.download-container .box-image {
	max-height: 200px;
	overflow: hidden;
}

.download-container .box-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center;
}

.box-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
}

/* Box Icon Styles */
.box-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--discord-color);
	padding: 2.5rem 0;
}

.discord-icon {
	width: 60px;
	height: 60px;
	fill: white;
}

/* Discord Box Styles */
.discord-box {
	display: flex;
	flex-direction: row;
	border-color: var(--discord-color);
}

.discord-box .box-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}

.discord-box .box-content {
	flex: 1;
	gap: 0;
	padding: 1rem;
}

.discord-box .box-button {
	display: flex;
	align-items: center;
	padding: 1rem;
}

.discord-box h2 {
	color: var(--discord-color);
	font-size: 1.2rem;
}

.discord-box p {
	font-size: 0.9rem;
}

.discord-icon {
	width: 40px;
	height: 40px;
	fill: white;
}

.button.discord-button {
	transition: all var(--transition-duration) ease;
	background-color: var(--discord-color);
	padding: 0.6rem 1.2rem;
	width: 100%;
	color: var(--text-color);
	font-size: 0.9rem;
}

.button.discord-button:hover {
	background-color: var(--discord-hover);
	color: var(--button-text);
}

/* Typography */
body,
h2,
p,
.button {
	font-family: var(--font-family);
	text-wrap: pretty;
}

h2 {
	color: var(--heading-color);
	font-size: 1.8rem;
}

p {
	font-size: 1rem;
}

.info-text {
	color: var(--footer-text);
	font-size: 0.9rem;
}

/* Button Styles */
.button {
	display: flex;
	justify-content: center;
	transition: background-color var(--transition-duration) ease;
	border-radius: var(--border-radius);
	background-color: var(--button-bg);
	padding: 0.8rem 1.5rem;
	width: 100%;
	color: var(--button-text);
	font-weight: bold;
	text-decoration: none;
}

.button:hover {
	background-color: var(--button-hover-bg);
}

.button.disabled {
	cursor: not-allowed;
	background-color: #808080;
	pointer-events: none;
}

/* Footer Styles */
footer {
	margin-top: auto;
	padding: 2rem;
	color: var(--footer-text);
	font-size: 0.9rem;
	text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
	main {
		flex-direction: column;
	}

	.box-container {
		flex: 1 1 100%;
	}

	.discord-box {
		flex-wrap: wrap;
	}

	.discord-box .box-icon {
		padding: 1.2rem;
		width: 100%;
		min-width: auto;
	}

	.discord-box .box-content {
		width: 100%;
		text-align: center;
	}

	.discord-box .box-button {
		padding-top: 0;
		width: 100%;
	}
}

@media (max-width: 425px) {
	main {
		padding: 1rem;
	}

	.box-container {
		min-width: 100%;
	}

	.box-content {
		padding: 1.5rem;
		text-align: center;
	}

	.button {
		align-self: center;
	}
}

@media (max-width: 360px) {
	body {
		align-items: center;
	}

	header,
	main,
	footer {
		width: 100%;
	}

	.box {
		margin: 0 auto;
	}
}

/* CANCELLED */
.box.cancelled {
	transform: none;
	opacity: 0.5;
	filter: grayscale(100%);
	pointer-events: none;
}
