* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    height:100%;
    background-color: #FAFAFA;
    color: #000046;
    font-family: "Ubuntu", serif;
}

#top-bar {
    display: flex;
    flex-direction: row;
    margin: 50px 50px 0px 50px;
}

nav {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.menu-item {
    display: inline;
    font-size: 28px;
}

.menu-item-middle {
    margin-left: 60px;
    margin-right: 60px;
}

h1 {
    font-weight: 500;
    font-size: 56;
}

h2 {
    margin-top: 20px;
    margin-bottom: 20px;
}

#text-container {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: center;
    margin-top: 40px;
}

#main-text {
    display: flex;
    flex-direction: column; 
    flex-grow: 1;
    font-weight: 300;
    font-size: 22px;
    text-align: left;
    max-width: 1120px;
}

#summary {
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #FCFCF6;
    box-shadow: 2px 2px lightgray;
}

ol,
ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

li {
    margin-left: 15px;
    margin-bottom: 10px;
}

ul ul {
    margin-left: none;
}

#table-of-contents {
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    border: 1px solid;
}

#main-text p {
    margin-bottom: 10px;
}

.text-img {
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;
}

figure {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

figure img {
    object-fit: none;
    align-self: center;
}

#footer {
    padding: 10px;
    margin-top: 50px;
    font-weight: 300;
}

#footer p {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#footer a {
    margin-left: 3px;
    margin-right: 3px;
}


.center {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.no-decoration {
    text-decoration: none;
    color: inherit;
}

.empty-space {
    flex-grow: 1;
}

@media (max-width: 720px) {
    body {
        width: 100%;
    }

    #top-bar {
        margin: 18px 20px 0px 20px;
    }

    .menu-item {
        font-size: 18px;
    }

    .menu-item-middle {
        margin-left: 20px;
        margin-right: 20px;
    }

    h1 {
        font-size: 40px;
    }

    #text-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    #main-text {
        font-size: 16px;
        max-width: none;
        width: 100%;
    }

    figure {
        font-size: 15px;
    }

    figure img{
        object-fit: contain;
        width: 100%;
        height: auto;
    }

    #footer {
        display: flex;
        flex-direction: row;
        justify-content: center;
        font-size: 13px;
    }
    
    #footer a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}