:root {
  color: #fff;
  background-color: #222;
}

::selection {
  color: #fff;
  background-color: #000;
}

::-moz-selection {
  color: #fff;
  background-color: #000;
}

@font-face {
  font-family: TB;
  src: url(/assets/fonts/taylor-belle/TaylorBelle-Regular.otf);
}

@font-face {
  font-family: fancy;
  src: url(/assets/fonts/abundant-script-font/AbundantScriptDemoRegular-GWBg.ttf);
}

body {
  padding: 5%;
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

p {
  font-family: TB;
  font-size: clamp(20px, 3.5vw, 35px);
  margin: 0;
}

a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #666;
  transform: scaleX(1);
  transition: background-color 0.3s ease;
}

a:hover::after {
  background-color: #fff;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.nav-arrow {
  font-family: monospace;
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

.nav-arrow::after {
  display: none;
}

.nav-arrow:hover {
  color: #fff;
}

.details {
  margin-top: 0.75rem;
}

.pubkey-label {
  font-size: 14px;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: monospace;
}

.pubkey-toggle {
  display: flex;
  align-items: center;
  color: #666;
  cursor: default;
  transition: color 0.3s ease;
}

.pubkey-toggle svg {
  transition: transform 0.4s ease;
}

.pubkey-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease 0.1s;
}

.details:hover .pubkey-toggle {
  color: #fff;
}

.details:hover .pubkey-toggle svg {
  transform: rotate(180deg);
}

.details:hover .pubkey-reveal {
  max-height: 200px;
  opacity: 1;
}

.pubkey-value {
  font-family: monospace;
  font-size: 12px;
  color: #aaa;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0.4rem 0 0 0;
}

.wordmark {
  font-family: fancy;
  font-size: clamp(3rem, 18vw, 25vh);
  color: #ccc;
  margin-top: auto;
  line-height: 1;
}

@media (max-width: 768px) {
  .details:hover .pubkey-toggle,
  .details:hover .pubkey-toggle svg,
  .details:hover .pubkey-reveal {
    all: unset;
  }

  .pubkey-toggle {
    display: flex;
    align-items: center;
    color: #666;
    transition: color 0.3s ease;
  }

  .pubkey-toggle svg {
    transition: transform 0.4s ease;
  }

  .pubkey-reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height 0.45s ease,
      opacity 0.35s ease 0.1s;
  }

  .details.open .pubkey-toggle {
    color: #fff;
  }

  .details.open .pubkey-toggle svg {
    transform: rotate(180deg);
  }

  .details.open .pubkey-reveal {
    max-height: 200px;
    opacity: 1;
  }
}