*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 24px;
    font-size: 16px;
    background-color: #f8f9fa;
}

body {
    color: #110;
    margin: 0;
    padding: 0;
}

a {
    color: #17d;
}

a:hover {
    color: #15b;
}

header {
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    background: #fff;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 50rem;
    margin: 0 auto;
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger svg {
    fill: #17d;
}

.hamburger:hover svg {
    fill: #15b;
}

header .logo {
    margin: 0.5rem 1rem 0.5rem 0;
    display: block;
}

header section {
    margin: 0;
    flex-grow: 1;
    line-height: 1rem;
}

header a .desktop {
    margin-left: .5rem;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 15rem;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.parent-nav {
    display: flex;
    margin-right: 1rem;
}

header {
    position: sticky;
    top: 0;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 50rem;
    margin: 0 auto;
    width: 100%;
}

article {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

footer {
    display: flex;
    align-items: center;
    padding: .5rem;
}

footer section {
    margin: 0;
    flex-grow: 1;
}

img,
svg {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: normal;
}

h1,
h2,
h3 {
    padding-bottom: .5rem;
}

h2,
h3 {
    border-bottom: 1px solid #eee;
}

h4,
h5,
h6 {
    font-weight: bold;
}

hr {
    border: none;
    height: 1px;
    background-color: #eee;
}

table {
    min-width: 75%;
    border: 1px solid #eee;
    border-spacing: 0;
}

th {
    background-color: #eee;
}

td,
th {
    padding: .125rem .5rem;
}

main table {
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1rem 0;
}

p img {
    margin: 0 auto;
    border-radius: .125rem;
}

img,
video {
    display: block;
    max-width: 100%;
}

img[src*="maginet"] {
    image-rendering: pixelated;
}

video {
    border-radius: .5rem;
    margin-bottom: 1rem;
}

pre,
code,
kbd,
samp {
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
}

pre {
    display: block;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    font-size: .75em;
    line-height: 1rem;
    background-color: #f8f9fa;
    border-radius: .25rem;
    padding: .5rem;
    border: 1px solid #ced4da;
}

pre code {
    font-size: inherit;
    color: inherit;
    word-break: normal;
}

code {
    font-size: .875em;
    color: #c37;
    word-wrap: break-word;
}

a>code {
    color: inherit;
}

sup {
    line-height: 100%;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 30rem;
    margin: auto;
}

input {
    flex: 1;
    appearance: none;
    border: 1px solid #0000003f;
    border-radius: 2px;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
}

input[type=submit] {
    cursor: pointer;
    background-color: #37b24d;
    color: #fff;
}

iframe {
    width: 100%;
}

.directory-list {
    margin: 0;
    padding: 0;
}

.directory-list li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.folder-link {
    text-decoration: none;
}

.current-folder .folder-link svg {
    /* color: #5b2; */
}


.directory-list .separator {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
    border: none;
}

a svg:first-child {
    margin-right: .5rem;
}

.page-list li small {
    color: #2238;
}

.page-list li p {
    margin-bottom: 0;
}

.f-vertical {
    display: flex;
    align-items: center;
}

.cropped-screenshot {
    display: block;
    height: 16rem;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #2238;
    border-radius: .25rem;
}

.journal-table table td:nth-of-type(1),
.journal-table table td:nth-of-type(2) {
    width: 10rem;
}

.journal-table table td:nth-of-type(3),
.journal-table table td:nth-of-type(4) {
    width: 4rem;
}

.vitrine {
    display: grid;
    grid: 2 2;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.vitrine .vitrine-entry {
    border-radius: 4px;
    border: 1px solid #0002;
    height: 9rem;
    display: flex;
    align-items: end;
    padding: 12px;
    box-shadow: 0 0 10px #0003;
}

.vitrine .vitrine-entry.vitrine-accotron {
    background: url(https://evrim.zone/static/screenshots/accotron-timeline.png);
    background-origin: border-box;
    background-position: 0 center;
}

.vitrine .vitrine-entry.vitrine-accotron .vitrine-logo {
    height: 3rem;
    filter: drop-shadow(0 0 2px #fff);
}

.vitrine .vitrine-entry.vitrine-maginet {
    background: url(/static/screenshots/maginet.gif);
    background-origin: border-box;
    background-position: center;
    image-rendering: pixelated;
    padding: 20px 12px;
}

.vitrine .vitrine-entry.vitrine-maginet .vitrine-logo {
    height: 40px;
    filter: drop-shadow(0 0 12px #212529);
    image-rendering: pixelated;
}

.vitrine .vitrine-entry.vitrine-electrobillion {
    background: url(/static/screenshots/output-zone.gif);
    background-origin: border-box;
    background-position: center;
    background-size: cover;
}

.vitrine .vitrine-entry.vitrine-electrobillion .vitrine-logo {
    height: 60px;
    filter: drop-shadow(0 0 12px #212529);
}

.vitrine .vitrine-entry.vitrine-batch2sepa {
    background: url(https://batch2sepa.eu/static/instructions/overview.png);
    background-origin: border-box;
    background-position: center;
}

.vitrine .vitrine-entry.vitrine-batch2sepa .vitrine-logo {
    height: 3rem;
    filter: drop-shadow(4px 2px 2px #fff);
}

@media (max-width: 576px) {
    .vitrine {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -15rem;
        height: 100vh;
        z-index: 99;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile {
        display: none;
    }
}