* {
	box-sizing: border-box;
}

html {
	color: #111;
	font-family: sans-serif;
	font-size: 1.2em;
	background: #dadad9;
}

body {
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

header {
	max-width: 1024px;
	width: 100%;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.title {
	display: flex;
	flex-direction: column;
	justify-content: end;
}

.title img {
	width: 100%;
	height: 150px;
	animation: TitleAnim 2s cubic-bezier(.46, .03, .52, .96) infinite;
}

@keyframes TitleAnim {
	0% {
		transform: skew(0, -0.4deg) scale(1.16) rotateY(-4deg);
	}

	50% {
		transform: skew(0, 0.0deg) scale(1.20) rotateY(0deg);
	}

	100% {
		transform: skew(0, -0.4deg) scale(1.16) rotateY(-4deg);
	}
}

@font-face {
	font-family: "Press Start 2P";
	src: url("PressStart2P-Regular.woff2") format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.for-hire {
	background: linear-gradient(0deg, #8a008a, #15a4a4, #640164, #8a008a);
	background-size: 100% 400%;
	background-clip: text;
	color: transparent;
	font-family: "Press Start 2P", sans-serif;
	font-size: 2.5em;
	animation: ForHireAnim 4s cubic-bezier(.45, .05, .55, .95) infinite;
	padding: 0 1rem;
}

@keyframes ForHireAnim {
	0% {
		background-position: 0 0;
	}

	100% {
		background-position: 0 400%;
	}

	from {
		transform: skew(-6deg, -0.25deg) scaleY(1.0);
	}

	25% {
		transform: skew(-6deg, 0.25deg) scaleY(1.1);
	}

	50% {
		transform: skew(6deg, 0.25deg) scaleY(1.1);
	}

	75% {
		transform: skew(6deg, -0.25deg) scaleY(1.05);
	}

	to {
		transform: skew(-6deg, -0.25deg) scaleY(1.0);
	}
}

nav {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 600px;
}

nav a {
	color: #fafafa;
	text-decoration: none;

	display: flex;
	align-items: center;
	text-align: center;

	background: linear-gradient(180deg, #242424 50%, #7bff20);
	background-position: 100% 0%;
	background-size: 100% 400%;
	padding: 0.5rem 1rem;
	border-radius: 0.2rem;

	transition: 0.2s all ease-in-out;
}

nav a::before {
	content: '>';

	position: absolute;
	visibility: hidden;
	opacity: 0;
	transform: translateX(0);

	transition: 0.2s all ease-in-out;
}

nav a:hover,
nav a:focus {
	background-position: 0% 80%;

	padding-top: 0.5rem;
	padding-right: 0.67rem;
	padding-bottom: 0.5rem;
	padding-left: 1.33rem;
}

nav a:hover::before,
nav a:focus::before {
	visibility: visible;
	opacity: 1.0;
	transform: translateX(-0.75rem);
}

main {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1024px;
	padding: 1rem 2rem;
}

.work {
	align-self: start;
	max-width: 800px;
	margin: 0.5rem 0;
	padding: 1rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.work .header {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	padding: 2rem;
	color: #fafafa;

	background-blend-mode: multiply;

	transition: 0.2s all ease-in-out;
}

.work .header:hover,
.work .header:focus {
	background-size: 150% !important;
}

.work.left .header:hover,
.work.left .header:focus {
	animation: LeftWorkAnim 2s ease-in-out infinite;
}

.work.right .header:hover,
.work.right .header:focus {
	animation: RightWorkAnim 2s ease-in-out infinite;
}

@keyframes LeftWorkAnim {
	0% {
		background-position-x: 100%;
	}

	50% {
		background-position-x: calc(100% + 0.5rem);
	}

	100% {
		background-position-x: 100%;
	}
}

@keyframes RightWorkAnim {
	0% {
		background-position-x: 0%;
	}

	50% {
		background-position-x: calc(0% - 0.5rem);
	}

	100% {
		background-position-x: 0%;
	}
}

.work .header h2 {
	margin: 0;
}

.work .header h4 {
	margin: 0;
	font-style: italic;
}

.work.webincode .header {
	background: linear-gradient(90deg, #202020fa 33%, #0000), url('wic.avif') right center no-repeat;
	/* zoom in a little since the transition from hover->nonhover can zoom out too much because of the background-position-x animation */
	background-size: 101%;
}

.work.cso2 {
	align-self: end;
}

.work.cso2 .header {
	background: linear-gradient(-90deg, #202020fa 33%, #0000), url('d2.avif') left center no-repeat;
	/* zoom in a little since the transition from hover->nonhover can zoom out too much because of the background-position-x animation */
	background-size: 101%;
	text-align: right;
}

.work.lz4u .header {
	background: linear-gradient(90deg, #202020fa 33%, #0000), url('lz4u.avif') right center no-repeat;
	/* zoom in a little since the transition from hover->nonhover can zoom out too much because of the background-position-x animation */
	background-size: 101%;
}

#contact .entry {
	display: flex;
	flex-direction: row;
	align-items: center;
}

#contact p,
#contact a {
	padding: 0.5rem;
	margin: 0;
	text-decoration: none;
}

footer {
	max-width: 1024px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: end;
	padding: 1rem;
}

footer small {
	padding: 0.1rem;
	text-align: right;
}

@media (width <=1024px) {
	html {
		font-size: 1.1em;
	}

	header,
	nav,
	main,
	footer,
	.work {
		max-width: 100%;
	}

	header {
		flex-direction: column;
		justify-content: center;
	}

	.for-hire {
		text-align: center;
		padding: 1rem;
	}

	nav {
		justify-content: center;
	}

	nav a {
		margin: 0 1rem;
	}

	main {
		padding: 0.25rem 0.5rem;
	}

	main h1 {
		text-align: center;
	}

	.work .header:hover,
	.work .header:focus {
		background-size: auto 125% !important;
	}

	.work.webincode .header,
	.work.cso2 .header,
	.work.lz4u .header {
		background-size: auto 100%;
	}
}