@import 'fonts/avenirnext.css';
@import 'fonts/heldane.css';
@import 'fonts/iosevka.css';

@keyframes highlight {
  0% {
    text-decoration: #f9f9f9 underline;
  }
  50% {
    text-decoration: black underline;
  }
  100% {
    text-decoration: #f9f9f9 underline;
  }
}

nav#TOC {
  background-color: #eee;
  border: 2px black solid;
  border-radius: 10px;
  display: inline-block;
  padding: 4px 40px 0 0;
}
nav#TOC li > a {
  color: #0275d8;
}
nav#TOC li:hover > a {
  color: darkblue;
}

ol.breadcrumbs {
  background-color: #eee;
  border-radius: 10px;
  list-style: none;
  padding: 10px 16px;
}
ol.breadcrumbs li {
  display: inline;
}
ol.breadcrumbs li+li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}
ol.breadcrumbs li a {
  color: #0275d8;
}

:target p {
  background: #e9e9e9;
  margin: 2% 0;
  padding: 1% 1%;
}
:target::marker {
  border: 2px black solid;
}

:target sup {
  color: red;
}

blockquote {
  background: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
}
blockquote p {
  display: inline;
  font-style: italic;
}

div > .sourceCode {
  background: #0d0d0d;
  color: #d2d2d2;
  border-radius: 10px;
  padding: 2.5% 2.5%;
}

p code {
  border-radius: 5px;
  padding: 0.25% 0.5%;
}
li code {
  border-radius: 5px;
  padding: 0.25% 0.5%;
}

pre.graph {
  background: #0d0d0d;
  color: #d2d2d2;
  font-style: iosevka-term-regular;
  font-size: 14px;
}
code {
  background: #0d0d0d;
  color: #d2d2d2;
  font-style: iosevka-term-regular;
  font-size: 14px;
}

nav {
  display: flex;
  justify-content: flex-start;
}
nav div {
  font-family: "heldane-display";
  margin: 6px 12px -12px 0;
  font-size: 36px;
  font-weight: 700;
}

body {
  background: #F9F9F9;
  color: #001837;
  font-family: 'Avenir Next Regular';
  margin: auto;
  max-width: 42em;
  padding: 0 2.5%;
}

.footnote-ref {
  font-weight: 800;
  margin-left: 2.5px;
  text-decoration: none;
}
.footnote-ref:hover {
  font-weight: 800;
  margin-left: 2.5px;
  text-decoration: none;
}

a {
  color: darkblue;
  text-decoration: none;
}
a:hover {
  animation-name: highlight;
  animation-duration: 1.25s;
  animation-iteration-count: infinite;
}
a:visited {
  text-decoration: none;
}

h1 a, h1 a:visited, h2 a, h2 a:visited, h3 a, h3 a:visited, h4 a, h4 a:visited {
  animation: none;
  background: none;
  color: #001837;
  text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover {
  color: #FCB137;
}

h1, h2, h3, h4 {
  color: #001837;
  font-family: "heldane-display";
}

strong {
  color: #002177;
}

figcaption {
  margin: 5px;
  text-align: center;
}
figure {
  align-items: center;
  display: flex;
  flex-direction: column;
}

figure.group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

figure img {
  background: #0d0d0d;
  border-radius: 5px;
  max-height: 425px;
  max-width: 100%;
  margin: 5px;
  padding: 5px;
}

wikilink::after{
  background-color: #dddddd;
  border-radius: 2.5px;
  content: "W";
  font-family: serif;
  font-size: smaller;
  margin: 1px;
  padding: 2px 2px 0;
  vertical-align: super;
}

hnlink::after{
  background-color: #f60;
  border-radius: 2.5px;
  content: "H";
  color: #ffffff;
  font-family: serif;
  font-size: smaller;
  margin: 1px;
  padding: 2px 2px 0;
  vertical-align: super;
}

extlink::after{
  background-color: #f9f9f9;
  border-radius: 2.5px;
  content: "\21b3";
  color: #black;
  font-family: serif;
  font-size: smaller;
  margin: 1px;
  padding: 2px 2px 0;
  vertical-align: super;
}
