@import url("/resources/CSS/hljs-gruvbox-CSSVARS.css");
@import url("/resources/CSS/gruvbox-themes.css");
@import url("/resources/CSS/fonts.css");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-family: var(--font-sans);
	font-weight: 400;
	color: var(--gruv-fg1);
	letter-spacing: 0.8pt;
}

body {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100vh;
}

header {
	position: sticky;
	position: -webkit-sticky;
	top: 0px;
	width: 100%;
	z-index: 1;
}

a {
	text-decoration: none;
	color: inherit;
}

a sup {
	color: var(--gruv-aqua);
}

header div {
	display: grid;
	grid-template-columns: auto 1fr auto;
	width: 100%;
	font-size: 24pt;
	padding: .75rem 1rem;
	align-items: center;
	background-color: var(--gruv-bg3);
}

header div a {
	color: var(--gruv-fg1);
}

header p {
	font-size: 16pt;
	margin-left: .75em;
}

header p i {
	font-size: 15pt;
	margin-left: .5em;
}

nav {
	display: inline-flex;
	width: 100%;
	padding-left: .5em;
	justify-content: start;
	align-items: center;
	background-color: var(--gruv-bg1);
}

nav a {
	font-size: 14pt;
	margin: .5em;
}

main {
	position: relative;
	display: grid;
	grid-template-columns: 25% 1fr;
	width: 100%;
}

div.nav-bar {
	width: 100%;
	height: 100%;
	background-color: var(--gruv-bg4);
}

div.nav-bar ul {
	margin: 1em 0;
}

div.nav-bar ul li {
	list-style: none;
	margin: .5em 0;
}

div.nav-bar ul li:hover {
	background-color: var(--gruv-gray-l);
}

div.nav-bar ul li a {
	display: block;
	margin: 0;
	padding: .5em 1rem;
	text-decoration: none;
	color: inherit;
	font-size: 14pt;
	font-weight: 500;
}


main section {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 1em 5em;
	background-color: var(--gruv-bg2);
}

main section h1.heading {
	margin: 1em 0;
}

main section h1, h2, h3, h4, h5, h6 {
	margin-top: 1.5em;
	margin-bottom: .25em;
}

main section p {
	line-height: 1.5em;
	margin-block-start: 1.5em;
	margin-block-end: 1.5em;
}

main section a:hover {
	color: var(--gruv-orange);
	text-decoration: underline;
}

main section ol li, main section ul li { padding: .5em; }
main section ul { margin: 1em 1.5em; }
main section ul li p { margin-left: 1em; margin-top: .5em; }

main section div.about-header {
	position: relative;
	display: inline-flex;
	width: 100%;
	padding: 1em 0;
	justify-content: center;
	align-items: center;
	text-align: left;
}

footer {
	width: 100%;
	padding: 2em;
	padding-bottom: 0;
	font-size: 11pt;
	text-align: center;
}

div.footnote a {
	text-decoration: underline;
}

svg#logo > image {
	width: 100%;
	height: 100%;
}

hr {
	border: 1px solid var(--gruv-gray);
}

/* old stuff which I won't remove until I filter through it */

.profile-rounded {
	border-radius: 4px;
	box-shadow: 1px 1px 8px 2px var(--gruv-gray-alt-2);
}

/*.profile a {
	text-decoration: none;
	color: inherit;
}

.profile a h3, .profile a img {
	transition-duration: 500ms;
}

.profile a:hover h3 {
	color: var(--gruv-aqua-l); /* gruvbox - aqua_14 (dark mode)
	transform: scale(1.1);
	transition: all 500ms;
}

.profile a:hover img {
	box-shadow: 0px 0px 10px 3px var(--gruv-blue-l); /* gruvbox - blue_12 (dark mode)
	transform: scale(1.05);
	transition: all 800ms;
}

.left-rounded {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

.right-rounded {
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}*/

/* media queries */
@media only screen and (min-width: 601px) {
	main section ol {
		margin-left: 3em;
		margin-top: 1em;
	}

	a#hamburger-icon {
		display: none;
	}

	.about-header h1 {
		padding: 0;
		margin: 0;
		font-size: 24pt;
	}

	.about-header h2 {
		padding: 0;
		margin: 0;
		font-size: 14pt;
		color: var(--gruv-gray);
	}

	.about-header svg, .about-header div {
		margin: 0 1em;
	}


	div.footnote {
		padding-inline-start: 2em;
		padding-block-end: 2em;
	}

	div.footnote i {
		margin-inline: 2em;
	}

	.org-title {
		font-size: 32pt;
		margin-top: .5em;
	}

	.profile {
		position: relative;
		display: inline-flex;
		justify-content: center;
		align-items: center;
		padding: 1.5em 0;
	}

	.profile div {
		padding: 1em;
		background-color: var(--gruv-bg2);
	}

	.profile h3 {
		margin-top: 1em;
	}

	.github-avatar {
		width: 100px;
		height: 100px;
		margin: 0 2em;
		border-radius: 10px;
	}
}

@media only screen and (max-width:600px) {
	/*body, h1, h2, h3, h4, h5, h6, p {
		font-weight: 800 !important;
	}*/

	header p {
		font-size: 14pt;
		margin-left: .75em;
	}

	header p i {
		font-size: 13pt;
		margin-left: .5em;
	}

	a#hamburger-icon {
		display: block;
		cursor: pointer;
	}

	div.nav-bar {
		position: fixed;
		z-index: 2;
		opacity: 1;
	}

	div.sidebar-hidden {
		display: none !important;
		opacity: 0;
	}

	/* tell the main section to take up the entire grid */
	main section {
		grid-column: 1/3;
		padding: 1em 1em;
	}

	main section div.container {
		display: inline-flex;
		width: 100%;
		padding: .5em 0;
		justify-content: center;
	}

	main section div.container div {
		width: max-content;
	}

	/*main section ul {
		margin: 1em 0;
		list-style-position: inside;
		/*font-size: 11pt;
		font-weight: 500;
	}*/

	.about-header h1 {
		padding: 0;
		margin: 0;
		font-size: 22pt;
	}

	.about-header h2 {
		padding: 0;
		margin: 0;
		font-size: 12pt;
		color: var(--gruv-gray);
	}

	div.footnote {
		padding-inline-start: 1em;
		padding-block-end: 1em;
	}

	div.footnote i {
		margin-inline: 1em;
	}

	.profile, .github-avatar {
		display: none;
		overflow-x: hidden;
	}
}

/*
   some elements would benefit from styles
   before entering mobile size screens.
*/
@media only screen and (max-width: 800px) {
	main section div.about-header {
		position: relative;
		display: inline-block;
		width: 100%;
		justify-content: space-around;
		align-items: center;
		text-align: center;
	}
}

/* styles for printing layout only */
@media only print {
	body { display: block; color: black; }
	#dark-toggle { display: none; }
	header div { position: relative; top: 0; border-bottom: 2px solid grey; }
	header nav { display: none; }
	#sidebar { display: none; }
	hr { border: 1px solid grey; }
	section { display: block; grid-column: 1/3; padding: 0; font-size: 12px; }
}
