:root {
    --main-color: #990000;
}

@media (width >= 800px) {
    :root {
        --horizontal-padding: 30px;
    }

    ul.two-columns {
        column-count: 2;
        max-width: 40em;
    }

    table.resumé>tbody>tr:last-child>td {
        padding-bottom: 0px;
    }
}

@media (width < 800px) {
    :root {
        --horizontal-padding: 10px;
    }

    table.resumé>tbody>tr>td:nth-child(odd) {
        float: left;
        width: 90%;
    }

    table.resumé>tbody>tr>td:nth-child(even) {
        float: left;
    }

    table.resumé>tbody>tr:last-child>td {
        padding-bottom: 15px;
    }
}

body {
    background-color: #ffffff;
    color: #333;
    display: grid;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    grid-template-rows: auto 1fr auto;
    letter-spacing: 0.5px;
    margin: 0px;
    min-height: 100vh;
    padding: 0px;
    text-align: center;
}

li {
    list-style-type: square;
    padding-left: 10px;
}

img {
    border: 0px;
}

h1 {
    font-size: 18px;
}

h2 {
    border-bottom: 1px solid #000000;
    font-size: 16px;
}

td {
    vertical-align: top;
    padding-bottom: 15px;
}

pre {
    color: #000000;
    font-size: 14px;
    padding-left: 50px;
    text-align: left;
    width: 90%;
}

code {
    padding: .2em .3em;
    margin: 0;
    font-size: 95%;
    background-color: rgb(243, 243, 243);
    border-radius: 3px;
    font-family: inherit;
}

/* Links */

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

main a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

main > h2 > a, main > h2 > a:hover, main > h2 > a:visited {
    color: #000000;
    text-decoration: none;
}

/* Commons */

.center {
    text-align: center;
    width: 99%;
}

.right {
    float: right;
    text-align: right;
}

.left {
    float: left;
    text-align: left;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Headers */

body>header {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,1) 85%, rgba(78,78,78,1) 100%);
    border-bottom: 2px solid var(--main-color);
    image-rendering: pixelated;
    color: #FFF;
    height: 33px;
    margin-bottom: 0px;
    padding: 0px;
    text-align: left;
    display: inline;
    vertical-align: middle;
}

body>header div.logo {
    padding-left: var(--horizontal-padding);
    float: left;
    height: 33px;
}

body>header div.logo>div {
    display: table-cell;
    height: 30px;
    vertical-align: middle;
}

@font-face {
    font-family: 'Pixeldust';
    src: url(/static/fonts/pixeldub.ttf);
    font-weight: 700;
}

body>header div.logo>div a {
    text-decoration: none;
    font-family: 'Pixeldust', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #FFF;
    height: 33px;
}

body>header div.logo>div a span:nth-child(2) {
    color: var(--main-color);
}

body>header div.alt-langs {
    padding-right: var(--horizontal-padding);
    float: right;
    height: 33px;
}

body>header div.alt-langs>div {
    display: table-cell;
    height: 30px;
    vertical-align: middle;
}

body>header h1 a, body>header h1 a:hover {
    text-decoration: none;
}

/* Footer */

body>footer {
    align-items: center;
    background: linear-gradient(0deg, rgba(0,0,0,1) 85%, rgba(78,78,78,1) 100%);
    border-top: 2px solid var(--main-color);
    color: #FFF;
    display: flex;
    font-family: Verdana, sans-serif;
    font-size: 0.7em;
    height: 33px;
    padding-left: var(--horizontal-padding);
    padding-right: var(--horizontal-padding);
    text-align: left;
}

body>footer a, body>footer a:visited {
    color: #FFF;
    text-decoration: none;
}

body>footer a:hover {
    text-decoration: underline;
}

/* Browse */

main {
    color: #000000;
    font-size: 0.9em;
    padding-left: var(--horizontal-padding);
    padding-right: var(--horizontal-padding);
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: left;
    min-width: 800px;
}

main > :first-child {
    margin-top: 0px;
}

.page_break {
    height: 1px;
    width: 100%;
}

main#message {
    --font-size: 80px;
    --font-size-halved: calc(var(--font-size) / 2);
    --padding-top: 70vh;
    --padding-top-halved: calc(var(--padding-top) / 2);
    color: var(--main-color);
    font-family: Verdana;
    font-size: var(--font-size);
    font-weight: bold;
    padding-top: calc(var(--padding-top-halved) - var(--font-size-halved));
    text-align: center;
    text-decoration: underline 5px;
}

/* Resume */

main.resumé>h1:nth-of-type(1) {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0px;
}

main.resumé h2 {
    margin-top: 30px;
}

main.resumé>p:nth-of-type(1) {
    margin-top: 0px;
}

main.resumé>aside {
    float: right;
}

main p.highlight {
    border: 1px solid rgb(129, 129, 129);
    background-color: rgb(255, 244, 244);
    border-radius: 2px;
    box-shadow: 1px 2px 3px #ccc;
    color: #000;
    padding: 10px;
}

table.resumé>tbody>tr>td:first-child {
    padding-right: 30px;
    white-space: nowrap;
    font-weight: bold;
}

table.resumé>tbody>tr>td>ul:last-child {
    margin-bottom: 0px;
}

table.resumé>tbody>tr>td>ul:not(:first-of-type) {
    margin-top: 0px;
}

/* looking glass */

table.looking-glass {
    border-collapse: collapse;
    border: 0;
    box-shadow: 3px 4px 5px #ccc;
    width: 100%;
}

table.looking-glass td, table.looking-glass th {
    border: 1px solid #666;
    vertical-align: baseline;
    padding: 4px 5px;
}

table.looking-glass td.e {
    background-color: #ccf;
    font-weight: bold;
    white-space: nowrap;
}

table.looking-glass td.v {
    word-wrap: anywhere;
}

table.looking-glass tr.h {
    background-color: #99c;
    font-weight: bold;
    text-align: center;
}

span.fas, span.fab {
    width: 19px;
    font-weight: 900;
    margin: auto;
    text-align: center;
    display: inline-block;
}
