/* Reset */
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,
ol,
ul,
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 {
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Clearfix */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
.hidden {
    display: none;
}
.large-hidden {
    display: none;
}

/* Spacing */
.post h1,
h3,
h4,
h5,
p,
.post-body ul,
ol,
pre {
    margin-bottom: 20px;
}

/* Base */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
}

body {
    font: 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol";
    color: #666;
    background-color: #efefef;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    fill: currentColor;
    padding-top: 40px;
}

.header-main-links {
    display: inline-block;
}
.footer-main-links {
    display: none;
}

h1 {
    font-size: 24px;
    color: #222;
    font-weight: bold;
}

h2 {
    font-size: 19px;
    line-height: 1.3em;
    color: #666;
}

.profile #wrapper {
    padding: 100px 40px 0px;
    max-width: 800px;
    margin: 0 auto;
}

.profile #header {
    /* padding-bottom: 30px; */
    text-align: center;
    position: relative;
}

.profile #avatar,
.post #avatar {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.profile h1 {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4em;
    color: #1a202c;
}

.profile h2 {
    font-size: 20px;
    font-weight: 500;
    color: #aaa;
    /* height: 64px; */
    font-style: normal;
}

.shadow {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px 0px;
}

nav.main-nav {
    background: white;
    height: 64px;
    display: flex;

    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 100;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
}

.main-nav .home a.title {
    padding-left: 20px;
    font-size: 22px;
    font-weight: 600;
    color: black;
}

.main-nav .user-actions {
    color: #999;
}

.main-nav .links span.link {
    margin-right: 20px;
    font-size: 14px;
}

.pill {
    padding: 4px;
    background-color: #ddd;
    color: black;
    border-radius: 4px;;
    font-size: 10px;
}

#post-list .pill {
    font-size: 12px;
}

.main-nav a.cta {
    background: #5badf0;
    color: #fff;
    margin-left: 12px;
    display: inline;
    padding: 8px 12px;
    border-radius: 3px;
}

#wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px;
}

#wrapper.home {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 40px 20px 40px;
    margin-top: 40px;
}

.home #avatar {
    float: right;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Typography */
/*Accent color*/
a,
#title,
#post-list a:hover,
#post-list a:hover h2,
#post-list li:hover .dates,
#title:hover {
    text-decoration: none;
    color: #5badf0;
    color: #5694f1;
}

p a, strong.external {
    color: #5694f1;
}

/*Transitions*/
a,
#post-nav a,
#post-list a {
    -webkit-transition: all 0.15s ease;
    -moz-transition: all 0.15s ease;
    -ms-transition: all 0.15s ease;
    -o-transition: all 0.15s ease;
    transition: all 0.15s ease;
}

ul,
ol {
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}
ul {
    list-style-type: disc;
}
ol {
    list-style: decimal;
}
li {
    list-style-position: outside;
    margin-left: 20px;
}

/* Line Height */
#post-body,
p,
td,
li,
.project-description {
    font-size: 17px;
    line-height: 1.7;
    color: #1a202c;
}

b,
strong {
    font-weight: 700;
    color: #1e2025;
}
em,
i {
    font-style: italic;
}

#title {
    display: inline-block;
    line-height: 100%;
    font-weight: 500;
    font-size: 19px;
    margin: 0;
    padding-bottom: 20px;
}

.description {
    float: right;
    font: italic 14px/1.4em Georgia, serif;
    color: #aaa;
}

.home h1 {
    font-size: 30px;
    color: #222;
    font-weight: bold;
}

.home h2 {
    font: italic 19px/1.3em Georgia, serif;
    color: #bbb;
}

.post header {
    text-align: center;
}

.post h1 {
    margin-bottom: 0px;
    color: #222;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4em;
}

.post h2 {
    margin-bottom: 0px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5em;
    color: #111;
}

.post h2.subtitle {
    font: italic 19px/1.3em Georgia, serif;
    color: #bbb;
}

