@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+128&display=swap');

@font-face {
  font-family: "Overused Grotesk";
  src: url('https://raw.githubusercontent.com/RandomMaerks/Overused-Grotesk/v0.4/fonts/variable/OverusedGrotesk-VF.ttf');
  font-weight: 300 900;
}

:root {
  --primary-color: #1A92FF;
  --secondary-color: #FFDCB2;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

h1 {
  font-family: "Overused Grotesk";
  font-weight: 650;
  font-size: 6em;
  letter-spacing: -0.04em;
}

h2 {
  font-family: "Overused Grotesk";
  white-space: pre-wrap;
  font-weight: 650;
  margin: 3rem;
  margin-bottom: -.5em;
  font-size: 3em;
  letter-spacing: -0.04em;
}

p {
  font-family: "Overused Grotesk";
  font-weight: 300;
  font-size: 1.125em;
  max-width: 35em;
  width: 80dvw;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

h2 a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  transform: translate(0, 0);
  transition: color 0.5s ease,
              font-weight 0.4s ease,
              transform 0.4s ease,
              font-size 0.3s ease;
}

h2 a:hover {
  font-weight: 900;
  color: white;
  font-size: .9em;
  transform: translate(0, -.05em);
}

.card-collection {
  width: 100dvw;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.card {
  background-color: black;
  color: white;
  width: 80dvw;
  align-self: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding: 0;
}

.card-text-wrapper {
  display: flex;
  justify-content: end;
  margin: 3rem;
  margin-top: 0;
  padding: 0;
}

.card .description {
  white-space: pre-wrap;
  text-align: right;
  margin: 0;
  margin-bottom: -1em;
  margin-top: -1em;
  padding: 0;
  max-width: 50ch;
  font-size: 1em;
  font-family: "Overused Grotesk";
  font-weight: 300;
}

.button-collection {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  flex-direction: column;
}

button {
  background-color: black;
  color: white;
  border-radius: 0;
  border-width: 0;
  margin: 1rem;
  font-size: 1.25em;
  font-family: "Overused Grotesk";
  font-weight: 300;
  cursor: pointer;
  width: 7.75rem;
  height: 3rem;
  transition: color 0.5s ease,
              font-weight 0.4s ease,
              font-size 0.3s ease;
}

button.double-width {
  width: 17.5rem;
}

button:hover {
  color: var(--primary-color);
  font-weight: 550;
  font-size: 1.05em;
}

button.double-width:hover {
  font-size: 1.1em;
}

footer {
  background-color: black;
  padding: 2.5rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
  width: 100dvw;
  margin-top: 2.5rem;
}

footer p {
  color: white;
  font-family: "Overused Grotesk";
  font-size: 1em;
  font-weight: 300;
  text-align: center;
  white-space: pre-wrap;
}

#footer-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
  margin-bottom: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

#footer-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#footer-buttons button {
  background-color: white;
  color: black;
}

#footer-buttons button:hover {
  background-color: white;
  color: var(--primary-color);
}

.barcode {
  font-family: "Libre Barcode 128";
  margin: 0;
  margin-left: 3rem;
  padding: 0;
  font-size: 5em;
  transform: scaleY(0.25);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0;
  margin: 10dvw;

  padding-top: 6rem;
  margin-top: 0;

  margin-bottom: -2rem;
}

header button {
  margin: 0;
  margin-top: 1.75rem;
}

#footer-bar object {
  display: block;
  width: 17.5rem;
  margin-right: 1rem;
}

@media screen and (orientation: portrait) {
  #footer-bar object {
    margin-bottom: 2.5rem;
    width: 17.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  #footer-bar {
    margin-left: auto;
    margin-right: auto;
  }

  footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    width: 100dvw;
    flex-wrap: wrap;
  }

  #footer-buttons {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  header button {
    display: none;
  }

  .barcode {
    display: none;
  }

  .card h2 {
    margin-bottom: 3rem;
  }
  
  h1 {
    font-size: 5em;
  }
}

@media screen and (orientation: landscape) {
  .mobile-only {
    display: none;
  }
}