/* Inserts the styles required by various options
on the services page of the dashboard */
{{{appCSS}}}
{{{body_font.styles}}}
{{{syntax_highlighter.styles}}}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  {{#body_font}}
  font-family: {{{stack}}};
  font-size: {{{font_size}}}px;
  line-height: {{{line_height}}};
  {{/body_font}}
  -webkit-font-smoothing: antialiased;
  color: {{text_color}};
  background: {{background_color}};
}

@media (prefers-color-scheme: dark) {

}

body.entry-container {display:flex;flex-direction:column;min-height:100%;}

.header {
  display: flex;
  min-height: 3.4em;
}

.header>* {
  display: flex;
  align-items: center;
}

.header a.index-link {
  display:flex;
  color: {{text_color}};
  align-items:center;
  padding:0.65rem 1.3rem;
  white-space:nowrap;
  text-rendering:optimizeLegibility;
  font-size:1em;
  font-weight:600
}

.header .w-25 {
  flex-basis: 25%;
}

.header .w-50 {
  flex-basis: 50%;
}

hr {
  border: none;
  margin: 0;
  border-top: 1px solid {{text_color}};
  opacity: 0.2
}

a.light {
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.85);
  text-decoration: none;
}

a.light:hover {
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.6);
}

a.light:hover img {
  opacity: 0.8
}

a.light:active {
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.25);
}

a.light:active img {
  opacity: 0.666
}

.header input {
  margin: 0;
  display: inline-block;
  padding: 0.65em 0
}

.menu {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 20%;
}

.posts {
  display: flex;
  flex-wrap: wrap;
  padding: 2.6em
}

.post {
  position: relative;
  padding: 0.8em;
  margin-bottom: 2em;
  width: 25%;
  box-sizing: border-box;
  font-size: 0.8125em;
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.8);
  text-decoration: none;
  text-align: center;
}

.post .thumbnail .container {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  display: flex;
  align-items: center
}

ul.task-list { list-style-type: none; }

@media screen and (max-width: 1200px) {
  .post {
    width: 33.3333%
  }
}

@media screen and (max-width: 900px) {
  .post {
    width: 50%
  }
}

@media screen and (max-width: 600px) {
  .entry {
    padding: 0 1em;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 500px) {

  .post {
    width: 100%
  }

  .post:hover .thumbnail:after {
    border: none !important;
  }

  .posts {
    padding-left: 0;
    padding-right: 0
  }
}

.post .date {
  visibility: hidden;
  display: block;
}

.post .thumbnail {
  box-sizing: border-box;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  display: block;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.3em
}

.post .thumbnail:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent
}

.post:hover .thumbnail:after {
  border-color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.15);
}

.post:hover .date {
  visibility: visible;
}

.post:active,
.opac:active {
  opacity: 0.7
}

.post img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: 0 auto
}

.post.no-thumbnail .thumbnail:after {
  border-color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.15);
  border-width: 2px
}

.post.no-thumbnail:hover .thumbnail:after {
  border-color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.4);
}

.post.no-thumbnail .thumbnail {
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.4);
  text-align: center;
}

.post.no-thumbnail .date {
  display: block;
}

.fadeMe {
  visibility: hidden;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.3s, visibility 0.3s;
}

.fadeIn {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Search form */

#searchForm {width: 100%}
form input {
  padding-left: 0;
  padding-right: 2.7em;
  font: inherit;
  font-size: 1em;
  border: none;
  line-height: inherit;
}



form input[type="text"] {
  flex-grow: 1;
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.9);
  background: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="utf-8"?><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 42.6 42.6" style="enable-background:new 0 0 42.6 42.6;" xml:space="preserve"><path fill="rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.5)" d="M42.6,40.5L28.2,26.1c2.4-2.8,3.7-6.4,3.7-10.2c0-4.3-1.7-8.3-4.7-11.3c-3-3-7-4.7-11.3-4.7S7.7,1.7,4.7,4.7 c-6.2,6.2-6.2,16.3,0,22.5c3,3,7,4.7,11.3,4.7c3.8,0,7.3-1.3,10.2-3.7l14.4,14.4L42.6,40.5z M6.8,25.1c-5-5-5-13.2,0-18.3 C9.2,4.3,12.5,3,15.9,3c3.5,0,6.7,1.3,9.1,3.8c2.4,2.4,3.8,5.7,3.8,9.1c0,3.5-1.3,6.7-3.8,9.1c-2.4,2.4-5.7,3.8-9.1,3.8 C12.5,28.9,9.2,27.5,6.8,25.1z"/></svg>') no-repeat 1rem center;
  background-size: 0.95rem;
  cursor: text;
}

form input:focus,
.pag a[href]:focus {
  outline: none;
  background-color: transparent;
}

