/* Headers in posts should look like regular text until hovered, when they highlight like links */
h1 a,
h2 a,
h3 a {
  color: #333;
}

.highlight {
  font-size: 15px;
  border-left: 2px solid #69c;
  overflow-x: auto;
}

.highlight code > span {
  padding-left: 1em;
}

blockquote {
  font-style: italic;
}

article img {
  max-width: 100%;
}

details {
  background-color: #f6f6f6;
  padding: 3px;
  border: 1px solid #555;
  border-radius: 10px;
  margin-top: 1em;
  margin-bottom: 1em;
}

details summary {
  cursor: pointer;
}

/* sup and sub are superscript and subscript respectively and are used for footnote annotations (for
 * example). Without modifying their baseline, they cause the line-height to grow when a footenote
 * is added to it, meaning that lines of text are inconsistently spaced. This keeps the same visible
 * vertical position but prevents it from changing the line-height so everything is consistent.
 */
sub,
sup {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}
sub {
  top: 0.4em;
}

:not(pre) > code {
  background: #ddd;
  border-radius: 0.25rem;
  padding: 0.1rem;
  font-family:
    Menlo,
    Consolas,
    Monaco,
    Liberation Mono,
    Lucida Console,
    monospace; /* https://systemfontstack.com/ */
}

.highlight {
  background: #ddd;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  font-family:
    Menlo,
    Consolas,
    Monaco,
    Liberation Mono,
    Lucida Console,
    monospace; /* https://systemfontstack.com/ */
}

.highlight > pre {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

#footnote-tooltip {
  background-color: #f6f6f6;
  position: fixed;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid #555;
  display: none;
}

#TableOfContents {
  background-color: #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid #555;
}

.emscripten-container {
  margin-left: auto;
  margin-right: auto;
}

/* NOTE: The emscripten canvas *must not* have any border or padding, otherwise the mouse coords will be wrong. */
.emscripten-container canvas {
  border: 0px none;
  background-color: black;
  display: none;
}

.emscripten-placeholder-loading {
  position: relative;
  top: calc(50% - 35px);
  height: 70px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  color: #eee;
}

.emscripten-placeholder-instructions {
  cursor: pointer;
  position: relative;
  top: calc(50% - 45px);
  height: 90px;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  color: #eee;
}

.emscripten-placeholder-instructions p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.emscripten-loading-spinner {
  height: 50px;
  width: 50px;
  margin: 0px auto;
  -webkit-animation: emscripten-spinner-rotation 0.8s linear infinite;
  -moz-animation: emscripten-spinner-rotation 0.8s linear infinite;
  -o-animation: emscripten-spinner-rotation 0.8s linear infinite;
  animation: emscripten-spinner-rotation 0.8s linear infinite;
  border-left: 10px solid rgb(100, 100, 100);
  border-top: 10px solid rgb(100, 100, 100);
  border-bottom: 10px solid rgba(0, 0, 0, 0);
  border-right: 10px solid rgba(0, 0, 0, 0);
  border-radius: 100%;
  background-color: rgba(0, 0, 0, 0);
}
@-webkit-keyframes emscripten-spinner-rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes emscripten-spinner-rotation {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}
@-o-keyframes emscripten-spinner-rotation {
  from {
    -o-transform: rotate(0deg);
  }
  to {
    -o-transform: rotate(360deg);
  }
}
@keyframes emscripten-spinner-rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