.post h2.headline {
    font-weight: normal;
    font-size: 13px;
    line-height: 1.5em;
    margin: 5px 0 0px 0;
    color: #999;
    font-size: 13px;
    text-transform: none;
    display: inline-block;
    line-height: 2em;
}

#post-list h2,
small {
    font-weight: normal;
    font-size: 13px;
    line-height: 1.5em;
    color: #999;
    max-width: 400px;
    margin-top: 2px;
}

h3,
h4,
h5 {
    color: #1a202c;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5em;
}
h4 {
    font-size: 16px;
    font-weight: bold;
}
h5 {
    font-size: 15px;
    font-weight: bold;
}

h6 {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 6px;
}

p.small {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    text-align: center;
    margin-top: 20px;
}

blockquote {
    padding: 15px;
    background-color: #dedede;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px 0px;
}

blockquote > p:last-child {
    margin-bottom: 0px;
}

blockquote {
    margin-bottom: 20px;
}

hr {
    display: block;
    border: none;
    height: 1px;
    margin: 40px auto;
    background: #ddd;
}

span.code {
    font-family: Menlo, Monaco, "Courier New", Courier, monospace;
    background-color: #ddd;
    font-size: 14px;
}

h1 code {
    font-size: 22px;
    font-weight: bold;
}

table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.5em;
}

th,
td {
    text-align: left;
    padding-right: 20px;
    vertical-align: top;
}

table td,
td {
    border-spacing: none;
    border-style: solid;
    padding: 10px 15px;
    border-width: 1px 0 0 0;
    color: #1a202c;
}

tr > td {
    border-top: 1px solid #eaeaea;
}

tr:nth-child(odd) > td {
    background: #ddd;
}

thead th,
th {
    text-align: left;
    padding: 10px 15px;
    height: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #1a202c;
    border-bottom: 1px solid #dadadc;
    cursor: default;
    white-space: nowrap;
}

img {
    max-width: 100%;
    height: auto;
    max-height: auto;
    /* border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px 0px;
    background-color: white; */
}

#badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    height: 48px;
    width: 48px;
}

#archive-list {
    margin-top: 100px;
}

#post-list {
    margin-bottom: 0;
}

#post-list li,
#archive-list li,
.separator {
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

#post-list li,
#archive-list li {
    padding-bottom: 20px;
    list-style-type: none;
    margin-bottom: 0;
    margin-left: 0px;
}

#post-list li:last-child {
    border-bottom: 1px solid #ccc;
}

#post-list a {
    color: #1a202c;
    display: block;
    font: bold 17px/1.7 "Helvetica Neue", helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 17px;
    line-height: 1.7em;
}

#post-list a.tweet p {
    font-weight: normal !important;
}

#post-list a.tweet:hover p {
    color: #5694f1 !important;
}

#post-list .dates {
    float: right;
    position: relative;
    top: 1px;
    font: 500 15px/1.8 "Helvetica Neue", helvetica, Arial, sans-serif;
    color: #999;
    display: inline;
    text-align: right;
}

#post-list-footer {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 100px;
}

#archive-link {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 10px 6px;
    box-shadow: 0 0 0 1px hsla(207, 83%, 80%, 1);
}

#archive-link:hover {
    background: #5694f1;
    color: #fff;
    box-shadow: 0 0 0 1px #5694f1;
}

#archive-link span {
    position: relative;
    top: 0;
    font-size: 17px;
}

#footer {
    padding: 40px 0 0 0;
}

/* Post Page */
/* .post {
	margin: 80px 0 0 0;
} */

#post-meta {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    margin-top: 40px;
    color: #444;
    border-bottom: 1px solid #eee;
}

#post-meta div span {
    color: #aaa;
    font-weight: 500;
    display: block;
}

#post-meta div span.dark {
    color: #1e2025;
}

#post-meta div {
    margin: 0 25px 0 0;
    float: left;
}

#sharing {
    float: right;
    margin: -2px;
}

