html {
    background: url("../images/background1.gif") repeat;
}

body {
    font-family: serif;
}

#pageWrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: .5em;
}

#leftSide {
    width: 180px;
    margin: 36px 0;
    text-align: center;
}

#rightSide {
    min-height: calc(100%-36px);
    width: 800px;
    margin: 36px 0;
    background: #c0c1c2;
    box-shadow: 2px 2px 0px #000;
    border: 1px solid #000;
}

#website-title {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: inset 1px 1px 0px #FFF, 0px 1px 0px #000;
    border: 1px solid #000;
    margin: 0em .4em;
    font-style: italic;
}

header img {
    max-width: 10em;
}

#macos-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: .1em .4em;
}

#macos-title .label {
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0em .4em;
}

#macos-title .separator {
    height: 15px;
    flex-grow: 1;
    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzIDEyIj48cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBzdHlsZT0iZmlsbDojZmZmOyBzdHJva2Utd2lkdGg6MHB4OyIvPjxyZWN0IHk9IjEiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIHN0eWxlPSJmaWxsOiM3ODc4Nzg7IHN0cm9rZS13aWR0aDowcHg7Ii8+PHJlY3QgeT0iMiIgd2lkdGg9IjMiIGhlaWdodD0iMSIgc3R5bGU9ImZpbGw6I2ZmZjsgc3Ryb2tlLXdpZHRoOjBweDsiLz48cmVjdCB5PSIzIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBzdHlsZT0iZmlsbDojNzg3ODc4OyBzdHJva2Utd2lkdGg6MHB4OyIvPjxyZWN0IHk9IjQiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIHN0eWxlPSJmaWxsOiNmZmY7IHN0cm9rZS13aWR0aDowcHg7Ii8+PHJlY3QgeT0iNSIgd2lkdGg9IjMiIGhlaWdodD0iMSIgc3R5bGU9ImZpbGw6Izc4Nzg3ODsgc3Ryb2tlLXdpZHRoOjBweDsiLz48cmVjdCB5PSI2IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBzdHlsZT0iZmlsbDojZmZmOyBzdHJva2Utd2lkdGg6MHB4OyIvPjxyZWN0IHk9IjciIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIHN0eWxlPSJmaWxsOiM3ODc4Nzg7IHN0cm9rZS13aWR0aDowcHg7Ii8+PHJlY3QgeT0iOCIgd2lkdGg9IjMiIGhlaWdodD0iMSIgc3R5bGU9ImZpbGw6I2ZmZjsgc3Ryb2tlLXdpZHRoOjBweDsiLz48cmVjdCB5PSI5IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBzdHlsZT0iZmlsbDojNzg3ODc4OyBzdHJva2Utd2lkdGg6MHB4OyIvPjxyZWN0IHk9IjEwIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBzdHlsZT0iZmlsbDojZmZmOyBzdHJva2Utd2lkdGg6MHB4OyIvPjxyZWN0IHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBzdHlsZT0iZmlsbDojNzg3ODc4OyBzdHJva2Utd2lkdGg6MHB4OyIvPjwvc3ZnPg==") repeat-x;
    background-size: contain;
    display: block;
}

main {
    background: #FFF;
    border: 1px solid black;
    box-shadow: 1px 1px 0px #FFF, -1px -1px 0px #000;
    margin: 0em .4em;
    margin-bottom: .4em;
    position: relative;
    padding: 0em 1em;
}

.tag {
    border: 3px solid blue;
    box-shadow:  3px 3px 0 black;
    padding: 0 3px;
    margin-left: 3px;
    margin-right: 3px;
}

.tag:hover {
    border-color: lightblue;
}

.tag:active {
    box-shadow: none;
}

.blogpost-menu {
    list-style-type:square;
}

.blogpost-menu li {
    margin: 5px 0;
    padding: 5px 5px;
    border: 1px rgb(24, 53, 115) dashed;
}

