:root {
  --code-bg-color: #f8f4f4;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color:#f8f8f8;
    color:#111;
    line-height:1.3;
    margin:0;
}
    
div#text {
    max-width: 670px;
    margin:auto;
    padding:1em;
}

a {
    color:#225;
}

a:visited {
    color:#523;
}

img.inline-img {
    display:inline;
}

h1.title {
  line-height: 0.9em;
}

p.author {
    display:none;
    font-family: monospace;
    font-size: 1.2em;
}

div.fig {
    margin: 1em;
}

figure > img {
    border: 1px solid #888;
}

@media (width >= 800px) {
  figure.leftfig {
    float:left;
    margin-right:1em;
  }
  figure.rightfig {
    float:right;
    margin-left:1em;
  }
}

div.topbar {
    width:100%;
    /* background-color:#242935; */
    background-color:#2f66a0;;
    background-image: url('/banner.jpg');
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    color:#eee;
    /* text-align:center; */
    text-transform:lowercase;
    /*
    font-size: 2em;*/

    /*padding:0;
    margin:0;
    border:0;
    display:flex;
    flex-flow:row wrap;
    justify-content:flex-end;*/
}

.logo {
    max-width: 800px;
    display: block;
    margin: auto;
    padding-left:1em;
    padding-right:1em;
    padding-top:0.25em;
    padding-bottom:0.25em;
    background-color: rgba(8,8,8,0.5);
    /* box-sizing: border-box; */
}

.logo > a {
    color: #eee;
    text-decoration: none;
    font-weight: bold;
}

.logo > a:visited {
    color:#eee;
}

.logo > a:hover {
    color:#f8f8f8;
}

/* Main index page */

h1#logotext {
  margin-bottom:0.0em;
}

div#tagline {
  margin-bottom:1em;
  font-style: italic;
}

.date {
    /* font-style: italic; */
    /* font-size: 1.2em; */
    color: #888;
}


div.toright {
  float:right;
}

ul.text-list {
  max-width: 550px;
}

span.tags {
    font-variant: all-petite-caps;
    font-size: 0.8em;
    /* color:#888; */
}


/* Articles */

summary:hover {
    color:#444;
    cursor: pointer;
}

details summary > p {
  /* Make summary arrow appear on the same line even if Pandoc wraps the text inside a paragraph */
  display: inline;
  /* Should act like a button so no text selection allowed */
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

details:not([open]) summary:after {
  content: "(Click to expand)";
}

details {
    border-left: 1px dashed #444;
    padding-left: 1em;
}

blockquote {
  padding-left: 1.0em;
  /* padding-right: 1.0em;
  padding-top: 0.05em;
  padding-bottom: 0.05em; */
  /* color: #554b4b; */
  /* background-color: antiquewhite; */
  margin-left: 0.5em;
  border-left: 2px solid #df9191;
  line-height: 1.4;
  font-style: italic;
}

img {
    max-width:100%;
}

img.heroimage {
    border: 1px solid #322;
}

figure {
    text-align: center;
    max-width:100%;
    margin:0.5em;
}

figure > figcaption {
    margin-top:0.5em;
    font-style:italic;
}

.hoverborder:hover {
  border: 1px solid black;
}

.wide-figure figure {
    margin: 0;
}

.wide-figure > figure > img {
  vertical-align: top; /* otherwise side-by-side images would be aligned at bottom */
}

.wide-figure {
  position:relative;
  width:100vw;
  left:50%;
  margin-left:-50vw;
  text-align:center;
}

.wide-figure > figure > figcaption {
  max-width: 800px;
  margin-left:auto;
  margin-right:auto;
}

li {
    margin-top:0.3;
    margin-bottom:0.3em;
}

hr {
  width: 150px;
}

div.footer-separator {
    margin-top: 4em;
    margin-bottom: 1em;
    text-align:center;
}

div.some {
    text-align:center;
}

div.some a {
  margin-left: 0.25em;
  margin-right: 0.25em;
}

div#footer {
  /* background-color: #eef; */
}

div#footer .footerlogo {
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
}

table {
    margin:auto;
    border-collapse: separate;
    border-spacing: 0.5em;
}

table > tr{
    padding:0.25em;
}

tr > th{
    text-align:left;
}

/* code blocks */
div.sourceCode {
    background-color: var(--code-bg-color);
    padding:0.5em;
    font-size: 1.2em;
}

/* code blocks without syntax highlight */
pre:not(.sourceCode) {
    font-size: 1.2em;
}

/* inline code */
:not(pre) > code:not(.sourceCode) {
  font-size: 1.15em;
  background-color: var(--code-bg-color);
  padding: 1px;
  color: #300;
}


span.red {
  color: #b11;
}

span.green {
  color: #1b1;
}

span.blue {
  color: #11c;
}

/* Pandoc's default value of display:inline-block shows up as too large on iOS Safari. */
pre > code.sourceCode > span { display:inline; }

pre.sourceCode {
  line-height: 1.0;
}

/* Interactive diagrams */

.viewer-box {
  container-type: inline-size; /* for .img800 */
}

.viewer-box > figure {
  position: relative;
}

.viewer-box .caption-overlay {
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  width: 100%;
}

@media (width >= 780px) {
  .viewer-box .caption-overlay {
    position: absolute; /* caption is over image only when its shown in full size */
  }
}

.printonly {
  display: none;
}

@media (width >= 780px) {
  .img800 {
    max-width: 800px;
    margin-left: calc(-400px + 50cqw);
  }
}

@media print {
  .printonly {
    display: initial;
  }

  .noprint {
    display: none;
  }
}

