/**
 * Adapted from Scott Alexander Williams (swilliams.io/fun/hex/)
 */

body {
    font-size: 20px;
    background-color: #1c1c1c;
    color: white;
    font-family: Verdana, Arial, sans-serif;
    text-align: justify;
    line-height: 1.5;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    background-color: #242424;
    padding: 20px;
    margin: 20px;
}

header .social-links a {
    margin: 0.7vw;
}

header .social-links svg {
    height: 3em;
    width: 3em;
    fill: white;
}

header .social-links #resume-link-path {
    fill: #1c1c1c;
}

header a,
header a:hover {
    color: inherit;
    text-decoration: none;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

article {
    float: left;
    margin-bottom: 40px;
    margin-left: 20px;
    padding: 20px;
    width: calc(70% - 100px);
    background-color: #242424;
}

.figures {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

figure {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

code.block {
    display: block;
    white-space: pre-wrap
}

code.inline {
    display: inline;
}

nav {
    float: left;
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
    width: calc(30% - 40px);
    background-color: #242424;
}

@media (max-width: 800px) {
    article {
        display: block;
        padding: 20px;
        margin: 20px;
        width: calc(100% - 80px);
    }
    nav {
        display: block;
        box-sizing: border-box;
        padding: 20px;
        margin: 20px;
        width: auto;
    }
}

article a,
nav a {
    text-decoration-line: none;
    color: #4791e6;
}

article a:hover,
nav a:hover {
    text-decoration: underline;
}