body {
  font-family: Arial, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: right;
  border-bottom: 1px solid #ddd;
}

td.bold {
  font-weight: bold;
}

h1 {
  font-size: medium;
}

div.header {
  background-color: lightgray;
  text-transform: uppercase;
  padding: 1em;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25em 1.5em;
}

/* the logo next to the title, its padding taken out of the bar's so the bar is no taller */
div.header a.title {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

div.header a.title img {
  margin: -0.5em 0;
}

div.header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1em;
}

div.data {
  padding: 1em;
}

a:link, a:visited {
  color: gray;
  text-decoration: none;
}

div.header a:link, div.header a:visited {
  color: #555;
}

div.header a[aria-current="page"] {
  color: black;
  font-weight: bold;
}

/* the title links to the home page, but looks the same on every page */
div.header a.title:link, div.header a.title:visited {
  color: black;
  font-weight: normal;
}

a:hover, a:active, div.header a:hover, div.header a:active, div.header a.title:hover, div.header a.title:active {
  color: red;
}

/* the top of a timeline page: the links to the days before and after with the calendar, centered, and the heading
   centered below them */
div.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

div.day nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25em 0.75em;
}

/* the heading and the introduction of the home page */
h1.home {
  text-align: center;
  font-size: large;
}

h1.faq {
  font-size: large;
}

p.intro {
  max-width: 40em;
  margin: 1em auto;
  line-height: 1.4;
  text-align: center;
}

/* the stats of the home page, in a box between the introduction and the follow links */
div.stats {
  max-width: 32em;
  margin: 1.5em auto;
  padding: 0.5em;
  background-color: #f2f2f2;
  border-radius: 12px;
}

/* the follow links of the home page, as buttons with the logos */
nav.follow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
  margin: 1.5em auto;
}

nav.follow a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.25em;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: large;
}

nav.follow a:hover {
  border-color: red;
}

/* the tips QR code of the home page, with its caption */
figure.tip {
  margin: 1.5em auto;
  text-align: center;
}

/* the logo and the QR code side by side */
figure.tip div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
}

figure.tip img {
  display: block;
}

figure.tip figcaption {
  color: gray;
  margin-top: 0.5em;
  line-height: 1.6;
}

/* the address is long, so it may break anywhere on a narrow screen */
figure.tip a.address {
  font-family: monospace;
  overflow-wrap: anywhere;
}

div.day h1 {
  text-align: center;
}

/* the next day before it comes, shown without a link */
div.day nav span.next {
  color: lightgray;
}

/* the calendar to go to a day */
div.day input[type="date"] {
  font: inherit;
  color: gray;
}

div.bottom {
  color: gray;
  text-align: center;
  padding: 1em;
}

.bbb {
  font-size: x-large;
  text-transform: uppercase;
  margin: auto;
  text-align: center;
  padding: 10px;
}

.bbb_center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
}

th.text, td.text {
  text-align: left;
  overflow-wrap: anywhere;
}

.icon {
  vertical-align: middle;
}

td.post {
  width: 100%;
  max-width: 0;
}

a.tx {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  max-width: 100%;
  vertical-align: bottom;
}

a.tx img {
  flex: none;
}

a.tx span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bbb {
    font-size: large;
  }

  .bbb_center {
    width: 50%;
  }

  div.header, div.data {
    padding: 0.5em;
  }

  th, td {
    padding: 6px 4px;
  }
}
