/* Poppins — only weights used */
@font-face { font-display: swap; font-family: "Poppins"; font-style: normal; font-weight: 200; src: url("../fonts/poppins-v21-latin-200.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Poppins"; font-style: normal; font-weight: 300; src: url("../fonts/poppins-v21-latin-300.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Poppins"; font-style: normal; font-weight: 400; src: url("../fonts/poppins-v21-latin-regular.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Poppins"; font-style: normal; font-weight: 600; src: url("../fonts/poppins-v21-latin-600.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Poppins"; font-style: normal; font-weight: 800; src: url("../fonts/poppins-v21-latin-800.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  background-color: #fff;
  font-family: Poppins;
  margin: 0;
  padding: 0;
  color: white;
}

a { text-decoration: none; }
.text-center { text-align: center; }
.text-thin { font-weight: 200; }
.text-underline { text-decoration: underline; }
.text-color-black { color: black; }
.d-none { display: none; }
.d-flex { display: flex; }
.jcc { justify-content: center; }
.select-all { user-select: all; }

/* Tab system */
#about-page:checked ~ #home,
#about-page:checked ~ #dns { display: none; }
#about-page:checked ~ nav .link-about { border-bottom: 1px solid black; }

#home-page:checked ~ #about,
#home-page:checked ~ #dns { display: none; }
#home-page:checked ~ nav .link-home { border-bottom: 1px solid black; }

#dns-page:checked ~ #about,
#dns-page:checked ~ #home { display: none; }
#dns-page:checked ~ nav .link-dns { border-bottom: 1px solid black; }

/* Mirror toggles */
#mirrors-none:checked ~ #i2p-list,
#mirrors-none:checked ~ #tor-list { display: none; }
#tor-mirrors:checked ~ #i2p-list { display: none; }
#i2p-mirrors:checked ~ #tor-list { display: none; }

/* Layout */
#third-party-audit { margin-block-start: 2rem; }

.container {
  padding-block: 1rem;
  padding-inline: 3vw;
}

.bg-canary {
  position: relative;
  padding-block: 2rem;
  margin-block: 1rem;
}
.bg-canary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/banner.jpeg");
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.125) saturate(1.5);
  z-index: 10;
}
.bg-canary::after {
  content: "";
  position: absolute;
  inset: 0;
  filter: brightness(0.2);
  z-index: 20;
}
.bg-canary > * { position: relative; z-index: 50; }

.note {
  font-size: 1.25rem;
  font-weight: 800;
}

.header {
  text-align: center;
  display: inline-flex;
  justify-content: center;
  position: relative;
  z-index: 50;
  font-family: Poppins;
  font-weight: 300;
  font-size: 1rem;
  color: rgb(60, 86, 131);
}

.button {
  padding: 1rem 1.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
  flex-basis: 100%;
  max-width: 100%;
  text-align: center;
  color: white;
  cursor: pointer;
  min-width: 100%;
  transition: all 125ms ease-in-out;
  word-wrap: break-word;
}
.button:hover { background-color: #fff; color: black; }

.link-list {
  display: flex;
  flex-wrap: wrap;
  margin-inline: auto;
  width: clamp(200px, 70dvw, 800px);
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 18px;
}

.link {
  color: #000;
  font-weight: 200;
  margin-inline: 0.5rem;
  cursor: pointer;
}

/* Info banner */
.info-banner {
  display: flex;
  padding-block-start: 1rem;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: black;
  user-select: none;
}
.info-banner .x-out {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}
.x-out {
  position: relative;
  border-radius: 100%;
  border: 2px solid red;
  aspect-ratio: 1;
}
.x-out::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  background-color: red;
  width: 2px;
  height: 100%;
  transform: translate(-50%, 0%) rotate(-45deg);
}

/* Footer */
footer {
  display: flex;
  padding-block: 1rem;
  justify-content: center;
  align-items: center;
  color: white;
  flex-wrap: wrap;
}
footer img { display: block; min-width: 100%; height: 48px; }
.break { flex-basis: 100%; height: 0; width: 100%; }

.network-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  color: white;
}
.network-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.network-link label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ccc;
  padding: 0.25rem;
  border-radius: 5%;
  cursor: pointer;
  user-select: none;
}
.network-link label:active { transform: scale(0.925); }
.network-link label > * { margin: 0; }
.network-link label p {
  font-weight: 400;
  font-size: 1rem;
  color: black;
}
.arrow {
  border: solid black;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
}

/* Mirror lists */
#i2p-list, #tor-list {
  padding-block: 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mirror {
  background-color: #efefef;
  position: relative;
  padding-inline: 3rem;
}
.mirror a { font-family: 'Courier New', monospace; }
#tor-list .mirror { background-color: #e8cfee; }
#i2p-list .mirror { background-color: #f3f1c1; }
.mirror .symbol {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 36px;
  background-color: #666;
  border-radius: 2px 0 0 2px;
}
.mirror .symbol::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
}
.mirror .symbol.tor::after { content: 'TOR'; }
.mirror .symbol.i2p::after { content: 'I2P'; }

/* XMR node widget */
.xmr-node {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
