* {
    margin: 0;
    padding: 0;
} 

header {
    background-color: #CCFFEE;
}

.site-cont {
    padding: 20px;
    text-align: center;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding-right: 50px;
    background-color: aquamarine;
}

nav a {
    padding: 15px;
    color: indigo;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background-color: cadetblue;
    color: white;
    box-shadow: 0 5px indigo;
}

.nav-active {
    background-color: #DCADFF;
    box-shadow: 0 5px indigo;
}

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

section {
    --section-margin: 20px;
    --section-padding: 10px;
    margin: var(--section-margin);
    padding: var(--section-padding);
    /* margin: 20px; */
    /* padding: 10px; */
}

aside {
    width: 40%;
    height: 100%;
    min-width: 90px;
    --aside-margin: 20px;
    --aside-margin-right: 30px;
    margin:
        var(--aside-margin),
        var(--aside-margin-right),
        var(--aside-margin),
        var(--aside-margin);
    /* margin: 20px 30px 20px 20px; */
    padding: 20px;
    background-color: cadetblue;
}

aside ul {
    text-indent: 15%;
    list-style-type: none;
}

aside li {
    margin: 5px;
}

aside ul ul {
    text-indent: 30%;
}

/* Putting different indentation percentages based on the heiarchy seemed hacky. */
/* I decided that this syntax would be more correct, because this can be expanded infinitely, and flows better. */
/* However, this didn't work as good. I would like the pixel gap to be consistent, but it is exponential with each sub-link.
aside li {
    list-style-type: none;
}

ul {
    padding: revert;
    padding-left: 20%;
}*/


aside a {
    text-underline-offset: 3px;
    color: darkblue;
}

aside a:hover {
    color: aliceblue;
    text-decoration-style: dotted;
}

.aside-active {
    text-decoration-style: double;
    font-weight: bold;
    color: brown;
}


.crumbs {
    margin: 10px;
}

.crumbs a {
    color: #5D0001;
    text-decoration: none;
}
.crumbs a:hover {
    color: blueviolet;
}


@media only screen and (max-width: 880px) {
    nav {
        padding-right: 0;
    }

    /* using variables allows it to be halved if it ever changes */
    aside {
        margin-right:  var(--aside-margin-right / 2);
        margin-top:    var(--aside-margin / 2);
        margin-bottom: var(--aside-margin / 2);
    }
    
    section {
        margin:  var(--section-margin) / 2;
        padding: var(--section-margin) / 2;
    }
}