@import url(header.css);
@import url(sidenav.css);

footer {
  --footer-bg: var(--md-sys-color-surface-dim);
  --footer-fg: var(--md-sys-color-on-surface);
}
@media print {
  footer {
    display: none;
  }
}
.text-justify {
  text-align: justify;
}
.row {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.5rem;
}
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-fg);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0.8rem;
  padding-bottom: 0.5rem;
}
h6 {
  font-size: 1em;
  font-weight: 500;
  line-height: 1.8rem;
  letter-spacing: 0.1rem;
  margin: 0;
}
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
hr {
  border: 0;
  height: 1px;
  background-color: var(--md-sys-color-outline-variant);
  margin: 1rem 0;
}
.section {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.footer-links {
  display: flex;
  flex-direction: column;
}
.footer-links a {
  color: var(--footer-fg);
  text-decoration: none;
  font-size: 0.8em;
  line-height: 1.2rem;
  opacity: 0.8;
}
.footer-links a:hover {
  text-decoration: underline;
}
a.store-download {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: space-evenly;
  & img {
    flex: 1;
    max-width: 150px;
    margin: auto;
    align-self: center;
  }
  &.pad {
    padding: 12px;
  }
}
.download-buttons {
  align-items: center;
}
.copyright {
  font-size: 0.8em;
  line-height: 1.2rem;
  opacity: 0.8;
}
.about {
  margin: 1rem 0;
  margin-bottom: 2rem;
}
.about p {
  margin: 0;
  padding: 0;
  opacity: 0.8;
  font-size: 0.8em;
  max-width: 500px;
}
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  max-height: auto;
  padding-top: 1rem;

  & img {
    margin: 0;
    padding: 0;
  }
}
@media (max-width: 500px) {
  .download-buttons {
    flex-direction: column;
  }
  .sections {
    flex-direction: wrap;
  }
  .section {
    flex: 1;
  }
  .row.sections {
    flex-direction: column;
    align-items: center;
  }
}
.row {
  display: flex;
  flex-direction: row;
  &.center {
    align-items: center;
    justify-content: center;
  }
  & .spacer {
    flex: 1;
  }
}

table.key-value {
  border-collapse: collapse;
  width: 100%;

  & :is(th, td) {
    padding: 0.5rem;
    border: 1px solid var(--md-sys-color-outline-variant);
  }

  & th {
    background-color: var(--md-sys-color-surface-container-highest);
  }

  & td {
    text-align: left;
  }

  & tr:nth-child(even) {
    background-color: var(--md-sys-color-surface-container-low);
  }

  & tr:hover {
    background-color: var(--md-sys-color-surface-container-high);
  }

  & th {
    cursor: pointer;
  }

  & th:hover {
    background-color: var(--md-sys-color-surface-container-low);
  }
}

ul.section-links {
  list-style: disc;
  margin: unset;
  padding: 0 1rem;
}

main {
  min-height: 80vh;
  margin: auto;
  padding: 1rem;
}
