code[class*=language-] {
    font-size: .75em !important;
    max-height: 40em !important;
}

.site-wrapper {
    max-width: 1024px;
    margin: auto;
}

.site-header {
    margin-bottom: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-social a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color:#000 !important;
    margin-right: 5px;
}

body.journal {
    background-color: #eee;
}

.journal a {
    text-decoration: none;
    color: #0085a1;
}

.journal a img {
    max-width: 100%;
    padding: 2px;
}

.journal table {
    margin: 0 auto;
    border-collapse: collapse;
    text-align: center;
}

.journal table caption, .journal figure caption, .journal figure p {
    caption-side: bottom;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

.journal table th,.journal table td {
    border: 1px solid;
    padding: 0 0.4rem;
}
.journal tbody th {
    font-weight: normal;
}
.journal-entry code {
    background-color: #e6f2ff;
}

.journal-index {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin-bottom: 1rem;
}

div.journal-index-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 450px;
    display: flex;
    flex-direction: column;
    margin: 5px;
    background-color: #fff;
}

a.journal-index-card {
    display: flex;
    height: 200px;
}
.journal-index-card img {
    width: 240px;
    height: fit-content;
    max-height: 180px;
    margin: auto;
}

.jf-center {
    text-align: center;
}

.jf-left, .jf-right {
    width: 200px;
    text-align: center;
}

.jf-left {
    float: left;
    margin-right: 1em;
    clear: left;
}

.jf-right {
    float: right;
    margin-left: 1em;
    clear: right;
}

.jf-left img, .jf-right img {
    width: 100%;
}

.je-series-toc {
    margin: 0 2em 2em 2em;
}

.je-series-toc ol {
    margin-bottom: 0;
}

a.active {
    color: #000;
}

.j-childlist .card {
    height: 300px;
    min-width: 300px;
    max-width: 300px;
    margin: 5px;
}

.j-childlist .card img {
    height: auto;
}

.j-child {
    text-align: center;
    color: black;
    padding: 2px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.j-child.bg-light {
    opacity: 0.6;
}

.j-child.j-text-backdrop {
    background-color: #fff9be;
    opacity: 0.95;
}

.j-child .card-date {
    margin: 0px;
    font-size: small;
}

.j-child .card-title {
    font-variant: small-caps;
    font-weight: bold;
}

.j-child .card-text {
    flex-grow: 100;
}

.jn {
    margin: 0 1rem;
    padding: 0;
    border: 1px solid;
}

.jn-header {
    padding: 0 1rem;
    margin: 0;
    border-bottom: 1px solid;
    background-color: #eee;
}

.jn-text {
    font-size: 80%;
    line-height: initial;
    padding: 0 1rem;
}

.jn-note {

}

.jn-warning {

}

.jn-error {

}

.jn-error .jn-header {
    background-color: red;
    font-weight: bolder;
}

.jn-stdout {
    margin: inherit;
    border: 0;
    border-top: 1px dashed;
    border-bottom: 1px dashed;
    font-family: monospace;
}
    
label.wagtailcodeblock {
    font-style: italic;
    font-size: small;
    margin-bottom: 0;
}

.journal-entry {
    background-color: white;
    padding: 0;
}

.je-title {
    background-color: #e9eb63;
    color: black;
    padding: 0.5em;
    margin: 0;
    font-size: 40px;
    font-weight: 400;
}

.je-subtitle {
    margin-top: 0.4em;
    margin-bottom: 2em;
    font-size: 28px;
    font-weight: 400;
}

.je-titleblock {
    text-align: center;
}

.je-content {
    margin: 1em;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 20px;
    line-height: 26px;
}

.je-footer {
    padding: 1em 2em 1em 2em;
}

.je-image {
    overflow: auto;
    height: auto;
}

div.code-toolbar {
    clear: both;
}

div.code-toolbar>pre {
    max-height: 30em;
}