:root {
  --background-color: #eee;
  --background-alt: #d0d0d0;
  --foreground-color: #444;
  --clickable: #0077aa;
}
.dark-mode {
  --background-color: #222;
  --background-alt: #333;
  --foreground-color: #ccc;
  --clickable: #47bef1;
}
body {
  font-family: "Arial", sans-serif;
  margin: 40px auto;
  max-width: 800px;
  line-height: 1.6;
  padding: 0 10px;
  background-color: var(--background-color);
  color: var(--foreground-color);
}
.header-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0.67em;
}
.logo {
  height: 84px;
  width: 84px;
  margin-bottom: -6px;
}
.title-nav-container {
  flex-grow: 1;
}
/* Update this rule to align the title and the button */
.title {
  margin: 0;
  font-weight: bold;
  font-size: 36px;
  display: flex; /* This makes the title and button line up horizontally */
  align-items: center; /* This is the key part that centers them vertically */
  gap: 15px;
}
.navigation {
  margin-left: -4px;
}
.navigation a {
  display: inline-block;
  color: var(--clickable);
  font-weight: bold;
  font-size: 18px;
  padding: 4px;
  text-decoration: none;
}
.navigation a:hover {
  box-shadow: inset 0 -40px 0 -1px var(--foreground-color);
  color: var(--background-color);
  border-radius: 8px;
}
#theme-switch {
  height: 30px;
  width: 30px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  bottom: 10px;
}
#theme-switch svg {
  fill: var(--foreground-color);
}
#theme-switch svg:last-child {
  display: none;
}
.dark-mode #theme-switch svg:first-child {
  display: none;
}
.dark-mode #theme-switch svg:last-child {
  display: block;
}
hr {
  border: 1px solid var(--foreground-color);
  margin-bottom: 20px;
}
.text {
  font-size: 20px;
}
.text a {
  color: var(--clickable);
  text-decoration: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
.image-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.crypto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: var(--background-alt);
  border-radius: 12px;
  width: 170px;
}
.crypto-label {
  margin: 0 0 12px 0;
  font-weight: bold;
  font-size: 20px;
  color: var(--foreground-color);
}
.crypto-card picture,
.crypto-card img {
  display: block;
  width: 100%;
  height: auto;
}
.copy-button {
  background: none;
  border: 1px solid var(--foreground-color);
  color: var(--foreground-color);
  font-family: inherit;
  font-size: 14px;
  padding: 6px 12px;
  margin-top: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 150px;
}
.copy-button:hover {
  background-color: var(--foreground-color);
  color: var(--background-color);
  border-color: var(--foreground-color);
}
.ip-button {
  background-color: #2e8b57;
  border: 1px solid #3cb371;
  color: #fff;
  font-family: inherit;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  top: -5px;
  width: 160px;
  text-align: center;
}
.ip-button:hover {
  background-color: #3cb371;
  border-color: #2e8b57;
}
.liberapay-btn {
    font-family: inherit;
    font-size: 32px;
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
    display: flex;
    gap: 8px;
    background-color: var(--background-alt);
    color: var(--foreground-color);
    border: 1px solid var(--foreground-color);
    margin: auto;
    width: 550px;
    text-align: center;
    border-radius: 6px;
}
.liberapay-btn:hover {
    background-color: var(--foreground-color);
    color: var(--background-color);
}