html, body {
    height: 100%;
}

body {
    overflow-y: scroll;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    margin-top: 0;
    margin-bottom: 0;
}

.container {
    position: relative;
    min-height: 100%;
}

.container > *:first-child {
    padding-top: 2rem;
    margin-top: 0;
}

.container > .space {
    padding-bottom: 3rem;
}

.tree {
    font-size: .9rem;
    border: 1px solid #e0e0e0;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tree li {
    padding: 1em;
}

.tree .entry {
    position: relative;
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.tree .entry a {
    color: #333;
}

.tree .entry a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.tree .entry a {
    text-decoration: none;
}
.tree .entry a:hover {
    text-decoration: underline;
    text-underline-position: under;
}

article.readme, .tree, .blob-view, .location {
    border-radius: 4px;
    margin: 2em auto;
    max-width: 970px;
}

article.readme, .blob-view {
    border: 1px solid #e0e0e0;
}

.location {
    color: #aaa;
}
.location > * {
    margin: 0 .1em;
    color: #333;
}

.location a {
    color: #16b;
    text-decoration: none;
}
.location a:hover {
    text-decoration: underline;
}

.location *:nth-child(1) {
    font-weight: bold;
    filter: brightness(80%);
}

.header {
    display: grid;
    grid-template-columns: 1fr min-content;
    grid-gap: 4px;
    align-items: center;
    padding: 1em;
    font-size: .9rem;
    background: #fafafa;
    color: #444;
    overflow-x: auto;
}

.last {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 4px;
    margin: -1em auto;
}

.btn {
    display: inline-block;
    font-size: 10pt;
    background: #eee;
    border: 1px solid #ddd;
    text-decoration: none;
    color: black;
    cursor: pointer;
    padding: .5em 1.5em;
    border-radius: 4px;
    min-width: 3em;
    text-align: center;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.icon {
    margin: auto 1em auto 0;
    width: 16px;
    height: 16px;
}

.content {
    padding: 1em;
    border-top: 1px solid #f0f0f0;
}

.content .content-img {
    display: flex;
    justify-content: center;
}
.content .content-img img {
    max-width: 100%;
}

.content pre {
    padding: 0 2em;
    overflow-x: auto;
}

.markdown {
    color: #333;
    font-size: .9rem;
    padding: 2em;
}
.markdown h1 {
    font-size: 1.5rem;
    margin: 1em 0;
    padding-bottom: .3em;
    border-bottom: 1px solid #eee;
}
.markdown h2 {
    font-size: 1.3rem;
    margin: 1em 0;
    padding-bottom: .3em;
    border-bottom: 1px solid #eee;
}
.markdown p {
    line-height: 1.5;
}
.markdown img {
    vertical-align: middle;
    max-width: 100%;
}
.markdown a {
    color: #16b;
    text-decoration: none;
}
.markdown a:hover {
    text-decoration: underline;
}

.markdown pre {
    background-color: #fff;
    font-size: .8rem;
    padding: .8em 1em;
    border: 1px solid #eee;
    border-radius: 4px;
}
.markdown pre code {
    background-color: inherit;
    padding: 0;
}
.markdown code {
    background-color: #f2f2f2;
    border-radius: 4px;
    padding: 2px 4px;
}
.markdown p code {
    font-size: .88em;
}
.markdown table {
    border-spacing: 0;
    border-collapse: collapse;
}
.markdown td, .markdown th {
    padding: .5em 1em;
    border: 1px solid #eee;
}

.footer {
    position: absolute;
    color: #333;
    bottom: 0;
    width: 100%;
    height: 3rem;

    margin: auto;
    text-align: center;
    font-size: .8rem;
}

.footer a {
    color: #16b;
}
