body {
    font-size: 16px;
    font-family: Poppins;
    background-color: white;
    color: white;
    line-height: 1.4;
    background-color: rgb(20%, 20%, 20%);
}

.header {
  margin-top: 50px;
  text-align: center;
}

h1 {
    font-size: 300%;
    margin-top: 4em;
    margin-bottom: 1.5em;
    line-height: 1.2;
}

h2 {
border-bottom: 1px solid #aaa;
    font-size: 180%;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin: 0.8em 0;
}

a, a:hover, a:visited {
    color: #8ab4f8;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.code {
    font-family: monospace;
    font-size: 80%;
    width: 100%;
    height: 100%;
}

body .contents {
    width: min(1080px, calc(100vw - 20px));
    height: fit-content;
    margin: 20px auto;
}

.date {
    font-size: 80%;
    color: #888;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    border-style: solid;
    border-width: 2px;
}

video {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    border-style: solid;
    border-width: 2px;
}

.quote {
    background: #464646;
    padding: 5px;
    font-family: monospace;
    font-size: 90%;
}

.inline_quote {
    background: #464646;
    padding: 4px;
    font-family: monospace;
    font-size: 90%;
}

/* ----- Project page ----- */

#projectsPage h1 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1em;
    margin: 1em 0 20px;
}

#projectsPage .project {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    overflow: auto;
}

#projectsPage .project img.project-thumbnail {
    margin: 0 40px 20px 0px;
    float: left;
    width: 200px;
    height: 200px;
    border: 1px solid rgb(10%, 10%, 10%);
}

@media (max-width: 700px) {
    #projectsPage .project img.project-thumbnail {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }
}

#projectsPage .project h2 {
    margin-top: 0;
}

#projectsPage .project h2 .date {
    white-space: nowrap;
}

/* ----- Footer ----- */

.header {
    margin-top: 50px;
    text-align: center;
}

.header a {
    margin-left: 20px;
    font-size: 20px;
    text-decoration: none;
}

.header a:first-child {
    margin-left: 0;
}
