/* Gryffin's site project */

/* reset */
html, body {
	height: 100%;
}
body, header, nav, main, footer, h1, h2, h3, p, div, img, ul, li, section {
	margin: 0;
	padding: 0;
	border: 0;
}

img {
	max-width: 100%;
	display: block;
}

/* mobile styles first */
body {
	background-color: #000;
	color: #fff;
	font-family: 'Fredoka One', cursive;
	line-height: 1.5;
}

#container {
	min-height: 100%;
	position: relative;
	padding-bottom: 90px;
}

/* title bar title secondary discription styles */
.title-bar {
	background-color: #111;
	color: #fff;
	text-align: center;
	padding: 2rem 1rem;
}

.title-bar h1 {
	font-family: 'Fredoka One', cursive;
	font-size: 1rem;
	margin: 0 0 1rem 0;
	letter-spacing: 0.2em;
	-webkit-font-smoothing: antialiased;   /* Smooths edges in Chrome/Safari */
	-moz-osx-font-smoothing: grayscale;    /* Smooths edges in Firefox/macOS */
	text-rendering: optimizeLegibility;    /* Improves curves/kerning */
	font-weight: 400;  
}

.inline-link {
	color: #7dd3fc;
	text-decoration: underline;
}

.inline-link:hover {
	color: #bdefff;
}

/* Mobile nav element styles*/
nav {
	background-color: #222;
	padding: 1rem 0;
}

nav ul {
	text-align: center;
}

nav li {
	display: block;
	text-transform: uppercase;
	font-family: 'Raleway', sans-serif;
	font-size: 1.3em;
	border-top: 1px solid #fff;
}

nav li:first-child {
	border-top: none;
}

nav a {
	display: block;
	padding: 0.75rem 1rem;
	color: #fff;
	text-decoration: none;
}

/* hero section used mainly for index page but continues as top image for all other pages */
.hero-section {
	height: 38vh;
	background-image: url('../images/chatgptlogo.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 75%;
	margin: 0 auto;
}

.hero-content {
	display: block;
	box-sizing: border-box;
	width: 90%;
	max-width: 800px;
	margin: 1rem auto 0;
	padding: 1.4rem 1.6rem;
	text-align: center;
}

/* main element styles */
main {
	background-color: rgba(0,0,0,0.3);
	color: #fff;
	font-family: 'Raleway', sans-serif;
	text-align: center;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin: 1.25rem;
	font-size: 0.65rem;
}

main section {
	background-color: rgba(255,255,255,0.05);
	margin: 2rem 0;
	padding: 1.25rem;
	border-radius: 8px;
	text-align: left;
}

/* element styles for exploration page main content */
.case-block {
	max-width: 95%;
	margin: 1rem auto;
	padding: 1rem;
	background-color: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 10px;
	text-align: center;
	font-size: 0.8em;
}

.case-block img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.split-layout {
	text-align: center;
}

/* Design element for researcher page main content */
.worker-column {
	display: block;
	width: auto;
	margin: 0 0.25rem 0.25rem;
	padding: 1rem;
	background-color: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 10px;
	text-align: left;
}

.worker-column img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.worker-column p {
	background-color: rgba(0,0,0,0.4);
	padding: 1rem;
	border-radius: 6px;
}

.scribble-strike {
	position: relative;
	display: inline-block;
}

.scribble-strike::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 2px;
	background: red;
	transform: rotate(-8deg);
}

.handwritten {
	font-family: 'Comic Sans MS', cursive;
	color: red;
	font-size: 0.95em;
	margin-left: 0.25em;
	position: relative;
	top: -0.2em;
}

/* contact page styles */
.contact-top {
	display: none;
}

.contact-card {
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin-bottom: 0;
}

.contact-card h2 {
	margin: 0 0 .25rem 0;
	font-size: 1rem;
	letter-spacing: .06em;
}

.contact-sub {
	margin: 0 0 1rem 0;
	font-size: 1rem;
	color: #cbd5e1;
}

.contact-logo {
	max-width: 120px;
	margin: 0 auto 1rem auto;
	display: block;
}

.contact-links {
	text-align: center;
	margin-top: 0.5rem;
}

.contact-link {
	display: inline-block;
	box-sizing: border-box;
	width: 90%;
	max-width: 280px;
	margin: 0.25rem auto;
	font-size: 0.75rem;
	padding: 0.6rem 0.8rem;
}

.contact-block {
	max-width: 520px;
	margin: 1rem auto;
	padding: 1rem 1.25rem;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 12px;
	text-align: center;
}

.contact-block .contact-link {
	color: #000;
	box-sizing: border-box;
	display: inline-block;
	margin: 0.25rem auto;
	width: 90%;
	max-width: 280px;
	padding: 0.6rem 0.8rem;
	text-align: center;
	background-color: #d4892f;
	border-radius: 12px;
	border-color: #4a3821;
	text-decoration: none;
}

/* iframe map styles for mobile */
.map-section {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 1.25rem;
	text-align: center;
}

.map-embed {
	border: 2px solid #000;
	width: 95%;
	height: 30vh;
	max-width: 960px;
	margin: 0.5rem auto 0;
	overflow: hidden;
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* footer styles for mobile */
footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: rgba(0,0,0,0.85);
	color: #fff;
	text-align: center;
	padding: 1rem;
}

