/* starting here: https://github.com/getpelican/pelican-themes/blob/master/simple-bootstrap/static/style.css */
/* https://github.com/tcarwash/blue-penguin-dark/blob/ff9d0cc4ea74b0197238d779e7ba62411875b71c/static/css/main.css */

/* Set up some basic things, these are mostly in alpha-order */

:root {
    --main-bg-color: #1c2833;
    --code-bg-color: #17202a;
    --accent-color: #C7254E;
    --main-fg-color: #BBB;
    --tab-bg-hover: var(--code-bg-color);
    --info-bg-color: var(--code-gb-color);
    --link-color: #15A9DB;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    /* margin: 0; */
    padding: 0;
    border: 0;
    color: #BBB;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

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

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

article#content {
    height: 100%;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

body {
    background-color: var(--main-bg-color);
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
    padding: 0;
}

/* code {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-sizing: border-box;
    background-color: var(--code-bg-color);
    color: var(--accent-color);
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 12.6px;
    padding: 2px 4px;
} */

code {
    color: var(--accent-color);
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 12.6px;
}

em {
    font-style: italic;
}

footer {
    border-top: 1px solid var(--main-fg-color);
    color: var(--main-fg-color);
    line-height: 2.5em;
    margin: 3em 0;
}

footer p {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    line-height: 1em;
    margin: 1em 0;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.3em;
}

h3 {
    font-size: 1.1em;
}

img {
    max-width: 95%;
    max-height: auto;
    display: block;
    margin-left: 0.5em;
    margin-right: 0.5em;
}

img.bookshelf {
    float: left;
    margin-bottom: 0.5em;
    margin-left: 0em;
}

img.center {
    margin-left: auto;
    margin-right: auto;
}

li {
    padding-bottom: 0.5em;
}

ol {
    list-style: outside decimal;
}

ol#post-list {
    list-style: none;
    padding: 0 0;
}

pre {
    padding: .8em;
    font-size: 12.6px;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    line-height: 18px;
    overflow: auto;
    background-color: var(--code-bg-color);
}

pre code {
    color: var(--main-fg-color);
    padding: 0;
}

strong {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 1em 0;
}

td {
    padding-left: 0.25em;
    padding-right: 0.25em;
}

td.nowrap {
    white-space: nowrap;
}

thead {
    border-bottom: 1px solid var(--main-fg-color);
}

ul {
    list-style-type: outside disc;
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.body,
.header,
.marketing,
.footer {
    margin: auto;
    padding: 0 10px;
}

a.btn {
    background-color: var(--link-color);
    padding: .6em .6em;
    /* font-size: .8em; */
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border: none;
    border-radius: .25em;
}

a.btn:hover {
    background-color: #fff;
    color: var(--link-color);
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

/* Custom page header */
.header {
    border-bottom: 1px solid var(--main-fg-color);
}

/* Make the masthead heading the same height as the navigation */

.header h1 {
    font-size: 2em;
    text-align: center;
}

.header h3 {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 40px;
    padding-bottom: 19px;
}

.hentry {
    border-bottom: 1px solid var(--main-fg-color);
}

.hentry footer {
    border: none;
    /* border: 1px solid blue; */
    margin: 0;
}

.pagination {
    margin: 4% 8% 4% 8%;
    height: 20px;
}

section#container {
    height: 100%;
}

section#adspace {
    display: none;
}

section#content {
    height: 100%;
}

.tags a {
    background-color: var(--link-color);
    /* color: var(--main-fg-color); */
    color: #fff;
    padding: .2em .6em .2em;
    /* font-size: .74em; */
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.tags a:hover {
    background-color: #fff;
    color: var(--link-color);
}

@media print {
    * {
        background: #fff;
    }

    header,
    footer,
    nav {
        display: none;
    }
}

/* handle desktops */
@media screen and (min-width: 992px) {
    article#content {
        border-right: 1px solid var(--main-fg-color);
        height: 100%;
    }

    body {
        width: 1140px;
    }

    section#container {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr 346px;
    }

    section#container pre {
        max-width: 768px;
    }

    section#adspace {
        display: inline;
        height: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    section#adspace ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    section#content {
        border-right: 1px solid var(--main-fg-color);
        height: 100%;
    }

}

/* @media screen and (max-width: 900px), print {
    #wrapper {
        margin: 0;
        padding: 1em;
    }
    .date {
        width: 100%;
        margin: 0 0 .5em 0;
    }
    .post {
        margin: 0 0 4.5em 0;
    }
    .post pre,
    .post code {
        white-space: pre-wrap;
    }
    .archives {
        margin: 0 0 1.5em 0 !important;
    }
    nav ul {
        margin: 0 0 1em 0;
    }
} */

/* Responsive: Portrait tablets and up
@media screen and (min-width: 768px) {

    .header,
    .marketing,
    .footer {
        padding-left: 0;
        padding-right: 0;
    }

    .header {
        margin-bottom: 30px;
    }

    .jumbotron {
        border-bottom: 0;
    }
} */

@page {
    margin: 1.5cm;
}