@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Urbanist:ital,wght@0,100..900;1,100..900&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.cdnfonts.com/css/opendyslexic');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --font-base: 'Victor mono', monospace;
  --font-size-base: 20px;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;
  --color-background: #FFFFFF;
  --color-text: black ;
  --color-accent: black;
  --color-faded: black;
  --color-link: black;
  --scale-ratio: 1.25;
  --color-hover:OrangeRed;
  --width-border: 0.1em;
  --type-border: solid;
  --color-border: black;
  --color-icon: invert(0%) sepia(0%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(100%);
  --background-image: none;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-background);
  background-image: var(--background-image);
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1;
  min-width: 40ch;
  max-width: 70ch;
  margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
}

header {
  position: relative;

  div.hero {
    font-weight: bold;
    font-size: 5em;
    text-align: center;
    letter-spacing: -2px;
  }

  nav ul {
    font-size: 1.5em;
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 2em 0;
    padding: 0;
    border-width: var(--width-border) 0;
    border-color: var(--color-border);
    border-style: var(--type-border);
  }

  nav ul li {
    padding: 14px 16px;
    border-right: var(--width-border) var(--color-border) var(--type-border);
    border-color: var(--color-border);
  }

  nav li:nth-last-child(2) {
    margin-left: auto;
  }

  nav li img.custom{
    cursor: pointer;
  }

  .right{
    border-right: none;
    border-color: var(--color-border);
  }

  #giticon,
  nav img {
    display: inline-block;
    height: 1em;
    width: auto;
    transform: translate(0, 0.1em);
    filter: var(--color-icon);
  }

  nav a,
  nav a:visited,
  nav a:link {
    text-decoration: none;
    color: var(--color-link);
  }

  .burgerMenu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2em;
    height: 2em;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 15;
  }

  .burgerMenu span {
    width: 2em;
    height: 0.2em;
    background-color: var(--color-text);
    transition: all 0.3s ease;
  }

  .burgerMenu.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5em, 0.5em);
  }

  .burgerMenu.active span:nth-child(2) {
    opacity: 0;
  }

  .burgerMenu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5em, -0.5em);
  }

  @media (max-width: 1280px) {
    .burgerMenu {
      display: flex;
    }

    nav ul {
      flex-direction: column;
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      max-width: 300px;
      height: 100vh;
      background-color: var(--color-background);
      transition: right 0.3s ease;
      z-index: 10;
      margin: 0;
      padding-top: 4em;
      border: var(--width-border) var(--color-border) var(--type-border);
      border-color: var(--color-border);
    }

    nav.active ul {
      right: 0;
    }

    nav ul li {
      border-right: none;
      border-bottom: var(--width-border) var(--color-border) var(--type-border);
      border-color: var(--color-border);
      width: 100%;
    }

    nav li:nth-last-child(1) {
      margin-left: 0;
    }
  }
}

main {
  text-align: justify;

  section {
    margin: auto;
  }

  section.table {
    width: 40em;
    text-align: left;

    > ul {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 33.333%), 1fr));
      grid-auto-rows: 1fr;
      gap: 0em;
      list-style: none;
      padding-left: 0;
      border-left: .2em var(--color-border) solid;
      border-top: .2em var(--color-border) solid;
      border-color: var(--color-border);
    }

    > ul > li {
      border-right: .2em var(--color-border) solid;
      border-bottom: .2em var(--color-border) solid;
      border-color: var(--color-border);
      padding: 14px 16px;
      display: flex;
      align-items: center;
    }
  }

  section.article {
    min-width: 40ch;
    max-width: 70ch;

    figure {
      width: 80%;
      margin: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    figure > img {
      width: 100%;
    }

    figcaption {
      font-size: .8em;
      text-align: center;
    }

    p img {
      float: left;
      max-width: 50%;
      margin: .5em 1em 1em .5em;
    }
  }
}

a,
a:link,
a:visited {
  /*text-decoration: none;*/
  cursor:pointer;
  color: var(--color-link);
}

a:hover,
a:active {
  color:var(--color-hover);
}

h2 {
  margin: 1.5em 0 .5em 0;
}

.smallcaps {
  font-variant: small-caps;
}

.alignCenter {
  text-align: center;
}

.alignRight {
  text-align: right;
}

.csl-entry {
  margin-bottom: 1em;
  text-indent: -1em;
}

sup,
.superscript {
  font-size: smaller;
  vertical-align: super;
  line-height: 0;
}

.footer{
  margin-top: auto;
  width: 100%;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction:column;
  overflow: hidden;
  justify-content: center;

  .partners {
    margin: auto;
  }

  .partners ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    gap: 1em;
    justify-content:center;
    padding: 0;
    margin: 0;
  }

  .partners li {
    padding: O;
    margin: 0;
  }

  .partners img {
    transition: transform .2s;
    width: auto;
    height: 2em;
    margin: 0 auto;
  }
}

.footer a{
  color: var(--color-link);
}

.legal {
  font-size: small;
}

.legal > ul  {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.legal > ul > li:not(:first-child)::before {
  content: "| ";
  margin-right: 1em;
}

@media (max-width: 1920px) {
  body {
    font-size: 20px;
  }
}

@media (max-width: 1512px) {
  body {
    font-size: 18px;
  }
}

@media (max-width: 1280px) {
  body {
    font-size: 16px;
  }
}

