/* */
/* reset browser styling */
/* */

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
	padding: 0;
	margin: 0;
}
html,
body {
	max-width: 100%;
	overflow-x: hidden;
	font-family: Andale Mono, monospace;
    font-style: normal;
    font-weight: 400;
	font-size: 12px;
	color: black;
    line-height: 1.5;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
fieldset,
img {
	border: 0;
}

/* */
/* header styling */
/* */
/* remove or comment out the below to disable fixed menu. Also the padding-top sizes in the .grid stylings */
header {
	/*position: fixed;
    background-color: white;
    z-index: 1; */
}
.header-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	padding: 3em 2em 2em 2em;
	width: 100%-2em;
}
nav a {
	color: black;
	text-decoration: none;
	margin-left: 2em;
}
nav a:first-of-type {
	margin-left: 0;
}

/* */
/* common styling */
/* */
.body-container {
	padding: 0em 2em 0em 2em;
	max-width: 1280px;
}
.info-container {
	max-width: 700px;
}
.info-container {
	display: flex;
}
.info-container div {
	padding: 0em 2em 2em 2em;
	flex: 1;
}
.info-container p {
	font-style: normal;
}
.info-container span {
	font-style: normal;
}
.sub {
	margin-top: 2.5em;
}
.active {
	text-decoration: underline !important;
}
a:link {
	color: black;
	text-decoration: none;
}
a:visited {
	color: black;
	text-decoration: none;
}
p {
	font-style: normal;
	text-decoration: none;
	margin: 0.2em 0px 1em 0em;
}
footer {
	color: black;
	font-family: "Lucida Console", Courier, monospace;
	font-style: normal;
	text-decoration: none;
	font-size: 10px;
	padding: 2em 0px 2em 2em;
}
span {
	color: black;
	text-decoration: none;
	margin: 0.2em 2px 4em 0;
}
span a {
	color: black;
	text-decoration: none;
	margin: 0.2em 2px 4em 0;
}
/* */
/* breadcrumbs */
/* */

.breadcrumbs {
	padding: 3em 2em 2.5em 2em;
}
.breadcrumbs a {
	text-decoration: none;
	color: black;
}
.breadcrumbs span {
	text-decoration: underline;
}

/* home page (Works) grid styling */
/* need to add space at the top for fixed menu */
/* .grid {
    padding-top: 107px;
}
/* main grid items - this can be modified to change the grid appearance in a couple different ways */
.grid-sizer,
.grid-item {
	width: 33.33%;
	border-radius: 5px;
	padding: 0 2em;
	margin: 0 0 4em;
	/* you probably don't want to change the following ones */
	float: left;
	box-sizing: border-box;
}

/* images fill the grid box they have been given, probably don't change */
.grid-item img {
	width: 100%;
	height: auto;
}

/* remove link underlines */
.grid-item a {
	text-decoration: none;
}

/* makes image slightly transparent on mouse hover */
.grid-item:hover img {
	opacity: 0.9;
}

/* clearfix - coding hack best not to touch*/
.grid:after {
	content: "";
	display: block;
	clear: both;
}

/* */
/* Book Styling */
/* */
.book-container {
	margin: 0 2em 0 2em;
	display: flex;
	flex-direction: column;
	max-width: 1350px;
}
.book-container img {
	width: 100%;
	margin-bottom: 0em;
	/* the below constrains the image height to match the width of landscape images - minus the margins */
	max-height: calc(100vw - 4em);
	/* the below fits the image within its containing area without distorting by stretching */
	object-fit: contain;
	object-position: left;
}

/* */
/* Books OverView Grid */
/* */
.even-grid {
	width: 100vw;
	display: grid;
	padding: 0 100px;
	margin-bottom: 100px;
	box-sizing: border-box;
	grid-template-columns: repeat(4, 1fr);
	gap: 70px;
	grid-auto-rows: auto;
	text-align: center;
}
.even-grid-item {
	/* background-color: aliceblue; */
	min-height: 50px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

.even-grid-item a img {
	width: 100%;
}

/* */
/* NGORO */
/* */
#ngoro {
	width: 50vw;
	height: 50vh;
	position: absolute;
	z-index: 5;
	bottom: 0;
	left: -100%;
	display: flex;
	justify-items: flex-end;
	align-items: flex-end;
	transition: all 1s;
}
.ngoro-link:hover + #ngoro {
	left: 0;
}

#ngoro-flash {
	position: absolute;
	top: 90px;
	left: 0;
	height: 100vh;
	width: 100vw;
	z-index: 10;
	display: none;
}
#ngoro-flash img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ngoro-link:active + #ngoro-flash {
	display: block;
}

/* */
/* Books OverView Grid */
/* */
.book-grid {
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 0 2em;
	margin-bottom: 0em;
	box-sizing: border-box;
}
.book-grid-item {
	margin-bottom: 4em;
}
.half {
	width: 50%;
}
.book-grid-item img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* RESPONSIVE STYLING */
/* */

/* upto 992 for Laptops test#1 1366px, test#2 1366px*/
@media only screen and (max-width: 1366px) {
	.grid-sizer,
	.grid-item {
		width: 50%;
	}
	.header-container {
		flex-direction: row;
		align-items: flex-start;
	}
	nav {
		margin-top: 3px;
	}
	.even-grid {
		grid-template-columns: repeat(3, 1fr);
		padding: 0 80px;
		gap: 70px;
	}
}
/* upto 768 for Tablets test#1 1024px, test#2 972px */
@media only screen and (max-width: 972px) {
	.grid-sizer,
	.grid-item {
		width: 50%;
	}
	.header-container {
		flex-direction: column;
		align-items: flex-start;
	}
	nav {
		margin-top: 1em;
	}
	html,
	body {
		font-size: 12px;
	}
	.even-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 40px;
		gap: 60px;
	}
}
/* upto 576px for Mobile test#1 768px, test#2 576px */
@media only screen and (max-width: 576px) {
	.grid-sizer,
	.grid-item {
		width: 100%;
	}
	.even-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 20px;
		gap: 40px;
	}
	.info-container {
		flex-direction: column;
	}
	#ngoro { display: none }
}

/* */
/* Project Styling */
/* */
.project-container {
	margin: 0em 2em 0em 2em;
	display: flex;
	flex-direction: column;
	max-width: 1000px;
}
.project-container img {
	width: 100%;
	margin-bottom: 3em;
	/* the below constrains the image height to match the width of landscape images - minus the margins */
	max-height: calc(100vw - 4em);
	/* the below fits the image within its containing area without distorting by stretching */
	object-fit: contain;
	object-position: left;
}
/* RESPONSIVE STYLING */
/* */
/* Over 1350px */
@media only screen and (min-width: 1000px) {
	.project-container img {
		max-height: 1000px;
	}
}

/* */
/* PayPal Hacks */
/* */

.grid-item form img {
	height: 1px;
}