#sharing a {
    font-size: 20px;
    font-size: 23px;
    margin-left: 1px;
    margin-top: 4px;
    color: #d4d4d4;
    display: inline-block;
    vertical-align: middle;
}

#sharing a:hover {
    /*color: #444;*/
    opacity: 0.8;
}

/* Post Navigation */
#post-nav {
    /* text-align:center; */
    font-size: 13px;
    font-weight: 500;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

#post-nav span {
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    -ms-transition: all 0.1s linear;
    -o-transition: all 0.1s linear;
    transition: all 0.1s linear;
    position: relative;
}

#post-nav span .arrow {
    position: relative;
    padding: 1px;
}

h1.archive {
    margin-bottom: 0px;
}

h2.month {
    width: 100%;
    font: bold 13px/1 "Helvetica Neue", helvetica, Arial, sans-serif;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#archive-list li:last-child {
    margin-bottom: 0;
}

#archive-list a {
    display: block;
    font: bold 17px/1.7 "Helvetica Neue", helvetica, Arial, sans-serif;
    color: #333;
}

#archive-list .dates {
    float: right;
    position: relative;
    top: 1px;
    font: 300 17px/1.7 "Helvetica Neue", helvetica, Arial, sans-serif;
    color: #bbb;
}

#archive-list li a:hover,
#archive-list li:hover .dates {
    color: #5694f1;
}

#post-meta img.avatar {
    height: 36px;
    width: 36px;
    float: left;
    border-radius: 50%;
    margin-top: 3px;
    margin-right: 20px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #eee;
}

#post-list.archive.readmore h3 {
    font: 400 20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-bottom: 30px;
}

#post-list.archive.readmore a {
    font: 400 16px/1.6 "Helvetica Neue", helvetica, Arial, sans-serif;
    color: #5694f1;
}

#post-list.archive.readmore a:hover {
    opacity: 0.8;
}

#post-list.archive.readmore .dates {
    font: 300 15px/1.6 "Helvetica Neue", helvetica, Arial, sans-serif;
}
#sharing a.facebook {
    background: #4361b3;
}
#sharing a.twitter {
    background: #4fafed;
}

#sharing a {
    font-size: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    margin-left: 2px;
}

.sm-show {
    display: none;
}
.bg-show {
    display: inline;
}

/* Media Queries */
@media screen and (max-width: 1000px) {
    .main-nav .user-actions {
        display: none;
    }
}

/* Media Queries */
@media screen and (max-width: 720px) {
    body {
        padding-top: 80px;
    }

    .bg-show {
        display: none;
    }
    .sm-show {
        display: inline;
    }

    #wrapper {
        padding: 20px 20px 20px 20px;
    }
    .post {
        margin: 40px 0;
    }

    #post-list,
    #archive-list {
        margin-top: 0;
    }
    #post-meta {
        margin-top: 60px;
    }

    #title {
        font-size: 17px;
    }
    /* #post-list .dates {
        display: block;
    } */

    #post-list-footer {
        margin-top: 20px;
        padding-top: 40px;
    }

    h1 {
        font-size: 26px;
    }
    .post h2.headline {
        font-size: 13px;
    }
    .post h1 {
        font-size: 24px;
    }
    .post h2 {
        font-size: 20px;
    }

    /* div.badges { display: none; } */
    div.project small {
        padding-top: 8px;
        display: inline-block;
    }

    .header-main-links {
        display: none;
    }
    .footer-main-links {
        display: block;
        padding-top: 0px;
        padding-bottom: 40px;
    }

    .footer-main-links a {
        display: block;
        text-align: center;
        line-height: 64px;
        padding: 8px 12px;
        color: #5badf0;
        font-size: 14px;
        line-height: 1.35;
        border-radius: 3px;
        background: #ddd;
        margin-top: 8px;
    }

    .small-hidden {
        display: none;
    }
    .large-hidden {
        display: inline;
    }

    .main-nav .links {
        background-color: white;
        background-color: #efefef;
        position: fixed;
        top: 80px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        padding: 0px;
    }

    .main-nav .links-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-nav .links span.link {
        display: block;
        text-align: center;
        line-height: 44px;
        padding: 12px 0;
        font-size: 22px;
        margin: 0px;
    }

    .main-nav .links span.link:not(:last-child) {
        border-bottom: 1px solid #ccc;
    }

    .main-nav .menu-button {
        margin-right: 12px;
    }

    .main-nav .menu-button svg {
        width: 24px;
        height: 24px;
    }

    .small-block {
        overflow: hidden;
    }

    .main-nav .links .link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 30px !important;
        line-height: normal !important;
    }

    .main-nav .links .link.cta {
        justify-content: center !important;
    }
}

