:root {
  --color-neon: #04d9ff;
  --color-highlight: #0437F2;
  --color-bg: #000080;
  --color-hyperlink: #fff700;
}

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

body {
  height: 100vh;
  margin: 0;
  background: radial-gradient(
    circle at center,
    var(--color-bg) 30%,
    #000016 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 100ch;
  margin: 1em auto;
  margin-top: 1.25em;
  padding: 0 1em;
  text-align: center;
  font-family: 'Audiowide', sans-serif;
  color: var(--color-neon);
}

header h1 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
  color: var(--color-neon);
  opacity: 0.7;
  font-family: 'Audiowide', sans-serif;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  gap: 1em;
  font-size: 0.9rem;
  opacity: 0.6;
}

ul li a {
  color: var(--color-neon);
  text-decoration: none;
  border-bottom: 1px none transparent;
  padding: 0.25em;
  transition: opacity 0.2s, border-color 0.2s;
}

ul li a:hover,
ul li a:focus {
  opacity: 1;
  border-bottom-color: var(--color-neon);
}

.main-content {
    padding-top: 16vh;
    padding-bottom: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: var(--color-neon);
    text-decoration: none;
    border-bottom: .0625em dashed var(--color-neon);
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-hyperlink);
    border-bottom-color: var(--color-hyperlink);
    outline: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

#gen-npc {
  display: block;
  width: 40ch;
  max-width: 40ch;
  min-width: 40ch;
  min-height: 10em;
  margin: 0 auto;
  padding: 0 1em;
  color: white;
  font-family: 'Oxanium', sans-serif;
  font-size: 1.5rem;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  overflow-y: auto;
  max-height: 15em;
}

#gen-npc > div {
  width: 100%;
  margin-bottom: 0.5em;
}

#gen-ancestry,
#gen-attitude,
#gen-detail {
  font-weight: 400;
}

#gen-ancestry span,
#gen-attitude span,
#gen-detail span {
  font-weight: 800;
}

.button {
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 0.125em;
  background: transparent;
  border: none;
  position: relative;
  font-size: 3rem;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-neon);
  border: var(--color-neon) 0.03125em solid;
  padding: 0.25em 1em;
  border-radius: 0.5em;
  overflow: visible;

  text-shadow:
    0 0 0.125em var(--color-neon),
    0 0 0.125em var(--color-highlight);

  box-shadow:
    inset 0 0 0.75em 0 var(--color-neon),
    0 0 .03125em 0 #025f70;

  transition:
    background-color 100ms linear,
    color 100ms linear,
    transform 50ms ease-in-out,
    box-shadow 50ms ease-in-out;
}

.button::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 120%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-neon);
  border-radius: inherit;
  z-index: -1;

  transform: perspective(1em) rotateX(40deg) scale(1, 0.35);
  filter: blur(1.5em);
  opacity: 0.7;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: inherit;
  box-shadow: 0 0 0.5em 0.1em var(--color-neon);
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  transition:
    opacity 100ms linear,
    box-shadow 100ms linear;
}

.button:hover,
.button:focus {
  background: var(--color-neon);
  color: var(--color-bg);
  text-shadow: none;
}

.button:hover::before,
.button:focus::before {
  opacity: 1;
}

.button:hover::after,
.button:focus::after {
  opacity: 1;
  box-shadow:
    0 0 0.75em 0.15em var(--color-neon),
    0 0 0.25em 0.05em var(--color-highlight);
}

.button:active {
  transform: scale(0.96);
  box-shadow:
    inset 0 0 0.5em 0 var(--color-highlight),
    0 0 0.2em 0 #01395d;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(.1875em);
}

.modal-content {
  background-color: #000022;
  margin: 10% auto;
  padding: 2em;
  border: 1px solid var(--color-neon);
  width: 80%;
  max-width: 600px;
  color: white;
  font-family: 'Oxanium', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  border-radius: 0.5em;
  box-shadow: 0 0 1em var(--color-neon);
}

.modal-content a {
  color: var(--color-neon);
  border-bottom: none;
}

.modal-content a:hover {
  color: var(--color-hyperlink);
}

.close {
  color: var(--color-neon);
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: -1em;
  margin-right: -1em;
}

.close:hover {
  color: var(--color-hyperlink);
}