@import url('https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,
body {
	/* background-color: #fffafa; */
	background-color: #b3ce31;
}
/* grid container */
#wrapper {
	display: grid;
	height: 100vh;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 0.2fr 0.5fr 1.5fr 1.5fr 1.5fr 0.2fr;
	grid-template-areas:
		"nav nav nav nav"
		"header header header header"
		"aside main-images main-images main-images"
		"react react react react"
		"projects projects projects projects"
		"footer footer footer footer";
	grid-gap: 0.2em;
}
#navbar {
	grid-area: nav;
	padding: 0.5em;
	top: 0;
	position: fixed;
	z-index: 1;
	width: 100%;
	/* background-color: #fffafa; */
	background-color: #b3ce31;
	border-bottom: 1px solid #c3c3c3;
}
/* places nav links at the end */
#navbar ul {
	display: flex;
	justify-content: flex-end;
}
/*create space bewtween nav links */
#navbar li {
	list-style: none;
	padding-left: 0.8em;
}
#navbar a {
	text-decoration: none;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 25px;
	border: 1px solid #c3c3c3;
	color: #000;
	font-family: "Poppins", sans-serif;
	font-weight: 300;
	padding: 0.2em 1.5em;
}
header {
	grid-area: header;
	padding: 0.5em 0 0.5em 2em;
	margin-top: 3em;
}
h1 {
	font-size: 6em;
}
h2 {
	font-size: 3.5em;
}
h2, h3 {
	font-weight: 700;
}
#projects h2 {
	padding: 0.5em 0;
}
h3 {
	padding: 0.5em 0.2em;
}
h1,
h2,
h3 {
	font-family: "Genos", sans-serif;
	text-transform: uppercase;
}
aside {
	grid-area: aside;
	padding: 0.5em 0 0.5em 2em;
	display: flex;
	flex-direction: column;
	row-gap: 4em;
	margin-right: 1em;
}
aside p:first-child {
	margin-top: 6em;
}
p,
span {
	font-family: "Poppins", sans-serif;
	font-weight: 300;
}
.bold {
	font-weight: 500;
}
#main-images {
	grid-area: main-images;
	display: flex;
	justify-content: center;
	column-gap: 0.5em;
}
img {
	width: 100%;
}
#main-images img:last-child {
	padding-right: 1.5em;
}
section ~ section {
	margin: 1em 5em;
}
#react {
	grid-area: react;
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-rows: 1fr;
	grid-template-areas: 
		"img paragraph";
	column-gap: 4em;
	height: 100vh;
}
#react h2 {
	grid-area: paragraph;
	align-self: center;
	margin-bottom: 3em;
}
#react p {
	grid-area: paragraph;
	margin-top: 3em;
	align-self: center;
}
#react a {
	color: #8C217B;
	text-decoration: none;
}
#react img {
	grid-area: img;
	height: 100%;
}
#projects {
	grid-area: projects;
}
#cards {
	display: grid;
	grid-gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
h3 a {
	text-decoration: none;
}
.project-tile {
	place-items: center;
	padding: 1rem;
	border: 1px solid #4e4e52;
	border-radius: 8px;
	/* background-color: #fffafa; */
	background-color: #f0f1f2;
}
.tag {
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 15px;
	padding: 2% 5%;
	display: inline-block;
}
footer {
	grid-area: footer;
	padding: 0.5em;
	font-size: 12px;
	text-align: center;
}
/* changes highlighting color to berry purple */
::selection {
/* background: #d7fa88; */
	background: #ce31b4;
}
#navbar a:hover,
a:focus {
	border: 1px solid #444;
}
.hover_stretch {
	transition: all .5s ease-out;
}
.hover_stretch:hover, .hover_stretch:focus {
	color: #ce31b4;
	letter-spacing: 2px;
	text-shadow: 0 0 20px #ce31b4; 
	text-decoration: underline;
	}
/*animates the h2 to slide down at aproximately the same speed as the aside content*/
@keyframes slide-in-down {
	from {
		transform: translateY(-20%);
	}
	to {
		transform: translateY(0%);
	}
}
@keyframes slide-in-up {
	from {
		transform: translateY(20%);
	}
	to {
		transform: translateY(0%);
	}
}
/*animates the aside content to slide in from the right at aproximately the same speed as the h2*/
@keyframes slide-in-right {
	from {
		transform: translateX(-90%);
	}
	to {
		transform: translateX(0%);
	}
}
.slide-down {
	animation: slide-in-down 2s;
}
.slide-up {
	animation: slide-in-up 2s;
}
.slide-right {
	animation: slide-in-right 2s;
}
.animate {
	animation: slide-in-up 2s;
	animation-delay: 5s;
}
/* responsive sizing */
@media only screen and (max-width: 800px) {
	#wrapper {
		grid-template-columns: 1fr;
		grid-template-rows: 0.4fr 0.4fr 1.2fr 1.2fr 1.2fr 1.2fr 1fr;
		grid-template-areas:
			"nav"
			"header"
			"aside"
			"main-images"
			"react"
			"projects"
			"footer";
	}
	#main-images {
		flex-direction: column;
		row-gap: 0.5em;
	}
	#main-images img {
		width: 50%;
		align-self: center;
	}
	#main-images img:last-child {
		padding-right: 0;
	}
	aside p:first-child {
		margin-top: 0;
	}
	#react {
		grid-template-columns: 1fr;
		grid-template-rows: 1.5fr 0.4fr 0.4fr;
		grid-template-areas:
			"img"
			"heading"
			"paragraph";
		row-gap: 1ch;
	}
	#react h2 {
		grid-area: heading;
		margin: 0;
	}
	#react p {
		grid-area: paragraph;
		margin: 0;
	}
	#react img {
		grid-area: img;
		height: 100%;
		width: 50%;
		justify-self: center;
	}
}
/* stops animations for users with motion off */
@media (prefers-reduced-motion: reduce) {
	.animated {
		animation: none !important;
	}
}
