:root {
    --base03:    #002b36;
    --base02:    #073642;
    --base01:    #586e75;
    --base00:    #657b83;
    --base0:     #839496;
    --base1:     #93a1a1;
    --base2:     #eee8d5;
    --base3:     #fdf6e3;
    --yellow:    #b58900;
    --orange:    #cb4b16;
    --red:       #dc322f;
    --magenta:   #d33682;
    --violet:    #6c71c4;
    --blue:      #268bd2;
    --cyan:      #2aa198;
    --green:     #859900;

    --emph: var(--base01);
    --text: var(--base00);
    --comments: var(--base1);
    --background-hi: var(--base2);
    --background: var(--base3);
}

@media (prefers-color-scheme: dark) {
    :root {
        --emph: var(--base1);
        --text: var(--base0);
        --comments: var(--base01);
        --background-hi: var(--base02);
        --background: var(--base03);
    }
}

@media print {
    :root {
        --emph: #000;
        --text: #000;
        --comments: #000;
        --background-hi: #fff;
        --background: #fff;

        --yellow:    #000;
        --orange:    #000;
        --red:       #000;
        --magenta:   #000;
        --violet:    #000;
        --blue:      #000;
        --cyan:      #000;
        --green:     #000;
    }
}

* {
    padding: 0;
    margin: 0;
}

body {
    line-height: 1.75em;
    color: var(--text);
    background-color: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next",
    "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
    font-weight: 400;
}

.shortdate {
    display: inline;
}

a:link, a:visited
{
    text-decoration: none;
}

a { text-decoration: none; }

div#content
{
    max-width: 805px;
    margin:auto;
    position: relative;
    display: block;
    padding-top: 30px;
    padding-bottom: 90px;
}

img, .screenshots img.screenshot
{
    max-width: 90%;
    height:auto;
    margin: 0;
    padding: 0;
    display: inline;
    float: left;
    vertical-align: middle;
}

#featuredprojects img
{
    /* image size should be 250 * 180  */
    width: 32%;
    margin: 0;
    padding: 0;
    display: inline;
    float: left;
    vertical-align: middle;
    padding-left: 3px;
}

.screenshots img.screenshot {
    padding: 3px;
}

.screenshots {
    display: inline-block;
    float: none;
}

.post img {
    display: block;
    float: none;
}

.post {
    margin-bottom: 20px;
}


h2.latestpostsheader, a.see-more, .post, .featuedimages, #intro {
    /* temporary to fix mobile tight view */
    padding-left: 12px;
    padding-right: 12px;
}

h2.latestpostsheader {
    padding-top: 40px;
}

#featuredprojects h2.latestpostsheader {
    padding-top: 0;
}

.firstcontent {
    margin-bottom: 80px;
}

.to-top, .footerbuttons {
    text-align: center;
}

.to-top {
    margin-bottom: 40px;
}

.footerbuttons {
    padding-top: 50px;
    font-size: 1.2em;
}

.footerbuttons a {
    padding-left: 0.5em;
    padding-right: 0.5em;
    font-size: 1em;
}

.footerbuttons a i
{
    -webkit-transition: -webkit-transform .1s ease-out;
    transition: transform .1s ease-out;
}

.footerbuttons a:hover i
{
    -ms-transform: scale(2.3, 2.3); /* IE 9 */
    -webkit-transform: scale(2.3, 2.3); /* Safari */
    transform: scale(2.3, 2.3);
}

.featured {
    display: inline-block;
}

#header {
    display: block;
    padding-bottom: 40px;
}

#header h1 {
    font-size: 2em;
    display: inline-block;
}

h1 { font-size: 1.7em; }
h2 { font-size: 1.5em; color: var(--orange); }
h3 {
    font-size: 1.1em;
    text-transform: uppercase;
    font-weight: bold;
}

a i.fa-external-link {
    font-size: 0.6em;
    vertical-align: super;
    padding-right: 0.2em;
}

#header #toplinks {
    display: block;
}

#header #mainlogo {
    padding: 6px;
    display: inline-block;
}

code {
    font-family: monaco, "Consolas", "Lucida Console", monospace;
}


.hidden {
    display: none;
}

a:hover .hidden {
    display: inline;
}

.projectlinks a {
    padding-right: 0.6em;
    vertical-align: middle;
}

.projectlinks .fa {
    padding-right: 0.3em;
}


.projectlinks a .fa {
    -webkit-transition: -webkit-transform .1s ease-out;
    transition: transform .1s ease-out;
}

.projectlinks a:hover .fa {
    -ms-transform: scale(2.0, 2.0); /* IE 9 */
    -webkit-transform: scale(2.0, 2.0); /* Safari */
    transform: scale(2.0, 2.0);
}

