html { height: 100%; }

body {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' viewBox='0 0 76 76'%3E%3Cg fill='none' stroke='%23104' stroke-linecap='round' stroke-width='2.8'%3E%3Cpath d='M57 48c-12-3-23 13-6 23 17 9 25-7 18-15l3-4-8-2-6-7zM8 13C-2 24 7 41 26 35S43 9 27 7'/%3E%3Cpath d='M15 3c-3 5-5 5-10 8q6 0 7 7c7-6 8-5 16-6-2-5-2-3 1-8-7 1-8 1-14-1z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 150px;
	background-repeat: repeat;
	background-color: #003;
	color: #def;
	text-align: center;
	display: grid;
	min-height: 100%;
	grid-template-rows: auto 1fr auto;
	margin: 0;
}
body * {
	box-sizing: border-box;
}
h1 {
	font-size: 2em;
	margin: 0.75em;
}

main {
	width: 90%;
	margin-top: 20px;
	margin: 0 auto;
	font-size: 0.9rem;
}
hr {
	width: 100%;
}

#nav-banner {
	top: 20px;
	position: sticky;
	width: 80%;
	margin: 0 auto 50px auto;
}
.navbar {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	background-color: rgb(0 0 51 / 75%);
	border-radius: 100em;
	padding: 1.5vw 0px;
}

#social-bye {
	background-color: #003;
	padding: 1em 0;
}
#social-bye p {
	width: 90%;
	margin: 10px auto;
}
.icons {
	display: inline-flex;
	align-items: center;
}
.icons svg {
	margin: 0 10px;
	width: min(10vw, 60px);
	fill: #def;
}
.icons svg:hover {
	fill: #98d;
}

a {
	text-decoration: none;
	color: #98d;
}
a:hover {
	color: #bbe;
}

.thumb {
	width: clamp(100px, 30vw, 200px);
	object-fit: contain;
	border-radius: 12px;
	overflow: hidden;
}

.content {
	background-color: #106;
	border-radius: 20px;
	padding: 10px 0;
}

/* Homepage */
#projects {
	display: flex;
}
/* Desktop */
@media (min-width: 750px) {
	#projects {
		flex-direction: row;
		gap: 2vw;
	}
	.proj {
		flex: 1;
		min-height: 200px;
		height: max-content;
	}
	.proj .tag {
		justify-content: center;
	}
	#intro {
		align-items: end;
	}
}
/* Mobile */
@media (max-width: 750px) {
	#projects {
		flex-direction: column;
		gap: 1vh;
	}
	.proj {
		text-align: left;
		padding: 1vw 0;
	}
	.proj img {
		float: left;
		padding: 0 2vw;
	}
	#intro {
		align-items: baseline;
	}
}
#bio {
	margin-top: 10vh;
	line-height: 1.5;
	font-size: 125%;
}
#intro {
	display: flex;
	justify-content: center;
	font-size: 200%;
}
#intro img {
	width: clamp(100px, 25vw, 300px);
	margin-left: 0.5em;
}

/* Projects */
.petails {
	margin-bottom: 15px;
	font-size: 115%;
}
.petails summary {
	list-style: none;
	display: block;
}
.petails summary::-webkit-details-marker {
	display: none !important;
}

.project {
	display: flex;
}
.project .index {
	margin: auto 2vw;
	font-size: clamp(14px, 5vw, 32px);
}
.project img {
	margin: auto 2vw;
}
.project-summary {
	text-align: left;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1em;
}
.project-summary * {
	margin: 0;
	width: fit-content;
}
.toggle-more {
	width: 100%;
	text-align: center;
}
.pixel-art {
	image-rendering: pixelated;
}
.work-done {
	background-color: #050 !important;
}
.in-progress {
	background-color: #169 !important;
}
.tag {
	display: flex;
	align-items: center;
	column-gap: 0.25em;
	flex-wrap: wrap;
}
.tag span {
	border-radius: 100em;
	padding: 0.25em 0.75em;
	background-color: #42b;
	line-height: 2;
}
.name {
	font-size: 1.75em;
}
.sub {
	font-style: italic;
	color: #bbe;
}
.takeaway {
	margin: 0 auto;
	width: 95%;
	text-align: justify;
	text-indent: 0.5em;
	line-height: 1.5;
}

/* Blogs */
#entries {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
}
#entries a, #entry a {
	color: unset;
}
#blog_content {
	line-height: 1.75;
	text-align: left;
	width: 90%;
	margin: 0 auto;
}
#blog_content ul + ul {
	margin-top: -0.75em;
}
#blog_view {
	margin-bottom: 20px;
}

/* TODOS */
/*
	- rename "project-summary" since it works for projects and blogs
	- also rename "project" for the same reason
*/