/* || GENERAL STYLES */

:root {
    --bg_dim: #1e2326;
    --bg0: #1e2326;
    --bg1: #2e383c;
    --red: #e67e80;
    --green: #a7c080;
    --blue: #7fbbb3;
    --purple: #d699b6;
    --fg: #d3c6aa;
    --grey0: #7a8478;
    --grey1: #859289;
    --grey2: #9da9a0;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg0);
    color: var(--fg);
    font-family: Arial, sans-serif;
    font-size: 110%; /* default: 16px */
    /* top | right | bottom | left, centres the element */
    margin: 3em auto 2em auto;
    line-height: 1.5; /* minimum value for accessibility */
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
}

h1 {
    margin-bottom: 1em;
}

p {
    /* top and bottom | left and right */
    margin: 1em 0;
    line-height: 1.5; /* minimum value for accessibilty */
}

hr {
    margin: 1em 0;
}

a {
    color: var(--blue);
}

a:hover {
    color: var(--fg);
}

a:active {
    color: var(--red);
}

header {
    color: var(--red);
    font-weight: bold;
    margin-bottom: 2em;
}

header a {
    color: var(--green);
    text-decoration: none;
}

header a:hover {
    color: var(--fg);
}

/* Make navigation bar inline */
header nav {
    display: inline;
}

header nav a {
    color: var(--grey2);
    margin-left: 1em;
}

ul > ul {
    margin-left: 1em;
}

/* || Utilities */

.meta {
    color: var(--grey2);
}

@media screen and (min-width: 42em) {
    body {
        width: 42em;
    }
}

/* || Home */
address {
    display: flex;
    flex-flow: wrap;
    align-items: center;
    justify-content: space-evenly;
}

figcaption {
    text-align: center;
}

address ul {
    list-style-type: none;
}

blockquote cite {
    text-align: end;
    display: block;
}

/* || Blog */

ul.posts {
    list-style-type: none;
    margin-bottom: 2em;
}

ul.posts li {
    line-height: 1.75;
}

ul.posts span {
    color: var(--grey2);
    font-family: Monaco, "Courier New", monospace;
    font-size: 80%;
}

.btn {
    color: var(--fg);
    background-color: var(--bg0);
    border-color: var(--grey0);
    font-size: smaller;
    padding: 0 2px;
    margin-bottom: 0;
    border-width: 1px;
    border-style: solid;
    line-height: 1.4;
    border-radius: 4px;
}

/* || Posts */

#post pre {
    border: 1px solid var(--grey1);
    background-color: var(--bg1);
}

#post ul, #post ol {
    margin-left: 1.35em;
}

#post code {
    border: none;
}

#post img {
    max-width: 42em;
    /* top and bottom \ left and right */
    padding: 1em 0;
}

#post pre.terminal {
    border: 1px solid var(--fg);
    background-color: var(--bg_dim);
}

#post pre.terminal code {
    background-color: var(--bg_dim);
}

#related {
    margin-top: 2em;
}

#related h2 {
    margin-bottom: 1em;
}

/* || Clock */

.form {
    list-style-type: none;
}

.clock_area {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.time {
    display: flex;
    justify-content: center;
    font-size: 10vw;
    flex-flow: row nowrap;
    font-family: Monaco, "Courier New", monospace;
    text-align: center;
    margin-top: auto;
}

.exam_info {
    display: flex;
    margin-bottom: auto;
    font-size: larger;
}

.exam_info ul {
    flex: 1;
    list-style-type: none;
    font-size: 110%;
}

.exam_info_right {
    text-align: right;
}