:root {
    /* Core Elements */
    --bg: #5c0202;          /* background color */
    --text: #f5f5f5;        /* main text color  */
    --link: #0077cc;        /*main link color  */
    --link-hover: #66b3ff;  /* link hover color */
    --border: #fafafa;      /*  box and nav borders */

    /* Sizing + Spacing */
    --radius: 10px;         /*  rounded corners  */
    --space-sm: 0.5rem;
    --space: 1rem;
    --space-lg: 1.5rem;
}

/* General Style Formatting */
body {
    font-family: Arial, sans-serif;
    max-width: 1500;
    margin: 0 auto;
    background: var(--bg);
    color: var(--text);
}
a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/*centers items on the page*/
.center-line {
    text-align: center;
    margin: 20px 0;
}

/*creates the back to home button on top left of each page*/
header nav {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}
header nav a {
    text-decoration: none;
    font-weight: bold;
    color: var(--text);
    padding: 5px 10px;
    border-radius: var(--radius);
}
header nav a:hover {
    text-decoration: underline;
}

/*creates a simple box and border around an object*/
.box {
    display: inline-block;
    border: 1px solid var(--border);
    padding: var(--space);
    margin: var(--space-lg) auto;
    border-radius: var(--radius);
    text-align: center;
}

/*creates stationary links to pages within parent pages.*/
.link-box nav {
    border: 1px solid var(--border);
    padding: var(--space);
    margin: var(--space-lg);
    border-radius: var(--radius);
}
.link-box nav a {
    text-decoration: underline;
    margin: 0;
    color: var(--text);
    font-size: 1.5em;
}
.link-box nav a:hover {
    font-weight: bold;
}

/*this positions link boxes next to eachother also centers them on a page*/
.link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/*creates navigation buttons at the top right of the screen for sub-pages to link back to their parent page*/
section nav {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}
section nav a {
    text-decoration: none;
    font-weight: bold;
    color: var(--text);
    padding: 5px 10px;
    border-radius: var(--radius);
}
section nav a:hover {
    text-decoration: underline;
}




















