@font-face {
  font-family: 'QuattrocentoSans-Bold';
  src: url('QuattrocentoSans-Bold.ttf');
}

@font-face {
  font-family: 'QuattrocentoSans-Regular';
  src: url('QuattrocentoSans-Regular.ttf');
}

@font-face {
  font-family: 'FiraCode-Regular';
  font-stretch: 50%;
  font-style: normal;
  font-weight: 400;
  src: url('FiraCode-VariableFont_wght.ttf');
}

#author {
  display: flex;
  gap: 1em;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#portrait {
  width: 7em;
  height: 7em;
}

a {
  color: #130F0D;
  font-family: 'QuattrocentoSans-Bold';
}

header nav {
  font-size: 150%;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  border-bottom: 2px solid #130F0D;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
}

header nav li {
  flex: 1;
  box-sizing: border-box;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}

header nav li a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0.5em;
  text-decoration: none;
  box-sizing: border-box;
}

header nav ul li:first-child a{
  border-left: 2px solid #00000000 !important;
}

header #current a {
  text-decoration: underline;
}

header nav #current {
  position: relative;
  background-color: #FFF5E6;
  border-left: 2px solid #130F0D;
  border-right: 2px solid #130F0D;
}

header nav #current::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #FFF5E6;
}

header nav #current:hover {
  border-left: 2px solid #130F0D;
  border-right: 2px solid #130F0D;
  margin-left: 0px;
  margin-right: 0px;
}

header #current a:hover {
  color: #0E1E1B;
}

header nav #current:first-child {
  border-left: none;
}

header nav li:hover {
  margin: 0;
}

header nav li a:hover {
  text-decoration: underline;
}

header {
  padding: 0;
  margin: 0;
  background-color: #B8D2C9 !important;
}


#sub-section-nav {
}

#sub-section-nav ul {
  padding: 0.5em;
  margin-top: 0;
}

#sub-section-nav li {
  display: inline;
  padding-right: 1vw;
  padding-left: 1vw;
  border-right: 2px solid #130F0D ;
}

#sub-section-nav li a {
  padding: 0.5em;
  text-decoration: none;
}

#sub-section-nav li a:hover {
  text-decoration: underline;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  background-color: #FFF5E6;
  color: #0E1E1B;
  font-family: 'QuattrocentoSans-Regular';
  line-height: 150%;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1em;
  padding-right: 1em;
  max-width: 800px;
}

section h2,
section h3,
section p {
  padding-left: 10%;
  padding-right: 10%;
}
section ol,
section ul {
  padding-left: 15%;
  padding-right: 15%;
}

.logo {
  width: 0.7em;
  padding-right: 0.2em;
}

#contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0;
}

#contact li {
  display: inline;
  break-inside: avoid;
  white-space: nowrap
}

img {
  mix-blend-mode: multiply;
}

.header_image {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

.data {
  background-color: #B8D2C9;
  margin-left: auto;
  margin-right: auto;
  max-width: 35em;
  width: 95%;
  border-spacing: 0;
  padding: 1.5em;
  border-color: #130F0D;
  border-width: 2px;
  border-style: solid;
}
.data table {
  width: 100%;
  border-collapse: collapse;
}
.data th {
  text-align: left;
}
.data tr {
  display: table-row;
  width: 100%;
}

.data td {
  border-top: 2px solid #0E1E1B;
}

code {
  white-space: nowrap;
  font-size: 16px;
  font-family: 'FiraCode-Regular';
}

div.sourceCode {
  line-height: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-spacing: 0;
  padding-left: 0.5em;
  padding-right: 0.5em;
  border-color: #130F0D;
  border-width: 2px;
  border-style: solid;
  box-sizing: border-box;
  overflow: visible !important;
}

.sourceCode code {
  font-size: 80%;
  white-space: inherit;
}

.sourceCode pre {
    counter-reset: line -1;
}

.sourceCode span[id^="cb"] a::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
    width: 3em;
    text-align: left;
    margin-right: 1em;
    color: #999;
    user-select: none;
    text-decoration: none; /* Remove underline */
}

div.sourceCode pre.unnumbered {
    counter-reset: none;
}

div.sourceCode pre.unnumbered span[id^="cb"] a::before {
    content: none;
}

div.sourceCode pre.small code {
    font-size: 70%;
}

div.sourceCode:has(pre.overflow) {
    overflow: auto !important;
}

h1, h2, h3 {
  line-height: 100%;
}

.note {
  font-size: 80%;
  line-height: 80%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-spacing: 0;
  padding-left: 0.5em;
  padding-right: 0.5em;
  border-color: #130F0D;
  border-width: 2px;
  border-style: solid;
  box-sizing: border-box;
}

footer {
  max-width: 800px;
  padding-top: 25px;
  padding-bottom: 25px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  font-size: 12;
  font-family: 'FiraCode-Regular';
  display: flex;
  gap: 1em;
}

footer #portrait {
  flex-shrink: 0;
  align-self: flex-start;
}

footer div {
  display: flex;
  flex-direction: column;
}

.compare {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  cursor: ew-resize;
  --split-position: 50%;
  --inv-split-position: 50%;
}

.compare::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-position);
  width: 2px;
  background-color: #000000;
  pointer-events: none;
  z-index: 10;
}

.compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  display: block;
}

.compare img:first-child {
  position: relative;
  clip-path: inset(0 var(--inv-split-position) 0 0);
}

.compare img:nth-child(2) {
  clip-path: inset(0 0 0 var(--split-position));
}

@media only screen and (max-width: 768px) {
  main {
    padding-left: 5px;
    padding-right: 5px;
  }

  footer {
    padding-left: 5px;
    padding-right: 5px;
  }


  div.sourceCode {
    overflow: auto !important;
  }

  section h2,
  section h3,
  section p {
    padding-left: 10px;
    padding-right: 10px;
  }
  section ol,
  section ul {
    padding-left: 50px;
    padding-right: 10px;
  }
  
  .data {
    padding: 5px;
  }
}
