:root {
	--font-color: #524948;
	--header-font-color: #99d19c;

	--background-color: #f6eeec;
	--secondary-background-color: #e6dddc; /* for the table */
	--header-background: #524948;

	--link-color: #73ab84;
	--link-hover: #eea243;
}

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	width: 100%;
	height: 100%;
	color: var(--font-color);
	background-color: var(--background-color);
	font-family: Tahoma, sans-serif;
	font-size: 0.9rem;
}

hr {
	border-top: 0.1rem dotted var(--font-color);
	border-bottom: none;
	width: 3rem;
}

h2, h3 {
	font-family: Garamond, serif;
}

a,
a:visited,
h3 a,
h3 a:visited {
	color: var(--link-color);
	font-weight: 700;
}

a:hover {
	color: var(--link-hover);
}

.offsite:after {
	display: inline-block;
	vertical-align: center;
 	content: "↗";
 	margin-left: 2px;
 	font-size: 1em;
}

header, footer {
	width: calc(100vw - 2rem);
	padding: 0 1rem;
}

header {
	border-bottom: 1px solid var(--header-background);
	height: 2rem;
	padding-top: 0.5rem;
	padding-bottom: 0.1rem;
	font-size: 1.4rem;
	color: var(--header-font-color);
	background-color: var(--header-background);
}

header a,
header a:visited {
	text-decoration: none;
	color: var(--header-font-color);
}

footer {
	border-top: 1px solid var(--header-background);
	max-height: 1rem;
	font-size: 0.8rem;
	position: sticky;
	bottom: 0;
	padding-top: 0.7rem;
}

main {
	display: flex;
	flex-direction: row;
}

section {
	width: 33.3%;
	border-right: 1px solid var(--header-background);
	max-height: calc((100vh - 5rem) - 2px);
	overflow-y: scroll;
	padding: 0 1rem;
}

section:last-child {
	border-right: 0;
}

section h2 {
	border-bottom: 1px solid var(--header-background);
	width: 100%;
	margin: 0 -1rem;
	padding: 1rem 1rem 0.5rem 1rem;
	position: sticky;
	top: 0;
	background-color: var(--background-color);
}

.intro-block {
	font-size: 1.1rem;
}

/* styling for links to wikipedia */

.scientific {
	margin-left: 0.2rem;
	font-style: italic;
	font-family: Garamond, serif;
	font-size: 0.80rem;
}

a.wikipedia,
a.wikipedia:visited {
	color: var(--font-color);
}

.wikipedia:after {
	display: inline-block;
	vertical-align: center;
 	content: "↗";
 	margin-left: 2px;
 	font-size: 1em;
}

/* table styling */

.data-entry {
	width: 100%;
	margin-bottom: 25px;
	text-align: left;
}

.data-entry thead tr th {
    border-bottom: 0.1rem solid var(--header-background);
    padding: 10px;
}

.inner-header td, .data-entry tbody tr td {
    padding: 10px;
}

.data-entry tbody tr td:nth-child(1) {
    min-width: 80%;
}

.data-entry tbody tr td:nth-child(2) {
    text-align: right;

}

.data-entry tbody tr:nth-child(even) {
    background-color: var(--secondary-background-color);
}

/* mobile styles */

@media only screen and (max-width: 900px) {
	main {
		display: block;
		width: calc(100vw);
	}

	section {
		width: calc(100vw - 2rem);
		border-right: none;
	}
}