/* CUSTOM ADDITIONS */

#social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    fill: currentColor;
}

#social a {
    width: 32px;
    height: 32px;
    fill: #efefef;
    border: 4px solid #cdd4da;
    background-color: #cdd4da;
    margin-right: 0.5rem;
    text-decoration: none;
    border-radius: 4px;
}

#social a.facebook:hover {
    border-color: #1877f2;
    background-color: #1877f2;
}

#social a.github:hover {
    border-color: #181717;
    background-color: #181717;
}

#social a.linkedin:hover {
    border-color: #0077b5;
    background-color: #0077b5;
}

#social a.twitter:hover {
    border-color: #1da1f2;
    background-color: #1da1f2;
}

#social a.strava:hover {
    border-color: #fc4c02;
    background-color: #fc4c02;
}

#social a.komoot:hover {
    border-color: #6aa127;
    background-color: #6aa127;
}

code {
    font-family: Menlo, Monaco, "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.7em;
    font-weight: bold;
}

p code, li code {
    display: inline-block;
    background-color: #ddd;
    border: 2px solid #ddd;
}

pre code {
    background: none !important;
    border: none !important;
}

.highlight code {
    background: none !important;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.bottom {
    vertical-align: bottom;
}

.strong {
    font-weight: bold;
}

.apps img {
    border-radius: 22.544%;
    width: 85px;
    height: 85px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
}

#projects .project {
    margin-bottom: 24px;
}

.project h2,
.badges {
    margin-bottom: 8px;
    font-weight: 600;
}

.project-description + small {
    display: inline-block;
    margin-top: 8px !important;
}

.badges {
    padding-top: 8px;
    padding-bottom: 0px;
}

div.badges a {
    display: inline !important;
}

#post-body div.codehilite + p > em {
    margin-bottom: 2px;
}

#post-body h1,
#post-body h2 {
    margin-bottom: 0.83em;
}

#post-body.reading-list h2 {
    margin-top: 2.5em;
    margin-bottom: 0;
}

#post-body.reading-list h2:nth-of-type(1) {
    margin-top: 0;
}

#post-body.reading-list p.hashtags {
    margin-top: 0px;
}

div.codehilite {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px 0px;
}

.http-error,
.http-error h1,
.not-published .status,
.not-published .dates,
.not-published {
    color: darkred !important;
    font-weight: bold !important;
}

.not-published {
    font-style: italic !important;
}

.http-error div.codehilite pre {
    background-color: darkred !important;
    font-weight: bold !important;
    padding-top: 44px;
    padding-bottom: 44px;
}

#search {
    padding-top: 30px;
    padding-bottom: 10px;
}

#post-list, .detail {
    padding-top: 30px;
}

#search button {
    float: right;
    background: #ddd;
    margin: 0px;
    font-size: 17px;
    border: none;
    cursor: pointer;
    height: 48px;
    width: 48px;
}

#search input[type="text"] {
    font-size: 1em;
    line-height: 30px;
    width: calc(100% - 48px);
    padding: 24px;
    padding-left: 16px;
    padding-right: 16px;
    border: 0px;
    border-radius: 4px;
    height: 30px;
    color: #1a202c;
}