.menu a[href="/search"] {
  display: none;
}

::placeholder {
  /* Most modern browsers support this now. */
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.5);
}

#dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: {{background_color}};
  z-index: 1;
  box-shadow: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05) 0px 0px 0px 1px, rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05) 0px 3px 6px, rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.1) 0px 9px 24px;
  margin-top: 1px
}

#dropdown a {
  display: flex;
  padding: 1em 1.3em;
  overflow: hidden;
  border-bottom: 1px solid rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.85);
  font-size: 1em;
  text-decoration: none;
}

/*#dropdown a:last-of-type {
    border-bottom: none;
}
 */
#dropdown a:focus {
  outline: none;
  background: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
}

#dropdown a .thumbnail {
  vertical-align: middle;
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.65em 0 0;
}

#dropdown img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  vertical-align: middle;
}

#dropdown .date,
#results .title {
  height: 1.3em;
  overflow: hidden;
}

#dropdown .date {
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.4);
  flex-shrink: 0;
}


/* Pagination */

.pagination hr {
  border: none;
  margin: 0;
}

.pagination .button {
  text-decoration: none;
  color: inherit;
  padding: 0.65rem 1.3rem 0.65rem 1.3rem;
  margin: 0 0.8rem;
  display: inline-block;
  background: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.1);
}

.pagination .button[href] {
  background:rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.08);
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.8)
}

/* Entry layout */


.entry h1 {
  font-size: 2em;
  line-height: 1.2;
  margin: 2em 0
}

.entry img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: calc(100vh - 2.6em)
}

.entry>img {
  margin: 0 auto;
  display: block;
}

.entry {
  line-height: 1.5;
  word-wrap: break-word;
  color: {{text_color}};
}

.entry a {
  color: inherit;
}

.entry h2 {
  font-size: 1.5em;
  text-rendering: optimizelegibility;
  font-weight: bold;
  margin: .75em 0;
  line-height: 1.6em;
}

.entry pre {white-space: pre-wrap;}

.entry blockquote {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 2em auto;
  border-left: 0.1875em rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.1) solid;
  padding-left: 1em;
  font-style: italic;
}

.entry p {
  margin-top: 2rem;
  margin-bottom:  2rem
}

.entry hr {
  background-color: {{text_color}};
  opacity: 0.1;
  border: none;
  height: 0.125em;
  margin: 3em 0;
}



.light {
  display: inline-block
}

.menu-link[href="/"],
.menu-link[href="/search"] {
  display: none;
}

.tags-container {
  display:flex;
  flex-basis:42rem;
  flex-shrink:0;
  padding:0.325rem 0 0;
  overflow:hidden;
  font-size:0.875em;
  flex-grow: 0;
}

#tags {
  height: {{body_font.line_height}}em;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

#tags.open {
  height: auto;
  overflow: visible;
}

#tags a {
  display: inline-block;
  margin: 0 0.1625em;
  padding: 0 0.325em;
  white-space: nowrap;
  color: inherit;
  position: relative;
  text-decoration: none
}


#tags a strong {
  visibility: hidden;
  font-weight: 500;
  color: {{text_color}};
}

#tags a span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
}


#tags a:focus strong,
#tags a.active strong {
  visibility: visible;
}

#tags a:focus span,
#tags a.active span {
  display: none;
}

#tags a:active {
  opacity: 0.6
}

#tags a:active strong {
  visibility: hidden;
}

#tags a:active:focus span {
  display: block;
}

.paginator {
  display: flex;
  justify-content: flex-end
}

.paginator .arrow {
  text-decoration: none;
}

.paginator a {
  min-width: 1.5em;
  text-align: center;
  display: inline-block;
  padding: 0.325em 0;
  margin: 0 0.1em;
  font-size: 0.875em;
  position: relative;
  text-decoration: none;
  color: {{text_color}};
  opacity: 0.1;
}

.paginator a[href] {
  opacity: 0.25;
}

.paginator a:before {
  content: "";
  width: 1.5em;
  height: 1.5em;
  content: "";
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.75rem;
  z-index: -1
}

.paginator a[href]:hover:before {
  background: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
}

.paginator a.true:before {
  background: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.07);
}



/* Used on the index and archives page when the site is empty */
.centered {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
}

.centered p {
  width: 100%
}

/* Grid of links on archives page */
.archives h1 {margin-left:1.3rem}

table.hyper {
        width: 100%;
      }

table.hyper a {
text-decoration: none;
color: inherit;
}

table.hyper {
border-collapse: collapse
}

table.hyper tr:hover {
background: #eee
}

table.hyper td,
table.hyper th {
padding: 0.35rem 0.7rem;
}

