:root {
    --bgColor: rgb(152, 251, 152, 0.7);
    --bgImage: url('../images/forest.jpg');
    --fontFamily: sans-serif;
    --hoverColor: purple;
}

/* ID Selectors */

#formFig {
    float: none;
    text-align: center;
    margin: auto;
    margin-bottom: 1em;
}

/* Class selectors */

.exBottom {
    padding-bottom: 5em;
}

.form form {
    margin: auto;
}

.form p {
    text-indent: 0em;
}

.index ul li {
    max-width: 40%;
}

.index ul li:nth-child(odd) {
    background-color: rgb(255, 165, 0, 0.7);
}

.index ul li:nth-child(even) {
    background-color: rgb(255, 255, 0, 0.7);
}

.index caption {
    color: red;
}

.index table {
    padding: 0.5em;
    border: 0.3em solid red;
    border-collapse: collapse;
    width: 80%;
    margin: auto;
}

.index th, td {
    padding: 1em;
    border: 0.25em solid black;
    border-collapse: collapse !important;
}

.index th {
    font-variant: small-caps;
    font-size: large;
}

.index table tr:nth-child(odd) {
    background-color: rgb(255, 165, 0, 0.7);
}

.index table tr:nth-child(even) {
    background-color: rgb(255, 255, 0, 0.7);
}

.limHeight {
    max-width: 25%;
}

.rightCaption{ 
    text-align: right;
}

/* Element selectors */

a:hover {
    color: var(--hoverColor); 
}

aside {
    width: 60%;
    float: left;
    background-color: rgb(46, 139, 87, 0.7);
    margin-left: -1em;
    margin-top: 1em;
}

figure {
    display: block;
    float: right;
    text-align: center;
    max-width: 40%; 
    padding: 1em;
    border-radius: 1em;
    border: 0.125em solid black;
}

figcaption {
    font-variant: small-caps;
    font-family: serif;
}

figcaption cite {
    font-size: xx-small;
}

h1 {
    font-variant: small-caps;
}

header, nav {
    text-align: center;
}

img {
    margin: auto; 
    max-width: 100%;
    border-radius: 1em;
}

nav a:link {
    background-color: #fff;
    color: #009;
    text-decoration: none;
}

nav a {
    display: inline-block;
    width: 19%;
}

nav a:hover {
    color: black; 
}

nav {
    border: thin solid yellow;
    background-color: white;
}

p {
    text-indent: 2em;
}

html{
    background-image: var(--bgImage);
    font-family: var(--fontFamily);
}

body{
    background-color: var(--bgColor);
    width: 80%;
    padding: 1em;
    margin: 0em;
    margin: auto;
}