@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit.ttf");
}

@font-face {
  font-family: Inter;
  src: url("/fonts/Inter.ttf");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input {
  font-family: Inter, sans-serif;
  background: none;
  border: 0;
  color: black;
  font-size: 1.125rem;
  cursor: pointer;
}

input[type="text"] {
  cursor: auto;
}

input::placeholder {
  font-size: 1.125rem;
}

body {
  font-family: Inter, sans-serif;
  background-color: #031942;
  min-height: 100svh;

  font-size: 1.125rem;

  /* Background created by SVGBackgrounds.com */
  background-color: #031942;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 2 1'%3E%3Cdefs%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23031942'/%3E%3Cstop offset='1' stop-color='%23031942'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23005C7F' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23005C7F' stop-opacity='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='2' y2='2'%3E%3Cstop offset='0' stop-color='%23005C7F' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23005C7F' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='0' fill='url(%23a)' width='2' height='1'/%3E%3Cg fill-opacity='0.5'%3E%3Cpolygon fill='url(%23b)' points='0 1 0 0 2 0'/%3E%3Cpolygon fill='url(%23c)' points='2 1 2 0 0 0'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;

  /* So that we can use margin-block-start: auto on footer */
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  display: flex;
  justify-content: center;
  top: 0;
  backdrop-filter: blur(1rem);
}

.nav {
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__home-link {
  font-family: Outfit, sans-serif;
  font-weight: bold;
  display: block;
  font-size: 2rem;
  text-decoration: none;
  color: #fff;
  padding-left: 1rem;
}

.nav__hamburger {
  padding-right: 1rem;
  color: white;
  font-size: 2rem;
}

.nav__list {
  position: absolute;
  top: 100%;
  width: 100%;
  flex-direction: column;
  background-color: transparent;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.125rem;
}

.nav__list--visible > .nav__list-item {
  display: block;
  translate: 0;
  opacity: 1;
}

.nav__list-item {
  width: 100%;
  translate: -100% 0;
  opacity: 0;
  transition: translate 0.25s linear, opacity 0.25s linear;
}

.nav__list-item--first {
  transition-delay: 0.25s;
}

.nav__list--visible > .nav__list-item--first {
  transition-delay: 0s;
}

.nav__list-item--second {
  transition-delay: 0.125s;
}

.nav__list-item--third {
  transition-delay: 0;
}

.nav__list--visible > .nav__list-item--third {
  transition-delay: 0.25s;
}

.nav__list-item a,
.nav__list-item button {
  background-color: #0076a9;
  width: 100%;
  font-family: Inter, sans-serif;
  display: block;
  text-decoration: none;
  color: black;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  color: #fff;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid white;
}

.nav__list-item a:hover,
.nav__list-item button:hover {
  background-color: #00b6e9;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #f5f5f5;
  width: min(100%, 40rem);
  box-shadow: 0.5rem 0 1rem 0 #000;
  transition: translate 0.25s linear, opacity 0.25s linear;
  height: 100svh;
  display: grid;
  grid-template-rows: 5rem auto;
}

.sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e1e1;
  padding: 1rem 0.75rem;
}

.sidebar__header h2 {
  font-family: Outfit, sans-serif;
  font-weight: bold;
}

.sidebar__content {
  padding: 1rem 0.75rem;
  max-height: 100%;
  overflow-y: auto;
}

.sidebar--hidden {
  translate: 100%;
  opacity: 0;
}

.sidebar__close-btn {
  border: 1px solid #e1e1e1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  float: right;
  color: black;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.25s linear, background-color 0.25s linear;
}

.sidebar__close-btn:hover {
  background-color: black;
  color: white;
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.sidebar-list-item {
  position: relative;
  border: 1px solid #e1e1e1;
  padding: 1rem;
}

.sidebar-list-item__short-link {
  font-weight: bold;
  word-break: break-all;
}

.sidebar-list-item__long-link {
  font-size: 0.875rem;
  color: #00793a;
}

.qr-wrapper {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  max-width: fit-content;
}

.qr-wrapper__btn {
  font-size: 1.125rem;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: black;
  background-color: green;
  transition: border-color 0.125s linear, background-color 0.125s linear;
}

.qr-wrapper--visible {
  display: flex;
}

.btns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.btns-container--stackable {
  align-items: center;
  flex-direction: column;
}

.btns-container__btn {
  --btn-text-color: #0076a9;
  --btn-text-hover-color: white;
  --btn-border-color: #0076a9;
  --btn-border-hover-color: #0076a9;
  --btn-bg-color: transparent;
  --btn-bg-hover-color: #0076a9;

  font-size: 1.125rem;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--btn-text-color);
  border: 1px solid var(--btn-border-color);
  background-color: var(--btn-bg-color);
  transition: border-color 0.125s linear, background-color 0.125s linear;
}

.btns-container__btn:hover {
  color: var(--btn-text-hover-color);
  background-color: var(--btn-bg-hover-color);
  border-color: var(--btn-border-hover-color);
}

.btns-container__btn--full-width {
  width: 100%;
}

.btns-container__btn--light-blue {
  --btn-text-color: white;
  --btn-text-hover-color: white;
  --btn-border-color: #59a6c7;
  --btn-border-hover-color: #4994b0;
  --btn-bg-color: #59a6c7;
  --btn-bg-hover-color: #4994b0;
}

.btns-container__btn--dark-blue {
  --btn-text-color: white;
  --btn-text-hover-color: white;
  --btn-border-color: #007ca3;
  --btn-border-hover-color: #005c7f;
  --btn-bg-color: #007ca3;
  --btn-bg-hover-color: #005c7f;
}

.btns-container__btn--dark-green {
  --btn-text-color: white;
  --btn-text-hover-color: white;
  --btn-border-color: #009048;
  --btn-border-hover-color: #00793a;
  --btn-bg-color: #009048;
  --btn-bg-hover-color: #00793a;
}

.btns-container__btn--dark-yellow {
  --btn-text-color: white;
  --btn-text-hover-color: white;
  --btn-border-color: #907a00;
  --btn-border-hover-color: #797100;
  --btn-bg-color: #907a00;
  --btn-bg-hover-color: #797100;
}

.btns-container__btn--dark-red {
  --btn-text-color: white;
  --btn-text-hover-color: white;
  --btn-border-color: #900000;
  --btn-border-hover-color: #790000;
  --btn-bg-color: #900000;
  --btn-bg-hover-color: #790000;
}

.btn-text {
  display: grid;
}

.btn-text__item {
  grid-column: 1;
  grid-row: 1;
}

.btn-text__item--secondary.btn-text__item--hidden,
.btn-text__item--primary:not(.btn-text__item--hidden) {
  transition: opacity 0.5s linear;
}

.btn-text__item--hidden {
  opacity: 0;
}

.general-content {
  font-size: 1.25rem;
  color: black;
  line-height: 1.8rem;
  padding: 3rem 0 1rem;
}

.general-content.general-content--white {
  color: white;
}

.general-content h2,
.general-content h3 {
  padding-bottom: 1.25rem;
}

.general-content p {
  padding-bottom: 1.25rem;
}

.general-content ul {
  list-style-position: inside;
  padding-bottom: 0.75rem;
}

.general-content li {
  padding-bottom: 0.5rem;
}

.general-content a {
  color: white;
  font-weight: bold;
}

.main {
  padding: 1rem;
  width: min(100%, 80ch);
  margin-inline: auto;
}

.card {
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
}

.card__paragraph {
  padding-bottom: 0.5rem;
}

.card__header {
  font-size: 1.75rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
}

.card__header--small {
  font-size: 1.25rem;
}

.card__menu-divider {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  gap: 3rem;
  padding-top: 0.5rem;
}

.card__form-group {
  padding: 0 0 0.5rem;
}

.card__form-subgroup {
  display: flex;
  justify-items: center;
  line-height: 2rem;
}

.card__form-subgroup-text {
  padding-inline-end: 0.125rem;
}

.card__form-input {
  padding: 0.5rem;
  border-radius: 1rem;
  width: 100%;
  border: 1px solid #e1e1e1;
}

.card__form-label {
  display: block;
  padding-bottom: 0.75rem;
}

.card__form-btn[type="submit"] {
  width: 100%;
  background-color: #009048;
  border: none;
  font-size: 1.25rem;
  color: white;
  padding: 1rem 0;
  border-radius: 0.5rem;
  transition: background-color 0.125s linear;
}

.card__form-btn[type="submit"]:hover {
  background-color: #00793a;
}

.card__form-btn--warning[type="submit"] {
  background-color: #900000;
}

.card__form-btn--warning[type="submit"]:hover {
  background-color: #790000;
}

.card__form-warning {
  color: red;
  display: block;
  min-height: 1.25rem;
}

.card__form-warning ul {
  list-style-type: none;
}

.card__return-link {
  display: inline-block;
  padding-top: 0.75rem;
}

.card__link-group {
  padding: 0.75rem 0;
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  font-size: 1.125rem;
}

.data-list__term {
  font-weight: bold;
  word-break: break-all;
}

.data-list__definition {
  padding-bottom: 1rem;
  word-break: break-all;
}

.manage-nav {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 0.25rem;
}

.manage-nav__item-link {
  display: block;
  border: 1px solid #e1e1e1;
  border-radius: 1rem;
  padding: 0.5rem;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.manage-nav__item-link--active {
  background-color: #00b6e9;
}

.footer {
  margin-block-start: auto;
  color: white;
  background-color: #005c7f;
}

.footer__text,
.footer__text a {
  text-align: center;
  padding: 0.25rem 0.5rem;
  color: white;
}

@media (width > 40rem) {
  .nav {
    padding: 2rem;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__list {
    position: static;
    flex-direction: row;
    background-color: #0076a9;
    width: auto;
    border-radius: 0.5rem;
    gap: 0;
  }

  .nav__list-item {
    width: auto;
    opacity: 1;
    translate: 0;
    display: block;
  }

  .nav__home-link {
    padding-left: 0;
  }

  .nav__list-item a,
  .nav__list-item button {
    border: 0;
  }

  .main {
    padding: 1rem;
  }

  .qr-wrapper {
    flex-direction: row;
  }

  .btns-container--stackable {
    flex-direction: column;
  }

  .card__menu-divider {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
  }
}
