@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

/* BEGIN PER-PROJECT STYLING */

.game-secret {background-image: url("stars.jpg");}
.game-secret a {background-color: #333333;}

/* END PER-PROJECT STYLING */


body {
	margin: 0px;
	background-color: black;
}

.wrapper {
	height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
	perspective: 10px;
	scroll-behavior: smooth;
}

.header-link-overlay {
	width: 100vw;
	height: 100vh;
	display: inherit;
	position: absolute;
}

header {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	transform-style: preserve-3d;
	z-index: -1;
}

section {
	font-size: 1.3rem;
	background-color: black;
	color: white;
	font-family: "Jua", sans-serif;
	display: grid;
	place-items: center;
}

#about {
	padding: 3rem 0 3rem 0;
}

.blurb {
	padding: 3rem;
	max-width: 730px;
	text-align: center;
	width: stretch;
}

#about a {
	color: #ff0051;
	text-decoration: none;
	transition: all 0.3s;
}
#about a:hover {
	color: #ff21c3;
	text-decoration: underline;
}

#games {
	padding-bottom: 4rem;
}

.project {
	border-radius: 10px;
	padding: 70px 50px 0px 50px;
	background-size: cover;
	background-attachment: fixed;
	background-position: center;
	margin-bottom: 3rem;
  	width: -webkit-fill-available; /* Safari & newer Firefox versions */
  	width: -moz-available;         /* Firefox */
  	width: stretch;                /* Chrome, Edge, and W3C standard */
	max-width: 800px;
}
@media screen and (max-width: 920px) {
	.project {
		border-radius: 0px;
	}
}

.slide-in {
	animation: appear ease-out;
	animation-timeline: view();
	animation-range: entry 0% cover 25%;
	overflow: hidden;
	padding-bottom: 40px;
}

@keyframes appear {
	from {
		transform: translateY(150px);
	}
	to {
		transform: translateY(0px);
	}
}

.project-title {
	font-size: 2.2rem;
}

.project-links {
	padding-top: 0.75em;
	font-size: 1.1rem;
	line-height: 3em;
}

.project-links a {
	border-radius: 10px;
	padding: 12px;
	margin-right: 10px;
	text-decoration: none;
	color: white;
	transition: all 0.3s;
}
.project-links a:hover {
	padding-bottom: 4em;
	text-decoration: underline;
}

.background {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translateZ(-20px) scale(3.1);
}

.foreground {
	width: 85%;
	height: 60%;
	max-width: 30rem;
	object-fit: contain;
	transform: translateZ(-5px) scale(1.5);
	animation: wobble 3s ease-in-out infinite alternate;
}

.background,
.foreground {
	position: absolute;
	z-index: -1;
}

@keyframes wobble {
	from {
		transform: translateY(-7px)
	}
	to {
		transform: translateY(7px)
	}
}

#contact {
	padding-top: 3rem;
	background-color: #111;
	background-image: url("bottom-bg.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

#contact img {
	align-self: center;
	width: 256px;
	height: 256px;
	margin-top: 5rem;
	padding-bottom: 2rem;
	object-fit: none;
	animation: wobble 3s ease-in-out infinite alternate;
}

#contact .blurb {
	text-align: center;
}

.socials-title {
	font-size: 2rem;
	text-align: center;
	padding-bottom: 0.5rem;
}

.socials-links {
	font-size: 1.3rem;
	line-height: 3em;
	display: inline;
}

.socials-links a {
	background-color: #333;
	border-radius: 10px;
	padding: 12px;
	margin-right: 10px;
	text-decoration: none;
	color: white;
	transition: all 0.15s;
}
.socials-links a:hover {
	padding-bottom: 2em;
	text-decoration: underline;
}

footer {
	padding-top: 1rem;
	padding-bottom: 3rem;
	font-size: 1rem;
	color: #333;
	font-family: "Jua", sans-serif;
	display: grid;
	place-items: center;
	text-align: center;
}

@media (hover: none) and (pointer: coarse) {
	#contact {
		background-attachment: scroll;
	}
	.project {
		background-attachment: scroll:
	}
}