:root {
    --bg-color: #f5deb3;
    --menu-footer: #1b2021;
    --border: #1b2021;
    --text-color: #000000;
    --alt-text-color: #f8f8ff;
    --alt-bg-color: #454545;
    --alt-link-visited: #808080;
    --link: #00008b;
    --link-visited: #4f214b;
    --link-active: #23CE6B;
    --link-hover: #EA638C;

    --text-size: 1em;
    --h1-size: 2.5em;
    --h2-size: 2em;
    --h3-size: 1.5em;

    --bg-image: url("../media/purplebluebg.jpg");
}
:root.high-contrast-mode {
    --bg-color:#f8f8ff;
    --border: black;
    --menu-footer: black;
    --alt-bg-color: black;
    
    --text-size: 2em;
    --h1-size: 5em;
    --h2-size: 4em;
    --h3-size: 3em;
    --bg-image: ; /* removes background image while in high-contrast mode */
}
:root.high-contrast-mode main {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin:0rem;
    border:0em;
    border-radius: 0rem;
}

:root.high-contrast-mode summary+p {
    font-size: 1em !important;
}

body {
    background-image: var(--bg-image);
    background-size: cover;
    background-color: var(--menu-footer); /* removes white line when trying to scroll up or down 
    beyond the document on touch screen*/
    font-family:Arial, Helvetica, sans-serif;
}

main {
    padding: 2rem;
    background-color: var(--bg-color);
    margin: 2rem;
    border: 0.2em solid var(--border);
    border-radius:1.5rem;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 3rem;
}

button {
    margin-top: 1rem;
    background-color: var(--bg-color);
    font-size: var(--h3-size);
    color: var(--text-color);
    border: 0.2em solid var(--border);
    padding: 0.2em;
    margin-right: 2rem;
}

table {
    background-color: var(--alt-bg-color);
    color: var(--alt-text-color);
    border: 0.5em solid var(--border);
    border-radius: 0.5em;
    font-size: var(--text-size);
}
th, td {
    padding:0.5em;
    border: 0.2em solid var(--border);
    text-align: left;
}
legend {
    margin-bottom:0.5em;
    margin-top:0.2em;
    font-size: var(--h3-size);
}
label {
    margin-top: 0.2em;
    font-size: var(--text-size);
}
figure {
    font-size: var(--text-size);
}
p {
    margin:0.5em;
    font-size: var(--text-size);
    text-align:left;
}
h1 {
    margin-top:1em;
    padding-left: 0.2em;
    font-size: var(--h1-size);
}
h2 {
    margin-top:1em;
    padding-left: 0.2em;
    font-size: var(--h2-size);
}
h3 {
    margin-top:1em;
    padding-left:0.2em;
    font-size: var(--h3-size);
}
hr {
    border-top: 0.2em dashed var(--border);
}
img {
    margin-top:1em;
    margin:0.5em;
    border:0.5em solid var(--border);
    border-radius: 0.5rem;
    
    /* better look for alt text if image doesnt load */
    background-color: var(--border);
    color: var(--alt-text-color);
    text-decoration: underline;
}
img:visited
img:active {
    color: var(--alt-link-visited);
}
img:hover {
color: var(--link-active);
}
figure {
    text-align: center;
}
video {
    margin-top:1em;
    border:0.5em solid var(--border);
    background-color: var(--border);
    border-radius: 0.5rem;
}

a {
    color: var(--link);
    text-decoration: underline;
}

a:hover {
    color:var(--link-hover);
}

a:visited {
    color: var(--link-visited);
}

a:active {
    color: var(--link-active)
}

footer {
    background-color: var(--menu-footer);
    padding-top: 1rem;
    padding-bottom: 1rem;
    color:var(--alt-text-color)
}
.footer-link, /* overwrites style for the email and source links in the footer */
.footer-link:visited,
.footer-link:hover,
.footer-link:active {
    text-decoration: underline;
    color:var(--alt-text-color);
}
header {
    background-color: var(--menu-footer);
    font-weight: bold;
    padding-bottom: 1rem;
    padding-top: 1rem;
    font-size: var(--text-size);
}
.header-link, /* overwrites style for the menu points in the header */
.header-link:visited,
.header-link:hover,
.header-link:active {
    color: var(--alt-link-visited);
    text-decoration: none;
    text-align: center;
    margin: 0 0.5rem;
}
.header-active, /* overwrites style for the active menu point in the header */
.header-active:visited,
.header-active:hover,
.header-active:active {
    color: var(--alt-text-color);
    text-decoration: none;
    text-align: center;
    margin: 0 0.5rem;
    font-weight: bold;
}

form {
    background-color: var(--alt-bg-color);
    padding: 2rem;
    border:0.2em solid var(--border);
    border-radius: 0.5rem;
    color: var(--alt-text-color);
}