table.hyper th {
font-size: 12px;
text-align: left;
color: #aaa;
font-weight: normal;
text-transform: uppercase;
}
.archives .links {
  padding: 1.9em;
  text-align: left;
  display: block;
  white-space: nowrap;
}

.archives a.item {
  display: flex;
  align-items: center;
  color: {{text_color}};
  opacity: 0.4;
  text-decoration: none;
}

.archives a.item:hover {
  background: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.85)
}

.archives a.item span {
  vertical-align: middle;
  display: inline-block;
}

.zoomable {
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}


.upper {
  text-decoration: none;
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.5);
  margin-top: 1px;
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.6875em
}

.toolbar, .header, .posts, .pagination, .tags {
    border-bottom: 1px solid rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
}

.toolbar {
  display: flex;
  color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.8);
}

label {
  display: none !important;
}

@media screen and (max-width: 960px) {
  label {
    display: block !important;
    position: absolute;
    top: 0;
    padding: 0.7em 1.3em;
    cursor: pointer;
    right: 0;
  }

  .header .hide,
  .toolbar,
  .header+div>hr:first-child,
  #tags a {
    display: none !important;
  }

  input:checked~.header .hide {
    display: block !important;
  }

  .nav {
    display: block;
  }

  .nav a {
    display: block;
    border-bottom: 1px solid rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
  }


  .header .search {
    border-top: 1px solid rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
    border-bottom: 1px solid rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.05);
    padding: 0.65rem 0;
    z-index: 2;
    min-height: auto
  }

  .header {
    flex-wrap: wrap;
    align-items: normal;
  }

  .header>*,
  .header {
    z-index: 1;
    flex-shrink: 0;
    max-width: none !important;
    width: 100% !important;
    min-height: 3.4rem;
    flex-basis: 100% !important;
  }

  label {
    min-height: 3.4rem;
    line-height: 2rem
  }

  .header label {
    width: auto !important;
    z-index: 100;
  }
}

.nav {
  display: flex;
  justify-content: flex-end;
  flex-basis: 25%;
  flex-grow: 1;
  align-items: center;
}

input#toggle {
  position: absolute;
  top: 0;
  left: -1em;
  visibility: hidden;
}

    .entry-container .caption {margin-bottom: 2em;}

   [data-source$=".txt" i] > *,
   [data-source$=".md" i] > * { max-width: 45em;margin: 0 auto }

   [data-source$=".md" i] img,
  [data-source$=".txt" i] img {
    margin: 1em 0;
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: none;
    }

    
    [data-source$=".jpg" i] .caption,
    [data-source$=".jpeg" i] .caption,
    [data-source$=".png" i] .caption,
    [data-source$=".gif" i] .caption {
      display: none;
    }

    .entry-container  .main {
      min-height: calc(100vh - 2rem);
      flex-grow: 1;
    }

    .entry-container  .top>* {
      float: right;
    }

    .entry-container .top .right-toolbar,
    .entry-container .top .left-toolbar {
      padding: 1.3rem
    }

    .entry-container .left-toolbar,
    .entry-container .right-toolbar,
    .entry-container .close {
      text-align: center;
      display: inline-block;
      margin: 1.3rem;
      border: 1px solid rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.25);
      padding: 2.6rem 1.3rem;
      text-decoration: none;
      box-sizing: border-box;
      position: relative;
    }

    .entry-container  .close {
      padding: 1.3rem
    }

    .entry-container  .left-toolbar:focus,
    .entry-container  .right-toolbar:focus,
    .entry-container  .close:focus {
      opacity: 0.6
    }

    .entry-container  .left-toolbar:before,
    .entry-container  .right-toolbar:before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 17px;
      right: auto;
      width: 9px;
      height: 9px;
      margin: auto 0;
      -webkit-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
      transform: rotate(-135deg);
      border: solid;
      border-width: 1px 1px 0 0;
      border-color: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.4);
    }

    .entry-container  .right-toolbar:before {
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
      left: 13px;

    }

    .entry {
      align-self: center;
    }

    .close:before,
    .close:after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      right: auto;
      width: 1px;
      background: rgba({{#rgb}}{{text_color}}{{/rgb}}, 0.4);
      height: 16px;
      margin: auto 0;
      -webkit-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
      transform: rotate(-135deg);
      left: 20px
    }

    .close:after {
      -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }

    .side {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100vh;
    }

    .right-toolbar-side {
      justify-content: space-between;
      flex-grow: 0;
      min-height: 100vh;
      flex-shrink: 0;
      display: flex;
      flex-direction: column
    }

    .top {
      display: none;
    }

    @media screen and (max-width: 600px) {
     .entry-container  .top {
        display: block
      }

     .entry-container  .main {
        align-items: normal;
        min-height: initial;
        flex-grow: 0;
      }

     .entry-container  .side {
        display: none;
      }
    }

