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: #666;
  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;
}

/* the heading of a page like the FAQ, the history or the whales, larger than the day of a timeline page */
h1.page {
  font-size: large;
}

/* the source after the event on the history page, its name kept on one line, smaller, lighter and in italics, so it
   stands out less than the event and its transaction links */
table.history span.source {
  white-space: nowrap;
  font-size: 0.85em;
  font-style: italic;
  color: #aaa;
}

table.history span.source a:link, table.history span.source a:visited {
  color: #aaa;
}

table.history span.source a:hover, table.history span.source a:active {
  color: red;
}

/* the questions of the FAQ, smaller than its heading */
h2 {
  font-size: medium;
}

/* the introduction of the home page */
p.intro {
  max-width: 40em;
  margin: 1em auto;
  line-height: 1.4;
  text-align: center;
}

/* the stats of the day below the heading of a timeline page, the full width of the page like the posts below it */
p.summary {
  margin: 1em 0;
  line-height: 1.4;
  text-align: left;
}

/* 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;
}

/* the logo, the img not in the link: padding inside its 140px box like the QR code's white border (4 of its ~37
   modules), so the drawing and the QR code look the same size */
figure.tip div > img {
  box-sizing: border-box;
  padding: 15px;
}

figure.tip figcaption {
  color: #666;
  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 day before the first one and the day after the latest one, shown without links */
div.day nav span.prev,
div.day nav span.next {
  color: lightgray;
}

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

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

.bbb {
  font-size: 1.25rem;
  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: 1rem;
  }

  .bbb_center {
    width: 50%;
  }

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

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