:root {
	--font-color: #263744;

	/* --background-color: #fafafa; */
	--background-color: white;
	--secondary-background-color: #dedede; /* for the table */
	--header-background: #b9b9b9;

	--link-color: #375062;
	--link-hover: #557C99;
}

body {
    font-family: monospace;
    padding: 0.25rem 0.5rem;
    color: var(--font-color);
    background-color: var(--background-color);
    height: 100%;
    overflow: hidden;
}

a,
a:visited {
    color: var(--link-color);
    text-decoration: underline wavy 0.075rem;
}

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

.home-link {
    text-decoration: none;
    color: var(--font-color) !important;
}

/* styling for header/footer */

header,
footer{
    width: calc(100vw - 3rem);
}

header {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0.5rem;
}

h1 {
    float: left;
    margin-top: 0;
}

.nav {
    font-size: 1.1rem;
}

footer {
    margin-top: 2rem;
    position: fixed;
    bottom: 0;
    background-color: var(--background-color);
}

footer p{
    text-align: center;
    font-size: 0.8rem;
}

/* end styling for header/footer */

/* styling for main area */

#container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

main p {
    max-width: calc(40vw - 2rem);
    padding-left: 5rem;
    font-size: 1rem;
    line-height: 1.35rem;
}

h2 {
    padding-left: 1.5rem;
}

aside {
    max-width: calc(40vw - 2rem);
    margin: 0 auto;
    opacity: 90%;
    min-height: min-content;
    max-height: calc((90vh - 5rem) - 2px);
	overflow-y: scroll;
}

aside img {
    max-width: 100%;
}

.small {
    font-size: 0.6rem;
    text-align: right;
}
/* end styling for main area */

/* styling for links to wikipedia */

.scientific {
	margin-left: 0.2rem;
	font-style: italic;
	font-family: 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;
}

/* end styling for wikipedia links*/

/* 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);
}

/* end styling for table */

@media only screen and (max-width: 900px) {
    body {
        overflow: auto;
    }
    #container {
        flex-wrap: wrap;
    }

    main p {
        max-width: 85vw;
        padding: 0 5rem;
        font-size: 1rem;
        line-height: 1.35rem;
    }

    aside {
        max-width: 85vw;
        max-height: revert;
        margin-top: 2rem;
        padding: 0 5rem;
    }
}
