* {
  font-family: Calibri, Arial, Helvetica, sans-serif;
}

iframe[src*='youtube'] {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* licence CC Tiago Braga https://codepen.io/thiagobraga/pen/ZEmope */
a[target='_blank']:after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
}

header {
  border-bottom: solid black 1px;
}

main {
  height: 100%;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.sidepanel h1 {
  font-size: 23pt;
}

.sidepanel h2 {
  font-size: 18.5pt;
}

.sidepanel h3 {
  font-size: 16pt;
}

.sidepanel h4 {
  font-size: 14pt;
}

.sidepanel p,
.sidepanel details,
.sidepanel details,
.sidepanel ul {
  /*.sidepanel :is(p, details, ul)*/
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  hyphens: auto;
}

.sidepanel ul li ul {
  margin: 0;
  padding-left: 1.5rem;
}

details {
  border-radius: 0.25rem;
  border: solid #cecece 1px;
  background-color: #f6f6f6;
}

details :is(p, summary) {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

summary {
  background-color: #fcfcf9;
  padding: 0.5rem;
  cursor: pointer;
  color: #000;
  border-radius: 0.25rem;
}

.sidepanel > div > blockquote p {
  padding: 0.5rem 0.75rem;
  margin: 0;
  margin-top: 0.5rem;
  background-color: #fffefa;
  border-radius: 0.25rem;
}

.sidepanel > div > blockquote {
  margin: 1rem 0;
}

/* image description (square brackets: alt text, double quotes: optional title, same paragraph description)
```md
- [![A blue bird washing in a puddle](../../assets/blue_jay.png "")](../../assets/blue_jay.png)
_This blue bird is called Blue Jay. It is using the puddle to clean itself or to drink_
```
*/
p > a[href^='../../assets'] + em {
  display: inline-block;
  font-size: 15px;
  color: #3f3f3f;
  padding: 0.5rem 0.75rem;
}

/* without this style the horizontal margin/background 
surrounding a small image (which deosn't fill the while width) 
is clickable due to the anchor link wrapping an image 
applies the margin to the anchor link to center the image */
p > a[href^='../../assets'] {
  display: block;
  margin: auto;
  max-width: fit-content;
}

details[open] {
  color: #000;
}

details[open] summary {
  border-bottom: solid #cecece 1px;
}

details summary:hover {
  background-color: white;
  border-radius: 0.25rem;
  outline-offset: 0px;
  outline: solid 1px #57575746;
  outline-style: dashed;
}

:not(pre) > code {
  font-family: Consolas, monospace;
  font-size: 14px;
  background-color: #d9dace80;
  border-radius: 0.25rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

pre > code {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background-color: #cecece80;
}
