@import url('https://fonts.googleapis.com/css2?family=Alegreya+SC:wght@400;500;700&family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,500;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

body {
  font-family: "Lato", sans-serif;
  background: black;
  background: url('../img/bg-quicksheets.png');
  font-size: 21px;
  line-height: 2;
  padding: 0;
  margin: 0;
}

body::before {
  inset: 0;
  position: fixed;
  z-index: -1;
}

body::before {
  background: linear-gradient(73.6deg, rgb(136, 176, 136), rgb(36, 136, 176));
  opacity: .736;
}

section {
  display: flex;
  flex-flow: row wrap;
  gap: 15px;
  justify-content: center;
  padding: 3.5vh 0 10vh 0;
}

section:first-of-type {
  align-items: center;
  color: white;
  flex-flow: column;
  padding: 10vh 0 2vh 0;
}

section h1 {
  border-image-slice: 1;
  border-image-source: linear-gradient(-48deg, rgb(136, 176, 136) 7.36%, rgb(235, 76, 136), rgb(36, 136, 176) 86%);
  border-bottom: 3px solid;
  font-family: 'Jost', sans-serif;
  font-size: clamp(27.5px, 28px, 32.5px);
  font-weight: 400;
  letter-spacing: .735vw;
  margin: 3vh 0 .65vh 0;
  max-width: 39.736vw;
  padding: 0 0 1.35rem 0;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

section p {
  border-radius: 18px;
  font-size: clamp(18px, 5vw, 28px);
  margin: 0;
  padding: 0;
  text-align: center;
  margin: 0 0 4.5vh 0;
  max-width: 1100px;
  width: unset;
}

section article {
  background: rgba(236, 236, 236, .136);
  border: 8px solid rgba(136, 136, 136, 1);
  border-radius: 18px;
  display: flex;
  padding: 0;
  overflow: clip;
  margin: 1.75vh .735vw;
  max-width: 480px;
  width: 90vw;
}

section figure,
section figure img {
  margin: 0;
  padding: 0;
  width: 100%;
}

section figure {
  background: white;
  display: flex;
  flex-flow: column;
}

figure .quicksheet-label {
  border-top: 3px solid rgb(76, 76, 76);
  display: flex;
  height: 75px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

figure .quicksheet-label span {
  align-items: center;
  display: flex;
  font-size: 65%;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 3px;
  padding: 15px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

figure .quicksheet-label a {
  aspect-ratio: 1/1;
  align-items: center;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  text-decoration: none;
  height: 100%;
  width: 105px;
}

figure .quicksheet-label a:first-of-type {
  background: rgb(36, 136, 176);
}

figure .quicksheet-label a img {
  display: flex;
  width: 45%;
}

figcaption {
  align-items: center;
  background: rgb(36, 76, 136);
  color: white;
  display: flex;
  justify-content: center;
  padding: 15px 7.36%;
  text-align: center;
}

em {
  padding: 0 .25rem;
}

nav {
  height: 65px;
  inset: 0;
  position: fixed;
}

nav a {
  align-items: center;
  display: flex;
  height: 45px;
  justify-content: center;
  position: relative;
  max-width: 200px;
}

nav a::before {
  background: rgba(5, 5, 5, .736);
  content: '';
  border-radius: 0 0 9px 0;
  inset: 0 0 0 -15%;
  position: absolute;
  transform: skew(-25deg);
  z-index: -1;
}

nav a img:first-of-type {
  margin: 0 15px;
  max-width: 36px;
  opacity: .636;
  padding: 0;
  transition: opacity .5s, transform .5s;
}

nav a:hover img:first-of-type {
  opacity: 1;
  transform: translateX(-5px);
}

nav a img:last-of-type {
  margin: 0 auto 0 0;
  min-width: 115px;
  max-width: 135px;
  padding: 0;
  width: 50%;
}

.quicksheets-list {
  background: rgb(36, 36, 36);
}

@media only screen and (max-width: 768px) {
  section h1 {
    max-width: 16.736rem;
  }

  figure .quicksheet-label {
    background: black;
    height: unset;
    flex-flow: row wrap;
  }

  figure .quicksheet-label span {
    background: white;
    min-height: 75px;
    padding: 15px 25px;
  }

  figure .quicksheet-label a {
    aspect-ratio: unset;
    border-radius: 50%;
    flex-flow: row wrap;
    margin: 15px auto;
    height: 75px;
    width: 75px;
  }

  figure .quicksheet-label a img {
    width: 36px;
  }

  section p {
    padding: 5px 15px;
    font-size: 23px;
    width: 93.6vw;
  }
}

@media (pointer: fine) {
  figure {
    position: relative;
  }

  figure .quicksheet-overlay {
    background: transparent;
    display: flex;
    flex-flow: column;
    border: none;
    height: unset;
    inset: 0;
    position: absolute;
  }

  figure .quicksheet-label {
    align-items: center;
    background: rgba(5, 5, 5, 0);
    backdrop-filter: blur(0);
    color: white;
    flex-flow: row wrap;
    justify-content: center;
    border: none;
    height: unset;
    flex: 1;
    transition: background .5s, backdrop-filter .5s;
  }

  figure:hover .quicksheet-label {
    background: rgba(36, 36, 36, .936);
    backdrop-filter: blur(8px);
  }

  figure .quicksheet-label span {
    background: rgba(36, 36, 36, .936);
    height: unset;
    inset: auto 0 0 0;
    padding: 15px 0;
    text-align: center;
    position: absolute;
    transition: background .5s;
  }

  figure:hover .quicksheet-label span {
    background: rgba(36, 36, 36, 0);
  }

  figure figcaption {
    flex: 0;
  }

  figure .quicksheet-label a {
    border-radius: 50%;
    margin: 0 15px;
    height: 76px;
    opacity: 0;
    transition: background 1s, opacity .5s, visibility .5s;
    visibility: hidden;
    width: 76px;
  }

  figure:hover .quicksheet-label a {
    opacity: 1;
    visibility: visible;
  }

  figure .quicksheet-label a:hover {
    background: white;
  }

  figure .quicksheet-label a img {
    transition: filter 1s;
  }

  figure .quicksheet-label a:hover img {
    filter: invert(1);
  }
}
