/* @import url("https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&display=swap"); */

@font-face {
  font-family: "px437";
  src: url("../Px437_Cordata_PPC-400.ttf");
}

body {
  font-family: serif;
  /* font-family: 'GapSansRegular';  */
  font-family: "Baskervville", serif;
  font-family: "px437";
  font-size: 14px;
  line-height: 1.4em;
  color: midnightblue;
  margin: 0;
  padding: 0;
}

h1 {
  padding: 0 0.5em;
}

h1,
h2 {
  font-size: 14px;
  font-weight: normal;
  /* font-family: 'GapSansBold';  */
}

h2 {
  position: sticky;
  top: 0;
  text-transform: uppercase;
  background-color: white;
  padding: 0.5em;
  margin: 0;
}

em {
  font-family: "Baskervville", serif;
}


nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  text-align: right;
}

nav details summary {
  padding: 8px 12px;
}
nav a{
  display: block;
  color: black;
  line-height: 1.75em;
  text-decoration: none;
}

nav span {
  padding: 12px;
  background-color: rgb(250, 250, 250);
}

section {
  /* max-height: 25vh; */
  /* background-image: linear-gradient(to bottom, white 60%, rgb(255, 251, 205)); 
  cursor: s-resize; */
  padding: 0.5em;
  padding-bottom: 5em;
  box-shadow: 0px 0px 10px -3px rgb(180, 180, 180);
}

section,
h2 {
  background-color: rgb(250, 250, 250);
}

section:hover,
section:hover > h2 {
  /* max-height: 27vh; 
  transition: max-height .5s; */
  background-color: rgb(255, 255, 255);
}

section.clicked {
  max-height: none;
  /* cursor: n-resize; */
  background-image: none;
  border-bottom: none;
  overflow-y: auto;
}

.text {
  display: flex;
}

.text > * {
  margin: 0.5em;
  margin-top: 0;
}

.text ul {
  width: 33%;
  padding-left: 0.5em;
}

.text ul li:nth-of-type(2) {
  margin-left: 0.5em;
}

.text ul li:nth-of-type(3) {
  margin-left: 1em;
}

.text ul li:nth-of-type(4) {
  margin-left: 1.5em;
}

.text ul li:nth-of-type(5) {
  margin-left: 2em;
}

.text ul li:nth-of-type(6) {
  margin-left: 2.5em;
}
.text p {
  width: 66%;
  max-width: 600px;
}

body > ul {
  padding: 0;
}

li {
  list-style-type: none;
}
li li:before {
  content: "⊹ ";
  color: black;
}
li:hover {
  opacity: 1 !important;
}
li li:hover {
  color: forestgreen;
}
li li a {
  color: #3b5998;
  text-decoration: none;
}

li a span {
  background: linear-gradient(#15b965, #4d20e8);
  color: #4d20e8;
}
li em span {
  background: linear-gradient(darkgreen, darkblue);
  color: darkblue;
}

sup code a span,
sup em a span {
  background: linear-gradient(darkred, orange);
  font-family: serif;
  color: orange;
}

li a span,
li em span,
sup code a span,
sup em a span {
  font-style: normal;
  display: inline;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: sans-serif;
  letter-spacing: 1.5px;
  text-decoration: none;
}

del a span {
  text-decoration: line-through;
}

p > ul {
  position: absolute;
}

sup {
  line-height: 0;
}
sup a.chromeFallback {
  color: darkred;
}

b,
strong {
  font-weight: normal;
  text-transform: uppercase;
}

a:hover {
  display: inline-block;
  transform: rotate(180deg);
}

sup a:before {
  content: "↝ ";
}

sup a:nth-of-type(odd):hover {
  transform: skew(150deg);
  line-height: 1;
}

sup a:nth-of-type(even):hover {
  transform: skew(-150deg);
  line-height: 1;
}

.images {
  /* display: flex; */
  flex-wrap: wrap;
}

.images .legend {
  font-size: 0.75em;
  margin: 0;
  margin-bottom: 0.75em;
  padding: 0;
  margin-top: -0.75em;
}

img,
video {
  max-width: calc(50% - 1em);
  margin: 0.5em;
  max-height: 80vh;
}

section section img,
section section video {
  max-width: calc(50% - 1.5em);
}

video,
img.border {
  box-shadow: 0px 0px 15px -3px rgb(200, 200, 200);
}

@media screen and (min-width: 2000px) {
  body,
  h1,
  h2 {
    font-size: 16px;
  }
}

@media screen and (max-width: 900px) {
  img,
  video {
    max-width: calc(100% - 1em);
    max-height: 95vh;
    margin-top: 0;
  }
}

@media screen and (max-width: 700px) {
  .text {
    flex-direction: column;
  }
  .text ul,
  .text p {
    width: auto;
  }
}

@media screen and (max-width: 400px) {
  body,
  h1,
  h2 {
    font-size: 18px;
  }

  img,
  video,
  .text ul,
  .text p {
    max-width: 100%;
    margin: 0;
    margin-bottom: 0.25em;
  }

  h2 {
    padding: 0;
    padding-bottom: 0.25em;
  }
}

@media print {
  @page {
    size: A4;
    margin: 7.425mm 5mm;
    margin-right: 20mm;
  }
  body,
  li > *:first-child,
  a {
    color: black !important;
    background: none;
    -webkit-text-fill-color: black;
    font-size: 10pt;
    line-height: 14pt;
  }

  section,
  h2{
    background-color: transparent;
  }

  section {
    page-break-after: always;
    box-shadow: none;
  }

  body p:nth-of-type(1) {
    margin-bottom: 7.425mm;
  }
  body p:nth-of-type(2) {
    margin-top: 7.425mm;
  }
  sup code a {
    display: none;
    /* content: ': ' attr(href); */
  }
  ul {
    padding-left: 0;
  }
  ul ul {
    padding-left: 7.5mm;
  }
  ul ul li {
    margin: 0.928125mm 0;
  }
  ul li a:nth-of-type(1) span,
  ul li em:nth-of-type(1) span {
    border-bottom: 1pt dotted black;
    /* border-style:  */
  }
}
