/*
Downloaded from https://cdn.rawgit.com/yegor256/tacit/gh-pages/tacit-css-1.3.3.min.css
Cleaned up from https://www.10bestdesign.com/dirtymarkup/css/
*/

th {
  font-weight: 600
}
td, th {
  border-bottom: 1.08px solid #595959;
  overflow: auto;
  padding: 14.85px 18px;
  text-align: left;
  vertical-align: top
}
thead th {
  border-bottom-width: 2.16px;
  padding-bottom: 6.3px
}
table {
  display: table;
  overflow-x: auto
}
input, textarea, select, button, option, html, body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-stretch: normal;
  font-style: normal;
  font-weight: 400;
  line-height: 29.7px
}
fieldset {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap
}
fieldset legend {
  margin: 18px 0
}
input, textarea, select, button {
  border-radius: 3.6px;
  display: inline-block;
  padding: 9.9px
}
input+label, input+input[type="checkbox"], input+input[type="radio"], textarea+label, textarea+input[type="checkbox"], textarea+input[type="radio"], select+label, select+input[type="checkbox"], select+input[type="radio"], button+label, button+input[type="checkbox"], button+input[type="radio"] {
  page-break-before: always
}
input, select, label {
  margin-right: 3.6px
}
textarea {
  min-height: 90px;
  min-width: 360px
}
label {
  display: inline-block;
}
label+* {
  page-break-before: always
}
label>input {
  margin-bottom: 0
}
input[type="submit"], input[type="reset"], button {
  color: #fff;
  cursor: pointer;
  display: inline;
  margin-right: 7.2px;
  padding: 6.525px 23.4px;
  text-align: center
}
button {
  background: #4a3f9f
}
button:hover {
  background: #2b255d;
  color: #bfbfbf
}
input[type="submit"][disabled], input[type="reset"][disabled], button[disabled] {
  background: #e6e5e5;
  color: #403f3f;
  cursor: not-allowed
}
input[type="submit"], button[type="submit"] {
  background: #275a90;
}
input[type="submit"]:hover, button[type="submit"]:hover {
  background: #173454;
  color: #bfbfbf
}
textarea {
  margin-bottom: 18px
}
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="phone"], input[type="tel"], input[type="number"], input[type="datetime"], input[type="date"], input[type="month"], input[type="week"], input[type="color"], input[type="time"], input[type="search"], input[type="range"], input[type="file"], input[type="datetime-local"], select, textarea {
  border: 1px solid #595959;
  padding: 5.4px 6.3px
}
input[type="checkbox"], input[type="radio"] {
  flex-grow: 0;
  height: 29.7px;
  margin-left: 0;
  margin-right: 9px;
  vertical-align: middle
}
input[type="checkbox"]+label, input[type="radio"]+label {
  page-break-before: avoid
}
select[multiple] {
  min-width: 270px
}
pre, code, kbd, samp, var, output {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14.4px
}
pre {
  border-left: 1.8px solid #59c072;
  line-height: 25.2px;
  overflow: auto;
  padding-left: 18px
}
pre code {
  background: none;
  border: 0;
  line-height: 29.7px;
  padding: 0
}
code, kbd {
  background: #daf1e0;
  border-radius: 3.6px;
  color: #2a6f3b;
  display: inline-block;
  line-height: 18px;
  padding: 3.6px 6.3px 2.7px
}
kbd {
  background: #2a6f3b;
  color: #fff
}
mark {
  background: #ffc;
  padding: 0 3.6px
}
h1, h2, h3, h4, h5, h6 {
  color: #000;
  margin-bottom: 18px
}
h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 41.4px;
  margin-top: 72px
}
h2 {
  font-size: 25.2px;
  font-weight: 400;
  line-height: 30.6px;
  margin-top: 54px
}
h3 {
  font-size: 21.6px;
  line-height: 27px;
  margin-top: 36px
}
h4 {
  font-size: 18px;
  line-height: 23.4px;
  margin-top: 18px
}
h5 {
  font-size: 14.4px;
  font-weight: bold;
  line-height: 21.6px;
  text-transform: uppercase
}
h6 {
  color: #595959;
  font-size: 14.4px;
  font-weight: bold;
  line-height: 18px;
  text-transform: uppercase
}
a {
  color: #275a90;
  text-decoration: none
}
a:hover {
  text-decoration: underline
}
hr {
  border-bottom: 1px solid #595959
}
figcaption, small {
  font-size: 15.3px
}
figcaption {
  color: #595959
}
var, em, i {
  font-style: italic
}
dt, strong, b {
  font-weight: 600
}
del, s {
  text-decoration: line-through
}
ins, u {
  text-decoration: underline
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}
sup {
  top: -.5em
}
sub {
  bottom: -.25em
}
* {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  outline: 0;
  padding: 0;
  vertical-align: baseline
}
html, body {
  width: 100%
}
html {
  height: 100%
}
body {
  background: #f5f5f5;
  color: #1a1919;
}
ul, ol, dl, hr, pre, table, fieldset, figure, address {
  margin-bottom: 29.7px
}
section {
  margin-left: auto;
  margin-right: auto;
  width: 900px
}
article, header, footer {
  padding: 43.2px
}
article {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 7.2px
}
nav {
  text-align: center
}
nav ul {
  list-style: none;
  margin-left: 0;
  text-align: center
}
nav ul li {
  display: inline-block;
  margin-left: 9px;
  margin-right: 9px;
  vertical-align: middle
}
nav ul li:first-child {
  margin-left: 0
}
nav ul li:last-child {
  margin-right: 0
}
ol, ul {
  margin-left: 31.5px
}
li dl, li ol, li ul {
  margin-bottom: 0
}
dl {
  display: inline-block
}
dt {
  padding: 0 18px
}
dd {
  padding: 0 18px 4.5px
}
dd:last-of-type {
  border-bottom: 1.08px solid #595959
}
dd+dt {
  border-top: 1.08px solid #595959;
  padding-top: 9px
}
blockquote {
  border-left: 2.16px solid #595959;
  padding: 4.5px 18px 4.5px 15.84px
}
blockquote footer {
  color: #595959;
  font-size: 13.5px;
  margin: 0
}
blockquote p {
  margin-bottom: 0
}
img {
  height: auto;
  margin: 0 auto
}
figure img {
  display: block
}
@media (max-width: 767px) {
  article {
    border: 0;
    padding: 18px
  }
  header, footer {
    padding: 18px
  }
  textarea, input, select {
    min-width: 0
  }
  fieldset {
    min-width: 0
  }
  fieldset * {
    flex-grow: 1;
    page-break-before: auto
  }
}

