.card-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	padding: 1rem;
	max-width: 1200px;
	margin: 0 auto;
	margin-top: 4rem;
	justify-content: center;
}

#gun {
	background: linear-gradient(var(--obf-gradient)),
		url("../imgs/mw-logo-bg.png") center/cover;
}
#gun:hover {
	background: linear-gradient(
			145deg,
			rgba(187, 134, 252, 0.65) 9%,
			rgba(29, 29, 29, 0.4) 42%
		),
		url("../imgs/mw-logo-bg.png") center/cover;
}

#retro {
	background: linear-gradient(var(--obf-gradient)),
		url("../imgs/target.avif") center/cover;
}
#retro:hover {
	background: linear-gradient(
			145deg,
			rgba(187, 134, 252, 0.95) 9%,
			rgba(29, 29, 29, 0) 42%
		),
		url("../imgs/target.avif") center/cover;
}
#synth {
	background: linear-gradient(var(--obf-gradient)),
		url("../imgs/180nexus.jpg") center/cover;
}
#synth:hover {
	background: linear-gradient(
			145deg,
			rgba(187, 134, 252, 0.95) 9%,
			rgba(29, 29, 29, 0) 42%
		),
		url("../imgs/180nexus.jpg") center/cover;
}
#clash {
	background: linear-gradient(var(--obf-gradient)),
		url("../imgs/clashofclans.jpg") center/cover;
}
#clash:hover {
	background: linear-gradient(
			145deg,
			rgba(187, 134, 252, 0.95) 9%,
			rgba(29, 29, 29, 0) 42%
		),
		url("../imgs/clashofclans.jpg") center/cover;
}
#bg {
	background: linear-gradient(var(--obf-gradient)),
		url("../imgs/wall.jpg") center/cover;
}
#bg:hover {
	background: linear-gradient(
			145deg,
			rgba(187, 134, 252, 0.95) 9%,
			rgba(29, 29, 29, 0) 42%
		),
		url("../imgs/wall.jpg") center/cover;
}

.card {
	margin: 2rem 0rem;
	padding: 2rem 10%;
	padding-bottom: 5rem;
	background-color: var(--surface);
	position: relative;
	height: 300px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-shape {
	position: absolute;
	width: 80%;
	height: 350px;
	clip-path: url(#clip-l-shape);
	transition: 0.7s;
	overflow: hidden;
}

.card-content {
	top: 0.6em;
	right: 0.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
	position: relative;
	z-index: 2;
	height: 6em;
	color: white;
	width: calc(60% - 1rem);
	border-radius: 15px;
	background-color: var(--surface);
	box-shadow: 0 0 10px var(--primary);
	transform: scale(0.8);
	padding: 0;
	gap: 0;
	margin: 0;
}

.tags {
	list-style: none;
	display: flex;
	justify-content: start;
	gap: 1rem;
	width: 100%;
}

.tag {
	display: inline-block;
	text-align: center;
	text-wrap: nowrap;
	font-size: small;
	padding: 0.5rem;
	background-color: var(--primary);
	border-radius: 10px;
	color: var(--onPrimary);
	text-decoration: none;
	position: relative;
	top: 205px;
	right: 40px;
	transition: transform 0.4s ease;
}

.row1 {
	top: 205px;
}

.row2 {
	top: 215px;
}

.has2rows .row1 {
	top: 170px;
}

.has2rows .row2 {
	top: 165px;
}

.has2rows > .card-content {
	height: 4rem;
}

.has2rows > .card-shape {
	height: 250px;
}

.tag:hover {
	transform: translateY(0.5rem);
}

@media screen and (max-width: 700px) {
	.card-content {
		right: 0.75rem;
		width: 55%;
	}
}
@media screen and (max-width: 665px) {
	.card-content {
		right: 1.75rem;
		width: 60%;
	}
}
@media screen and (max-width: 580px) {
	.card-content {
		left: 1.75rem;
		width: calc(50% - 1rem);
	}
	.project-name {
		margin: 0;
		padding: 0 0;
		text-align: center;
		font-size: large;
		font-weight: bold;
		color: var(--onSurface);
	}
	.project-desc {
		display: none;
	}
	.card-container {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}
	.card-shape {
		margin: 0 10%;
	}
	.card {
		padding: 4rem 0;
		margin: 0 5% !important;
		width: 100%;
	}
	.has2rows .row1 {
		right: 0;
		left: 1rem;
	}

	.has2rows .row2 {
		left: 1rem;
	}
}

@media screen and (max-width: 450px) {
	.card-content {
		left: 1.5rem;
		width: calc(50% - 1.5rem);
	}
	.has2rows > .tags {
		padding: 0;
		justify-content: center;
		gap: 1rem;
		align-items: center;
	}
	.has2rows .row1 {
		width: 50%;
		margin: 0 0rem;
		width: min-content;
		left: 0rem;
	}

	.has2rows .row2 {
		width: 75%;
		left: 0rem;
		margin: 0 10%;
	}

	.has2rows {
		padding-bottom: 4rem;
	}
}

@media screen and (max-width: 400px) {
	.tags {
		flex-direction: column;
	}
	.card-content {
		left: 1.5rem;
		width: calc(50% - 1.5rem);
	}
	.has2rows {
		padding-bottom: 6rem;
	}
}

@media screen and (max-width: 350px) {
	.card-content {
		left: 1rem;
		width: calc(50% - 1rem);
	}
	.has2rows {
		padding-bottom: 6rem;
	}
}