.blogpost-menu li img {
    max-height: 24px;
    max-width: 24px;
    margin: 3px;
    float: right;
    position: relative;
    bottom: 5px;
}

/* --- Ghost theme additions -------------------------------------------------
   Everything above is the original stylesheet, untouched apart from the
   background1.gif path. Everything below covers the bits Ghost renders that
   the old static generator never produced.
--------------------------------------------------------------------------- */

/* The old markup used .text-red for "this post was updated" but Tailwind never
   generated a `text-red` class, so it only ever rendered bold. Uncomment to get
   the red that the class name was clearly after.
.text-red { color: #b00; }
*/

/* Same boxed treatment as #rightSide: a grey shell with a drop shadow, wrapped
   around an inset white panel. */
/* One per menu: {{navigation}} and {{navigation type="secondary"}} both render
   partials/navigation.hbs, so this is a class rather than an id. */
.sidebar-nav {
    background: #c0c1c2;
    box-shadow: 2px 2px 0px #000;
    border: 1px solid #000;
    margin-bottom: .6em;
}

.sidebar-nav ul {
    background: #FFF;
    border: 1px solid #000;
    box-shadow: 1px 1px 0px #FFF, -1px -1px 0px #000;
    margin: .4em;
    padding: .3em .4em;
    /* bullets inside the li so the separator spans the full panel width */
    list-style: square inside;
    text-align: left;
}

.sidebar-nav li {
    padding: .25em .1em;
    /* same rule the post list uses for its item borders */
    border-bottom: 1px rgb(24, 53, 115) dashed;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

/* stack the sidebar's decorative gifs rather than letting them flow inline.
   The > keeps this off the nav links, which are also anchors inside #leftSide. */
#leftSide img {
    display: block;
    margin: 0 auto .5em;
}

#leftSide > a {
    display: block;
}

.post-title {
    margin-bottom: 0;
}

.post-meta {
    margin-top: .2em;
    font-size: .9em;
}

.post-feature-image {
    display: block;
    margin: .5em auto;
}

.pagination {
    text-align: center;
    padding: .5em 0;
}

.pagination .page-number {
    margin: 0 .5em;
}

.back-home {
    text-align: center;
}

/* Ghost's editor emits <img> and card markup at full source width; the layout
   column is a fixed 800px, so keep media inside it. */
main img,
main video,
main iframe {
    max-width: 100%;
    height: auto;
}

.kg-card {
    margin: 1em 0;
}

.kg-image-card figure,
.kg-embed-card {
    margin: 0;
    text-align: center;
}

.kg-card figcaption {
    text-align: center;
    font-size: .85em;
    font-style: italic;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-bookmark-card a.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
    border: 1px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: #c0c1c2;
}

.kg-bookmark-content {
    padding: .5em;
    flex-grow: 1;
}

.kg-bookmark-title {
    font-weight: bold;
}

.kg-bookmark-thumbnail img {
    max-height: 8em;
}

blockquote {
    border-left: 4px solid #000;
    margin-left: 0;
    padding-left: .8em;
}

pre {
    overflow-x: auto;
    border: 1px solid #000;
    box-shadow: inset 1px 1px 0 #FFF;
}

table {
    border-collapse: collapse;
}

table td,
table th {
    border: 1px solid #000;
    padding: .2em .4em;
}

/* Ghost lets the editor mark a card as wide or full-bleed. The column is a
   fixed 800px with 1em of padding, so "wide" fills the padding and "full"
   breaks out of it entirely. */
.kg-width-wide img,
.kg-width-wide video {
    width: 100%;
}

.kg-width-full {
    margin-left: -1em;
    margin-right: -1em;
}

.kg-width-full img,
.kg-width-full video {
    width: 100%;
}

/* Ghost's font settings feed these variables; the fallbacks are the original
   serif look. */
body {
    font-family: var(--gh-font-body, serif);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading, serif);
}