/* Customization below */

body {
  padding: 20px;
}
@media (max-width: 767px) {
  body {
    padding: 1px
  }
}
.form, label, input, input[type="submit"], button, select, p {
  margin-bottom: 5px;
}
button { line-height: 1.2em; }
label, input, select {
  line-height: 1.2em;
  padding: 0;
}
input[type="checkbox"], input[type="radio"] {
  margin-right: 0;
  height: auto;
}
table {
  border-collapse: collapse;
}
table, th, td {
  padding: 1px;
  border: 1px solid black;
  vertical-align: middle;
  text-align: center;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  display: inline-block;
}

.position {
  background: linear-gradient(to right, var(--minor) 10%, var(--major) 10%);
}

.rare { background-color: var(--rare); }
.supa_fest { background-color: var(--supa_fest); }
.supa { background-color: var(--supa); }
.uber_fest { background-color: var(--uber_fest); }
.uber { background-color: var(--uber); }
.legend_fest { background-color: var(--legend_fest); }
.legend { background-color: var(--legend); }
.owned { background-color: var(--owned); }
.found { background-color: var(--found); }
.exclusive { background-color: var(--exclusive); }

.minor_rare { --minor: var(--rare); }
.minor_supa_fest { --minor: var(--supa_fest) }
.minor_supa { --minor: var(--supa); }
.minor_uber_fest { --minor: var(--uber_fest); }
.minor_uber { --minor: var(--uber); }
.minor_legend_fest { --minor: var(--legend_fest); }
.minor_legend { --minor: var(--legend); }
.minor_owned { --minor: var(--owned); }
.minor_found { --minor: var(--found); }
.minor_exclusive { --minor: var(--exclusive); }

.major_rare { --major: var(--rare); }
.major_supa_fest { --major: var(--supa_fest); }
.major_supa { --major: var(--supa); }
.major_uber_fest { --major: var(--uber_fest); }
.major_uber { --major: var(--uber); }
.major_legend_fest { --major: var(--legend_fest); }
.major_legend { --major: var(--legend); }
.major_owned { --major: var(--owned); }
.major_found { --major: var(--found); }
.major_exclusive { --major: var(--exclusive); }

.attack { background-color: lavender; }
.triggered_attack { background-color: pink; }
.augmented { padding: 0 4px; border-radius: 4px; }
.augmented_regular, .talents { background-color: khaki; }
.augmented_ultra, .ultra_talents { background-color: salmon; }

.navigate { cursor: help; }
.pick { cursor: cell; }
.picked,
.picked_consecutively,
.next_position {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.picked::after,
.picked_consecutively::after,
.next_position::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 1;
}

.picked::after {
  background: rgba(0, 0, 0, 0.2);
}

.picked_consecutively::after {
  background: rgba(0, 0, 0, 0.5);
}

.next_position::after {
  background: repeating-linear-gradient(
    90deg,
    #00000055  5px, #00000055 15px,
    #00000033 15px, #00000033 25px
  );
}
.menu { display: flex; }
.menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 60px;
  height: 75px;
}
.menu a img {
  width: 60px;
  height: 60px;
}
.menu a span {
  position: absolute;
  bottom: 0;
}
.section { margin-bottom: 15px; }
.cat_avatar { height: 85px; overflow: hidden; }
.cat_avatar img { position: relative; top: -25% }
.border, .border_upper, .border_lower { border: 2px solid; }
.border_upper { border-bottom: none; }
.border_lower { border-top: none; }
.border_middle { border-left: 2px solid; border-right: 2px solid; }
.border_bottom { border-top: 2px solid; }
.for { width: 6em; }
@media (max-width: 767px) {
  .for { width: auto; }
}
.filter { text-align: left; padding-left: 5px; }
.cats_by_rarity { margin-bottom: 18px; }
.cat { vertical-align: bottom; }
#notice { background-color: pink; }
#seed_input { width: 10em; }
#rare_input, #supa_input, #uber_input { width: 5em; }
#ui_select, #theme_select { width: 4.3em; }
#highlighting_select { width: 3.6em; }
#name_select, #count_input, #level_input { width: 3.5em; }
#display_select { width: 3.2em; }
.track_avatar_wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
}
.track_avatar_clip {
  --track_avatar_width: 4.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--track_avatar_width);
  height: calc(var(--track_avatar_width) * 85 / 110);
  overflow: hidden;
  vertical-align: bottom;
}
.track_avatar {
  /* Assets are 128x128 with opaque bounds 110x85 and margins L9 T21 R9 B22. */
  width: calc(var(--track_avatar_width) * 128 / 110);
  height: calc(var(--track_avatar_width) * 128 / 110);
  max-width: none;
  object-fit: contain;
}