footer p {
	font-size: 0.6em;
}

footer p a {
	color: #fff;
	text-decoration: none;
}

/* 

Viewport for tablet 

===================================

Some global settings will continue

===================================

*/
@media (min-width: 630px) {
	
	/* nav for tablet styles */
	nav li {
		display: inline-block;
		font-size: 1rem;
		border-top: none;
		border-right: 1px solid #fff;
	}
	
	nav li:last-child {
		border-right: none;
	}
	
	nav a {
		padding: 0.1em 0.75em;
	}

	/* hero section styles for tablet */
	.hero-section {
		height: 50vh;
		background-image: url('../images/chatgpthero.png');
		background-position: center top;
		background-size: contain;
	}
	
	.hero-content {
		padding: 1.6rem 1.6rem;
		max-width: 900px;
	}
	
	/* Title bars for tablet */	
	.title-bar {
		text-align: center;
		margin: 0.25em 0;
		padding: 0.25em 0;
	}
	
	/* Adjusted the parameters for font size/spacing and added some additional tools to help ensure consistent font display */
	.title-bar h1 {
		font-size: 0.9rem;
		letter-spacing: 0.2em;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: optimizeLegibility;
		font-weight: 400;  
	}

	/* main element styles for tablet */
	main {
		margin: 1.25rem auto;
		max-width: 1100px;
		font-size: 0.8rem;
	}

	/* style adjustments for primary content on Exploration page */
	.case-block {
		font-size: 1rem;
	}
	
	/* removed underline rule for h2 due to difficulty reading text */
	.case-block h2 {
		font-size: 1.5rem;
		margin: 0 0 0.25em 0;
		padding: 0 0 0.25em 0;
	}
	
	.case-block p {
		font-size: 0.95rem;
		margin: 0.5em 0 0.25em 0;
		padding: 0.5em 0 0.25em 0;
	}
	
	.case-block img {
		display: block;
		width: 95%;
		max-width: 900px;
		height: auto;
		margin: 0 auto;
	}
	
	/* style adjustments for primary content on Researchers page */
	.split-layout {
		display: flex;
		justify-content: space-between;
		gap: 2rem;
		flex-wrap: wrap;
	}
	
	.worker-column {
		flex: 1;
		min-width: 300px;
	}
	
	/* fix for difficult image that didn't want to center */
	.worker-column img {
		width: 90%;
		max-width: 460px;
		height: auto;
		border-radius: 10px;
		margin: 1rem auto 0.5rem;
		display: block;
	}

	/* contact page style adjustments */
	.contact-card {
		background: rgba(255,255,255,0.06);
		border: 1px solid rgba(255,255,255,0.15);
		border-radius: 12px;
		padding: 1rem;
		margin: 1rem auto;
		max-width: 760px;
		text-align: center;
	}
	
	.contact-card .contact-block {
		display: inline-block;
		width: 30%;
		margin: 0.5rem 1%;
		padding: 0;
		background: transparent;
		border-radius: 0.1rem;
		vertical-align: top;
		text-align: center;
	}
	
	.contact-card .contact-block .contact-link {
		display: inline-block;
		box-sizing: border-box;
		background: #d4892f;
		color: #fff;
		border: 1px solid #7dd3fc;
		border-radius: 12px;
		border-color: #4a3821;
		padding: 0.65rem 1rem;
		text-decoration: none;
		width: auto;
		max-width: none;
		margin: 0.35rem auto;
		text-align: center;
	}
	
	.contact-card h2 {
		font-size: 1.5em;
	}
	
	/* map size adjustment for tablet */
	.map-embed {
		width: 600px;
		height: 450px;
	}
}

/* 

Viewport for desktop
========================================================
Again some global settings will carry over.
Also some tablet settings will be shared with desktop.
========================================================

*/
@media (min-width: 1015px) {
	/* adjustments to nav bar */
	nav {
		width: 100%;
		margin: 4em 1em 0 0;
	}
	
	nav li {
		border: none;
	}
	
	nav a {
		padding: 0.5em 1em;
	}
	
	nav a:hover {
		color: #000;
		background-color: #fff;
	}
	
	/* Adjustments to header and title section */
	header {
		width: 50%;
		padding-bottom: 0.5em;
	}
	
	.title-bar {
		padding: 1.5rem 0.75rem;
		text-align: center;
	}
	
	.title-bar h1 {
		font-size: 1rem;
		margin: 0 0 1rem 0;
		text-align: center;
	}
	
	/* main reset for left float. break comment in case of adding left float instead of flexbox.
	main {
		clear: left;
	}
	*/
	
	.worker-column p {
		font-size: 1.5em;
	}
	
	.hero-section {
		height: 60vh;
		background-image: url('../images/chatgpthero.png');
		background-position: center top;
		background-size: contain;
	}
	
	.hero-content, .mobile-hero-box {
		max-width: 900px;
		padding: 1.5rem 1.5rem;
	}
	
	.worker-column {
		width: 29%;
		margin: 0 2% 2% 2%;
	}
	
	.map-embed {
		width: 800px;
		height: 500px;
	}
	
	footer p {
		font-size: 0.75em;
	}
	
}

/* print */
@media print {
	body {
		background-color: #fff;
		color: #000;
	}
}
