/* --- change the <code> text color -- */
code {
  color: #008000;
}

/* --- fix: code blocks not responsive -- */
body {
  word-wrap: break-word; 
  overflow-wrap: break-word;
}
code,
pre,
samp {
  white-space: pre-wrap; 
}

/* --- fix: highlighted code blocks background is off -- */
.highlight > pre:not([class~="highlight"]) { 
  padding-top: 0.59375rem; /* this number comes from the `pre` block in beautifuljekyll.css */
  padding-bottom: 0.59375rem;
  padding-left: 0;
  padding-right: 0;
}

/* --- fix: sticky footer --- */
html {
  height: 100%;
}
body {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}
.ed-fix-footer {
  grid-row-start: 2;
  grid-row-end: 3;
}

/* --- responsive image alignment --- */

.img-wrap, .img-center {
  display: block;
  text-align: center;
}
 
.img-left, .img-right {
  float: inherit;
  margin: 0.5rem;
}

@media (min-width: 768px) {
  .img-wrap {
    display: inherit;
    text-align: inherit;
  }

  .img-left {
    float:left;
  }
  
  .img-right {
    float:right;
  }
}

/* --- table of contents --- */

ul#markdown-toc {
  border: 1px solid lightgray;
  border-radius: 5px;
  list-style: circle;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

ul#markdown-toc li {
  list-style: circle;
}