#toplinks {
    text-transform: lowercase;
}

.main {
    text-transform: capitalize;
    font-size: 2em;
}

.previewheader {
    font-size: 1.5em;
}

.title {
    padding-bottom: .3em;
    width: 80%;
    display: block;
    vertical-align: middle;
}

.title::after {
    content: "";
    clear: both;
    display: table;
}

.title .header {
    float: left;
}

.title .right {
    float: right;
    display: inline;
}
.main .fa {
    font-size: .5em;
}

a img.screenshot {
    -webkit-transition: -webkit-transform .1s ease-out;
    transition: transform .1s ease-out;
}

a:hover img.screenshot {
    -ms-transform: scale(1.2, 1.2); /* IE 9 */
    -webkit-transform: scale(1.2, 1.2); /* Safari */
    transform: scale(1.2, 1.2);
}

.title a .fa {
    -webkit-transition: -webkit-transform .2s ease-out;
    transition: transform .2s ease-out;
}

.title a:hover .fa {
    -ms-transform: scale(2.0, 2.0); /* IE 9 */
    -webkit-transform: scale(2.0, 2.0); /* Safari */
    transform: scale(2.0, 2.0);
}


div.bigimage {
    width: 100%;
}

div.bigimage img.bigimage {
    width: 100%;
    max-width: 100%;
}

.lntd pre.chroma
{
    padding-left: 0;
}

pre.chroma
{
    border: 0;
    padding-left: 20px;
    line-height: 132%;
}

.emoticon {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-size: contain;
}


.smiley {
    background-image: url(/img/face-smile.png);
}

.wink {
    background-image: url(/img/face-wink.png);
}

.grin {
    background-image: url(/img/face-grin.png);
}

ul.pagination {
    display: block;
    text-align: center;
    padding-bottom: 60px;
}

.pagination li {
    display: inline;
    padding: 10px;
}

.pagination li:first-child, .pagination li:last-child {
    padding: 0;
}

.pagination li {
    display: inline;
    padding: 10px;
}

.pagination li:first-child, .pagination li:last-child {
    padding: 0;
}

a {
    color: var(--blue);
}

a:hover {
    color: var(--violet);
}

.pagination .disabled a
{
    color: var(--comments);
}

.pagination .active a
{
    color: var(--text);
}


p code
{
    font-size: 0.9em;
    padding: 0.1em;
}


blockquote { font-style: normal; }
blockquote em { font-style: italic; }

/* based on https://codepen.io/cliftwalker/pen/XJaEXY */

blockquote
{
    color: var(--comments);
    padding: 0.5em 2.5em 0.5em 2.5em;
    border-left: 0.35em solid var(--magenta);
    line-height: 1.3;
    position: relative;
    background: var(--background-hi);
}
  
blockquote::before
{
    font-family: Arial;
    content: "\201C";
    color: var(--comments);
    font-size :4em;
    position: absolute;
    left: 10px;
    top: -4px;
}

blockquote::after
{
    content: '';
}

blockquote span
{
    display:block;
    color: var(--text);
    font-style: normal;
    font-weight: bold;
    margin-top:1em;
}


hr
{
    border: 0;
    height: 1px;
    width: 230px;
    position: relative;
    margin: 30px auto;
}

hr
{
    background: var(--comments);
}

hr:before, hr:after
{
    content: "~";
    color: var(--comments);
    display: inline-block;
    position: absolute;
    font-size: 20px;
    margin: 0 0 0 -3px;

    top: -15px;
}

hr:before
{
    left: -18px;
}

hr:after
{
    right: -18px;
}

p
{
    position: relative;
}

hr + p::before
{
    content: "";
    width: 6px;
    height: 6px;
    background: var(--text);
    display: inline-block;
    border: 6px solid var(--background);
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 50%;
    margin: 0 0 0 -6px;
}


nav#TableOfContents ol li
{
    list-style-type: decimal-leading-zero;
    padding-left: 0.4em;
    margin-left: 0.4em;
}


@media print {

    a:link {
        color: #0000cc;
        text-decoration: underline;
    }
    a:visited {
        color: #0000cc;
        text-decoration: underline;
    }

    body, div#content, p {
        font-family: Georgia, Times, serif;
        font-size: 12pt;
    }

    div#content {
        max-width: 100%;
        margin: auto;
        position: inherit;
        display: inherit;
        padding-top: inherit;
        padding-bottom: inherit;
    }

    blockquote {
        border: none;
    }

    header#header { display: none }
    footer { display: none }
}