/* Fonts */
html {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-feature-settings: "ss02"; /* Single-storey 'g' */
}

code, pre {
    font-family: 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;
    font-weight: 300;
    font-size: 80%;
}

h1, h2, h3, h4, h5, strong, thead, th {
    font-weight: 500;
}

/* Generic element styles */
code, pre {
	hyphens: manual;
}
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

a {
    color: #eaab20;
    text-decoration: none;
}

a .fas {
    color: #FFD100;
    width: 1em;
    padding: 0 0.25em;
    line-height: 1;
}

a:hover {
    color: #FFD100;
    text-decoration: none;
}

a.button {
    display: inline-block;
    color: #2D2926;
    background: #FFD100;
    text-decoration: none;
    border-radius: .2em;
    padding: .5em;
}

a.button:hover {
    color: #2D2926;
    background: #eaab20;
    text-decoration: none;
}

table {
    border-top: .01em solid #4e4e4e;
    border-bottom: .01em solid #4e4e4e;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
    border-collapse: collapse;
}

thead tr {
    background: #FFD100;
    border-bottom: .01em solid #4e4e4e;
}

tbody tr:nth-child(odd) {
    background-color: rgba(78, 78, 78, 0.1);
}

th, td {
    padding: 0.1em 0.5em;
}

/* Page styling */
html, body {
    margin: 0;
    background: #e9e9e9;
    hyphens: auto;
}

header {
    margin: 0;
    color: #2D2926;
    background: #FFD100;
}

header #name {
    padding: 0.5em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header #name img {
    height: 2.5em;
}

header a, header span {
    font-size: 140%;
    text-align: center;
    min-width: 4em;
    padding: 0.3em 0;
    margin: 0;
}

header a, header a:hover {
    color: #2D2926;
}

header #logo {
    padding: 0.5rem;
    text-align: center;
    background: url("img/header0.jpg") center;
    background-size: cover;
}

header #logo img {
    height: 8rem;
}

#content {
    max-width: 36em;
    margin: 0 auto;
    background: white;
}

#content h1 {
    text-align: center;
    background: #4e4e4e;
    color: white;
    margin: 0;
    padding: 0.2em;
}

#content h1.error {
    background: #D10000;
}

main {
    display: flex;
    flex-wrap: wrap;
}

/* On-page navigation menu */
main nav {
    min-width: 8em;
    max-width: 12em;
    flex-grow: 1;
}

main nav h3 {
    margin: 0;
    padding: 0.4em;
}

main nav ul {
    margin: 0 0 1em 0;
    padding: 0 0.5em;
    list-style: none;
}

main nav a {
    color: #2D2926;
}

main nav a:hover {
    color: #eaab20;
}

/* Content segment */
article {
    flex-grow: 3;
    padding: 1em;
    max-width: 36em;
    min-height: 10em;
}

/* Directory listing table */
article table.listing a {
    color: #2D2926;
}

article table.listing a:hover {
    color: #eaab20;
}

article table.listing .name {
    width: 45%;
    text-align: left;
    word-wrap: break-word;
    word-break: break-all;
}

article table.listing .time {
    width: 45%;
    min-width: 5em;
    text-align: center;
}

article table.listing .size {
    width: 10%;
    min-width: 4.5em;
    text-align: right;
}

/* Footer */
footer {
    padding: 0.4em 1em;
    background: #4e4e4e;
    color: white;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

footer .right {
    text-align: right;
}

footer .button {
    margin: 0.5em 0;
}

footer p.bandwidth {
    font-size: 85%;
}

/* Meter styling */
meter {
    appearance: none;

    display: block;
    margin: 0.5em 0em;

    height: .5em;
    background: white;
    border-radius: 0.25em;
}

meter.bandwidth {
    width: 100%;
}

meter::-webkit-meter-bar {
    background: white;
    border-radius: 0.25em;
}

meter::-webkit-meter-optimum-value,
meter::-webkit-meter-suboptimum-value,
meter::-webkit-meter-even-less-good-value {
    border-radius: 0.25em;
    background: #FFD100;
}

meter::-moz-meter-bar {
    border-radius: 0.25em;
    background: #FFD100;
}