.related {
    margin-top: 0.83em;
}

.related ul {
    margin-bottom: 0;
}

pre {
    border-radius: 0.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px 0px;
    padding: 1rem;
    color: white !important;
}
/*
pre code.torchlight {
    display: block;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

pre code.torchlight .line {
    padding-left: 1rem;
    padding-right: 1rem;
}

pre code.torchlight .line-number,
pre code.torchlight .summary-caret {
    margin-right: 1rem;
    color: gray !important;
} */

#post-list li.not-published a {
    font-style: italic;
}

pre {
    font-family: Menlo, Monaco, "Courier New", Courier, monospace;
    white-space: pre-wrap;
    padding: 20px;
    background-color: #fdfdfd;
    overflow: auto;
    background: #272b2d;
    font-family: "Source Code Pro", Menlo, monospace;
    font-size: 13px;
    line-height: 1.5em;
    font-weight: 500;
    color: #d0d4d7;
}

pre {
    padding: 8px;
    font-size: 0.8em;
    line-height: 1.75em;
    white-space: pre;
    color: white;
}
.codehilite,
pre {
    background: #232323 !important;
    color: #f8f8f2;
}

#post-body .post-info, #post-body .related {
    line-height: 1.25em;
    padding: 20px 0px;
    margin: 8px auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

#post-body .related {
    border-bottom: none;
}

#post-body .post-info strong {
    color: #999;
}

#post-body .post-info small {
    display: inline-block;
    max-width: 400px;
}

#post-body h2, #post-body h3 {
    margin-top: 40px;
    color: #1a202c;
    font-weight: bold;
}

#post-body h3 {
    font-size: 17px;
}

#post-list a.external {
    color: #999;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #333;
    }

    nav.main-nav {
        background-color: #232323;
    }

    .main-nav a.home,
    .main-nav a.title {
        color: #efefef !important;
    }

    .profile h1,
    .post h1 {
        color: #efefef;
    }

    h2 { color: #bbb;}

    li {
        color: #efefef;
    }

    #post-list li,
    #archive-list li,
    #post-body .post-info,
    #post-body .related,
    #post-body .separator {
        border-top: 1px solid #666;
    }

    #post-body .post-info {
        border-bottom: 1px solid #666;
    }

    #post-list li:last-child {
        border-bottom: 1px solid #666;
    }

    #post-list a {
        color: #5694f1;
    }

    #a,
    #title,
    #post-list a:hover,
    #post-list li:hover .dates,
    #title:hover {
        color: #efefef;
    }

    a.symbol {
        color: #666;
    }

    #search input[type="text"] {
        background-color: #222;
        color: #efefef;
    }

    #search button {
        background-color: #111;
        color: #efefef;
    }

    #post-body,
    p,
    .project-description,
    #post-body h1,
    #post-body h2,
    #post-body h3 {
        color: #efefef;
    }

    code {
        background-color: rgba(0, 0, 0, 0.15);
    }

    h3,
    h4,
    h5 {
        color: #efefef;
    }

    blockquote {
        background-color: #232323;
        border-left: 3px solid #1f1f1f;
    }

    b,
    strong {
        color: #efefef;
    }

    #social a {
        border: 4px solid #1f1f1f;
        background-color: #1f1f1f;
        fill: #666;
    }

    img {
        background-color: #333;
    }

    .http-error,
    .http-error h1,
    .not-published .dates,
    .not-published {
        color: red !important;
    }

    .not-published .status, .status-pill {
        background-color: darkred !important;
        color: white !important;
    }

    .pill {
        background-color: black;
        color: #ddd;
    }

    p code {
        background-color: #232323 !important;
        border: 2px solid #232323 !important;
    }

    @media screen and (max-width: 720px) {
        .main-nav .links span.link:not(:last-child) {
            border-bottom-color: #666;
        }

        .main-nav .links {
            background-color: #333;
        }
    }
}
