* {
  z-index: 20;
}
img {
  image-rendering: pixelated;
}
:root {
  color-scheme: dark;
}
a {
  text-decoration: none;
  color: inherit;
}
a:visited {
  color: inherit;
}
a:active {
  color: inherit;
}
img.bg {
  position: fixed;
  top: 1em;
  right: 1em;
  height: 40em;
  max-height: 50vw;
  opacity: 10%;
  pointer-events: none;
  z-index: 0;
}
:where(h1) {
  margin-block: 0.67em;
  font-size: 2em;
}
html,
body {
  color: white;
  background-color: #333;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
}
article.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
  position: relative;
  overflow: auto;
  flex-grow: 1;
  margin: 0;
  padding-bottom: 2em;
}
nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  height: 100%;
  border-right: 1px solid white;
  overflow-y: auto;
}
nav > *:not(.sep) {
  border-bottom: 1px solid white;
  padding: 0.5em;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 0.5em;
}
nav > *:not(.sep).selected {
  background-color: #008282;
}
nav > *:not(.sep):hover:not(.selected, .sep, form) {
  background-color: #808080;
}
nav > *:not(.sep) > img {
  height: 2em;
  margin-right: 0.5em;
}
nav > form > input[type=text] {
  border-radius: 4px;
  background-color: #515151;
  color: white;
  font-family: monospace;
  max-width: 4em;
}
@media (min-width: 600px) {
  nav > form > input[type=text] {
    max-width: 7em;
  }
}
nav > div.sep {
  min-height: 5px;
  border-bottom: 1px solid white;
}
a.unit-link {
  font-family: monospace;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  gap: 1em;
}
a.unit-link:hover {
  color: lightgrey;
}
section.families {
  display: grid;
  gap: 1em;
  grid-template-rows: repeat(10, 1fr);
  grid-auto-flow: column;
}
@media (min-width: 450px) {
  section.families {
    grid-template-rows: repeat(5, 1fr);
  }
}
section.families > a {
  font-size: 1.5em;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.families > a > img {
  height: 2em;
}
section.family {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
  gap: 1.5em;
}
section.family > h1 img {
  height: 3em;
  margin-right: 1em;
}
section.family > div.monsters {
  display: grid;
  grid-template-columns: repeat(auto-fit, 9em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 50em);
  place-items: stretch;
  place-content: center;
}
section.family > div.monsters > a {
  border: 1px solid white;
  border-radius: 6px;
  padding: 0.5em;
}
section.family > div.combinations {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) {
  section.family > div.combinations {
    grid-template-columns: repeat(2, 1fr);
  }
}
section.unit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
section.unit > h1 > a,
section.unit > h2 > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
section.unit > h1 > a > img,
section.unit > h2 > a > img {
  height: 3em;
}
@media (min-width: 600px) {
  section.unit > h1 > a,
  section.unit > h2 > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
  }
}
section.unit > div.skills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
}
@media (min-width: 600px) {
  section.unit > div.skills {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5em;
  }
}
section.unit > div.skills > a {
  border: 1px solid white;
  border-radius: 6px;
  padding: 0.5em;
  margin-bottom: 0.5em;
  margin-left: 1em;
}
section.unit > div.combinations,
section.unit > div.gates {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) {
  section.unit > div.combinations,
  section.unit > div.gates {
    grid-template-columns: repeat(2, 1fr);
  }
}
section.unit > div.combinations > p,
section.unit > div.gates > p {
  grid-column: 1 / -1;
}
section.unit > div.combinations > a.gate-link,
section.unit > div.gates > a.gate-link {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.unit > div.combinations > a.gate-link:last-child:nth-child(odd),
section.unit > div.gates > a.gate-link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  place-self: center;
}
section.unit > div.resistances {
  display: grid;
  grid-template-columns: repeat(auto-fit, 15em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 65em);
  place-items: stretch;
  place-content: center;
}
section.unit > div.resistances > div {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, 6em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 30em);
  place-items: stretch;
  place-content: center;
  align-content: stretch;
  justify-content: center;
  align-items: start;
  grid-auto-rows: 2em;
}
section.unit > div.resistances > div > a {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.unit > div.resistances > div > h5 {
  grid-column: 1 / -1;
  place-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
section.combo-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
}
a.skill-link {
  font-family: monospace;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
a.skill-link:hover {
  color: lightgrey;
}
section.skill-list,
section.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, 6em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 40em);
  place-items: stretch;
  place-content: center;
}
section.skill-list > h1,
section.skills > h1 {
  grid-column: 1 / -1;
  place-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
section.skill-list > a,
section.skills > a {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.skill {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
  gap: 1em;
}
section.skill > p {
  margin-right: 0.5em;
  margin-left: 0.5em;
  text-wrap: stable;
  max-width: 10em;
}
@media (min-width: 600px) {
  section.skill > p {
    max-width: 20em;
  }
}
section.skill > div.section {
  display: grid;
  justify-items: center;
  align-items: start;
  grid-template-columns: 1fr;
  gap: 1em;
}
@media (min-width: 600px) {
  section.skill > div.section {
    grid-auto-flow: column;
    grid-template-rows: auto 1fr;
  }
}
section.skill > div.section > div.details,
section.skill > div.section > div.requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-content: center;
  gap: 0.5em;
  align-items: center;
}
section.skill > div.section > div.details > *:nth-child(2n),
section.skill > div.section > div.requirements > *:nth-child(2n) {
  justify-self: end;
}
section.skill div.progression {
  display: grid;
  grid-template-columns: repeat(auto-fit, 8em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 40em);
  place-items: stretch;
  place-content: center;
}
section.skill div.progression a {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.skill div.progression a.selected {
  border-color: gold;
}
section.skill div.details,
section.skill div.requirements,
section.skill div.discoverable-via,
section.skill div.combines-into {
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  padding-left: 0.5em;
  padding-bottom: 0.5em;
}
section.skill div.details a,
section.skill div.requirements a,
section.skill div.discoverable-via a,
section.skill div.combines-into a {
  border: 1px solid white;
  border-radius: 6px;
  padding: 0.5em;
}
section.skill div.details section.skill-combine,
section.skill div.requirements section.skill-combine,
section.skill div.discoverable-via section.skill-combine,
section.skill div.combines-into section.skill-combine {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}
section.skill div.discoverable-via,
section.skill div.combines-into {
  border: none;
}
section.skill div.discoverable-via a {
  margin-top: 0.5em;
  margin-right: 0.5em;
}
section.skill div.learnable-by {
  display: grid;
  grid-template-columns: repeat(auto-fit, 9em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 40em);
  place-items: stretch;
  place-content: center;
}
section.skill div.learnable-by a {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.combination {
  border: 1px solid white;
  border-radius: 6px;
  display: grid;
  place-items: center;
  grid-template: "result result" auto "base secondary" auto "notes notes" auto / 1fr 1fr;
}
@media (min-width: 600px) {
  section.combination {
    grid-template: "result base secondary" auto "notes notes notes" auto / 1fr 1fr 1fr;
  }
}
section.combination a.selected {
  color: gold;
}
section.combination a:hover:not(.selected) {
  color: lightgrey;
}
section.combination a > img {
  height: 2em;
  margin-right: 0.5em;
}
section.combination > * {
  padding-left: 0.25em;
  padding-right: 0.25em;
}
section.combination div.result {
  grid-area: result;
  place-self: stretch;
  background-color: #5d5d5d;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom: 1px solid lightgrey;
}
section.combination div.result > a {
  height: 100%;
  width: 100%;
  justify-content: center;
}
@media (min-width: 600px) {
  section.combination div.result {
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0;
    border-right: 1px solid lightgrey;
    border-bottom: 0;
  }
}
section.combination div.base {
  grid-area: base;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
  padding: 0.5em;
}
section.combination div.equals {
  grid-area: equals;
}
section.combination div.plus {
  grid-area: plus;
}
section.combination div.secondary {
  grid-area: secondary;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
  padding: 0.5em;
}
section.combination aside {
  grid-area: notes;
  place-self: stretch;
  max-width: 40em;
  padding: 0.5em;
  font-style: italic;
  border-top: 1px solid grey;
}
section.skill-combine {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.skill-combine > div.result,
section.skill-combine > div.base {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
}
section.skill-combine > div.result > a,
section.skill-combine > div.base > a {
  margin: 0.25em;
}
section.skill-combine > div.result > a.selected,
section.skill-combine > div.base > a.selected {
  border-color: gold;
}
section.skill-combine > div.equals {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
  margin-left: 0.25em;
  margin-right: 0.25em;
  font-weight: 800;
  font-size: 2em;
  height: 1em;
}
@media (min-width: 600px) {
  section.skill-combine > div.equals {
    margin-left: 1em;
    margin-right: 1em;
  }
}
div.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, 9em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 40em);
  place-items: stretch;
  place-content: center;
}
div.search-results > *:first-child {
  grid-column: 1 / -1;
  place-self: center;
}
div.search-results > a {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.farm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
section.farm > p {
  max-width: 6em;
}
@media (min-width: 450px) {
  section.farm > p {
    max-width: 18em;
  }
}
@media (min-width: 1000px) {
  section.farm > p {
    max-width: 40em;
  }
}
section.farm div.gender {
  position: relative;
  cursor: pointer;
}
section.farm div.gender input[type=checkbox] {
  width: 2em;
  height: 2em;
  cursor: pointer;
}
section.farm div.gender input[type=checkbox] ~ img[src="/img/male.png"],
section.farm div.gender input[type=checkbox] ~ img[src="/img/female.png"] {
  pointer-events: none;
  position: absolute;
  width: 1.7em;
  height: 1.7em;
  top: 0.175em;
  left: 0.25em;
}
section.farm div.gender input[type=checkbox]:checked ~ img[src="/img/female.png"] {
  display: none;
}
section.farm div.gender input[type=checkbox]:not(:checked) ~ img[src="/img/male.png"] {
  display: none;
}
section.farm div.possibilities > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
  margin-bottom: 0.75em;
}
section.farm div.possibilities > div > a {
  margin-right: 3%;
  margin-left: 69%;
  border-left: 1px solid white;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 0.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
  background-color: #484848;
}
section.farm div.possibilities > div > a:active,
section.farm div.possibilities > div > a:hover {
  background-color: grey;
}
section.farm > form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5em;
}
section.farm > form > div.monsters {
  display: grid;
  gap: 0.5em;
  grid-template-rows: repeat(20, 1fr);
  grid-auto-flow: column;
}
@media (min-width: 450px) {
  section.farm > form > div.monsters {
    grid-template-rows: repeat(10, 1fr);
  }
}
@media (min-width: 1000px) {
  section.farm > form > div.monsters {
    grid-template-rows: repeat(4, 1fr);
  }
}
section.farm > form > div.monsters > div {
  display: grid;
  grid-template: "name name gender" 1fr "image filter delete" 1fr / 3em 3em 1fr;
  gap: 0.25em;
  place-items: center;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.farm > form > div.monsters > div > input[type=text] {
  grid-area: name;
}
section.farm > form > div.monsters > div > div.gender {
  grid-area: gender;
}
section.farm > form > div.monsters > div > div.gender > img {
  height: 2em;
}
section.farm > form > div.monsters > div > a.filter {
  grid-area: filter;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.farm > form > div.monsters > div img {
  grid-area: image;
}
section.farm > form input[type=text] {
  color: black;
  background-color: darkgrey;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.5em;
  width: 6em;
}
section.farm > form input[type=text]:active,
section.farm > form input[type=text]:hover {
  background-color: lightgrey;
}
section.farm > form input[type=text][invalid] {
  border: 2px solid red;
}
section.farm > form input[type=submit] {
  color: black;
  border: 1px solid white;
  padding: 0.5em;
  margin: 0.5em;
  border-radius: 6px;
  background-color: darkgrey;
  cursor: pointer;
}
section.farm > form input[type=submit]:hover {
  background-color: lightgrey;
}
a.gate-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
a.gate-link > img {
  height: 2em;
  margin-right: 0.5em;
}
section.gates {
  display: grid;
  grid-template-columns: repeat(auto-fit, 20em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 80em);
  place-items: stretch;
  place-content: center;
  column-gap: 2em;
}
section.gates > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-content: center;
  gap: 0.5em;
}
section.gates > div > h1 {
  place-self: center;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
section.gates > div > a {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
section.gates > div > a.beginning,
section.gates > div > a.reflection {
  grid-column: 1 / -1;
}
section.gate {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
section.gate > h1 > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
@media (min-width: 600px) {
  section.gate > h1 > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
  }
}
section.gate > div.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-content: center;
  gap: 0.5em;
  padding: 1em;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
}
section.gate > div.details > p {
  max-width: 5em;
}
@media (min-width: 600px) {
  section.gate > div.details > p {
    max-width: 10em;
  }
}
section.gate > div.monsters {
  display: grid;
  grid-template-columns: repeat(auto-fit, 9em);
  gap: 0.5em;
  width: min(calc(100% - 1em), 40em);
  place-items: stretch;
  place-content: center;
}
section.gate > div.monsters > * {
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  gap: 0.25em;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.gate > div.bosses {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
}
@media (min-width: 800px) {
  section.gate > div.bosses {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5em;
  }
}
section.gate > div.bosses > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.gate > div.bosses > div > div.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-content: center;
  gap: 0.5em;
}
section.gate > div.bosses > div > div.details > div.skills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5em;
}
section.gate > div.bosses > div > div.details > div.skills > a.skill-link {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 6px;
}
section.gate > div.bosses > div > h4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}
section.gate > div.bosses > div > div.join-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-content: center;
  gap: 0.5em;
}
