@font-face {
  font-family: LateFont;
  src: url(../lib/assassin.ttf);
  font-weight: bold;
}

:root {
  --primary-color: var(--text-color);
  --text-color: #333;
  --background-color: #fff;
  --background-color-2: #e7e7e7;
  --common-color: #4682b4;
  --rare-color: #ab153f;
  --epic-color: #9370db;
  --ultimate-color: #fe6006;
  --passive-color: #32936f;
  --fire-color: #f90d1b;
  --water-color: #1f50f1;
  --air-color: #00cf35;
  --earth-color: #9d2400;
  --light-color: #ffbf00;
  --dark-color: #9d00fe;
  --content-width: 800px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #c8c3bc;
    --background-color: #181a1b;
    --background-color-2: #111111;
  }
}

body {
  min-block-size: 100vh;
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.justify {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.center {
  text-align: center;
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

.bordered {
  border: 1px dashed var(--text-color);
}

.bordered-bottom {
  border-bottom: 1px dashed var(--text-color);
}

.trait {
  color: #9b111e;
}

.manoeuvre {
  color: #00c6cf;
}

.error {
  color: #990000 !important;
  font-weight: bold;
}

.error p {
  font-weight: bold;
  width: 100%;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wrap {
  word-break: break-all;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.no-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.padding-top {
  padding-top: 8px !important;
}

.padding-right {
  padding-right: 8px !important;
}

.padding-bottom {
  padding-bottom: 8px !important;
}

.padding-left {
  padding-left: 8px !important;
}

@media (min-width: 766px) {
  .padding-left-md {
    padding-left: 8px !important;
    padding-right: 0 !important;
  }

  .padding-right-md {
    padding-left: 0 !important;
    padding-right: 8px !important;
  }
}

@media (min-width: 1200px) {
  .padding-left-lg {
    padding-left: 8px !important;
    padding-right: 0 !important;
  }

  .padding-right-lg {
    padding-left: 0 !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 1200px) {
  .padding-right-lg {
    margin-bottom: 8px;
  }
}

.padding-left {
  padding-left: 16px !important;
  padding-right: 0 !important;
}

.padding-right {
  padding-left: 0 !important;
  padding-right: 16px !important;
}

.no-margin {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.align-left {
  text-align: left;
}

@media (max-width: 766px) {
  .hide-on-phone {
    display: none;
  }
}

@media (max-width: 360px) {
  .hide-padding-xs {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 766px) {
  .hide-padding-sm {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.non-chrome-hidden {
  display: none !important;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
  .non-chrome-hidden.block {
    display: block !important;
  }

  .non-chrome-hidden.grid {
    display: grid !important;
  }

  .non-chrome-hidden.inline {
    display: inline !important;
  }

  .non-chrome-hidden.inline-block {
    display: inline-block !important;
  }
}

p {
  line-height: 1.5;
}

a.disabled {
  color: var(--text-color);
  pointer-events: none;
  cursor: default;
  font-weight: normal;
  text-decoration: none;
  border: none;
}

img {
  -moz-transition: opacity 1s;
  /* Firefox 4 */
  -webkit-transition: opacity 1s;
  /* Safari and Chrome */
  -o-transition: opacity 1s;
  transition: opacity 1s;
}

.socialIcon {
  border: none;
}

.socialIcon i {
  font-size: 25px;
}

#return-to-top-button,
#set-toggle {
  z-index: 1052;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--text-color);
  opacity: 0.8;
  width: 50px;
  height: 50px;
  text-decoration: none;
  -webkit-border-radius: 35px;
  -moz-border-radius: 35px;
  border-radius: 50%;
  display: none;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#return-to-top-button i,
#set-toggle i {
  color: var(--background-color);
  margin: 0;
  position: relative;
  left: 16px;
  top: 13px;
  font-size: 19px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#return-to-top-button b,
#set-toggle b {
  color: var(--background-color);
  margin: 0;
  font-size: 16px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: block;
}

#return-to-top-button b:first-child,
#set-toggle b:first-child {
  position: relative;
  left: 12px;
  top: 6px;
}

#return-to-top-button b:last-child,
#set-toggle b:last-child {
  display: block;
  position: relative;
  left: 21px;
  top: -3px;
}

@media (min-width: 1240px) {

  #return-to-top-button,
  #set-toggle {
    width: 70px;
    height: 70px;
  }

  #return-to-top-button i,
  #set-toggle i {
    font-size: 30px;
    top: 19px;
    left: 22px;
  }

  #return-to-top-button b,
  #set-toggle b {
    font-size: 19px;
  }

  #return-to-top-button b:first-child,
  #set-toggle b:first-child {
    position: relative;
    left: 20px;
    top: 12px;
  }

  #return-to-top-button b:last-child,
  #set-toggle b:last-child {
    display: block;
    position: relative;
    left: 29px;
    top: 8px;
  }
}

#return-to-top-button:hover,
#set-toggle:hover {
  opacity: 1;
  background: var(--primary-color);
}

#set-toggle {
  visibility: hidden;
  right: 86px;
}

#set-toggle:not(.hidden) {
  visibility: visible;
}

@media (min-width: 1240px) {
  #set-toggle {
    right: 106px;
  }
}

.hoverable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-style: italic;
}

.hoverable:hover {
  font-weight: bold;
  cursor: help;
}

.hoverable .stat-tooltip {
  display: none;
  z-index: 10;
  position: absolute;
  padding: 10px;
  background-color: var(--background-color-2);
  bottom: 40px;
  left: 20px;
  width: 260px;
  font-weight: normal;
  color: #666666;
  font-size: 14px;
  font-style: italic;
  font-weight: normal;
  line-height: 18px;
  border-radius: 6px;
}

/**
 * Reset some basic elements
 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
hr,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

label {
  font-weight: normal;
}

/**
 * Basic styling
 */
body {
  font: 400 1.6rem/1.5 "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: 'kern' 1;
  -moz-font-feature-settings: 'kern' 1;
  -o-font-feature-settings: 'kern' 1;
  font-feature-settings: 'kern' 1;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.index {
  background-color: var(--background-color-2);
}

/**
 * Lists
 */
ul,
ol {
  margin-left: 30px;
}

ul,
ol,
table {
  break-inside: avoid-column;
}

li:not(.select2-results__option) {
  list-style-type: none;
}

li:not(.select2-results__option):before {
  display: inline;
  position: absolute;
  margin-left: -25px;
  margin-right: 10px;
  margin-top: 5px;
  width: 14px;
  height: 14px;
  content: '';
  background: var(--text-color);
  -webkit-clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

li:not(.select2-results__option) li:not(.select2-results__option):before {
  -webkit-clip-path: unset;
  clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%);
  content: '';
  width: 12px;
  height: 12px;
  background: var(--text-color);
  margin-top: 6px;
  margin-left: -24px;
}

li:not(.select2-results__option) li:not(.select2-results__option) li:not(.select2-results__option):before {
  -webkit-clip-path: unset;
  clip-path: unset;
  width: 10px;
  height: 10px;
  background: var(--text-color);
  margin-top: 7px;
  margin-left: -23px;
}

li:not(.select2-results__option) li:not(.select2-results__option) li:not(.select2-results__option) li:not(.select2-results__option):before {
  -webkit-clip-path: unset;
  clip-path: unset;
  width: 0;
  height: 0;
  background: transparent;
  margin-top: 8px;
  margin-left: -20px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 10px solid var(--text-color);
}

li:not(.select2-results__option)>ul,
li:not(.select2-results__option)>ol {
  margin-bottom: 0;
}

.latefont {
  font-family: LateFont;
}

p,
li,
pre,
div.SkillTextView,
div.originalSkillTextView {
  max-width: 800px;
}

pre.highlight {
  background-color: var(--background-color-2);
}

pre.highlight code {
  color: var(--rare-color);
}

.legendBuilderWrapper {
  max-width: calc(var(--content-width) * 1.5);
}

.abilityTable h3 {
  margin-top: 15px;
}

.abilityTable span.ability {
  display: block;
  margin-bottom: 7px;
}

button {
  color: var(--text-color);
  background-color: var(--background-color-2);
  font-size: 16px;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
  text-decoration: none;
  font-weight: bold;
  opacity: 0.9;
}

button i {
  margin-right: 8px;
}

button:hover {
  opacity: 1;
  background-color: var(--primary-color);
  color: var(--background-color);
}

button:focus {
  background-color: #9370db;
  border: 2px solid #9370db;
  color: var(--background-color);
  outline: none;
}

button#urlButton,
button.toggleButton {
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  padding: 12px;
  height: 52px;
}

button#urlButton i,
button.toggleButton i {
  color: var(--primary-color);
  margin: 0 16px;
  font-size: 24px;
}

button#urlButton:hover,
button#urlButton:active,
button#urlButton:focus,
button#urlButton:focus-visible,
button.toggleButton:hover,
button.toggleButton:active,
button.toggleButton:focus,
button.toggleButton:focus-visible {
  color: var(--text-color);
  background-color: var(--background-color);
}

button.small {
  padding: 4px;
  font-size: 12px;
  margin: 0 8px;
}

button.common {
  border-color: #4682b4;
}

button.rare {
  border-color: #ab153f;
}

button.epic {
  border-color: #9370db;
}

button.ultimate {
  border-color: #fe6006;
}

button.common:focus,
button.common:hover,
button.rare:focus,
button.rare:hover,
button.epic:focus,
button.epic:hover,
button.ultimate:focus,
button.ultimate:hover {
  color: var(--text-color);
  background-color: unset;
}

button:disabled {
  opacity: 0.4 !important;
  background-color: rgba(148, 152, 155, 0.5) !important;
  color: var(--text-color) !important;
}

button:disabled span {
  opacity: 1 !important;
}

.card {
  padding: 16px;
  background-color: white;
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

.card p {
  margin: 8px 0;
}

input[type='text'],
input[type='number'] {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0 8px;
  height: 35px;
  border: none;
  box-shadow: 0 0 0 1px #333;
  -webkit-appearance: none;
  -webkit-box-shadow: 0 0 0 1px #333;
  background-color: var(--background-color);
}

textarea {
  resize: none;
  width: 100%;
  border-radius: 6px;
  padding: 8px;
  border: none;
  box-shadow: 0 0 0 1px #333;
  -webkit-appearance: none;
  -webkit-box-shadow: 0 0 0 1px #333;
  background-color: var(--background-color);
}

select {
  max-width: 100%;
  width: 100%;
  border-radius: 6px;
  padding: 0 4px;
  border: none;
  box-shadow: 0 0 0 1px #333;
  -webkit-box-shadow: 0 0 0 1px #333;
  background-color: var(--background-color);
}

.select2 {
  border-radius: 6px;
  height: 35px;
  width: 100% !important;
  border: none;
  box-shadow: 0 0 0 1px #333;
  -webkit-appearance: none;
  -webkit-box-shadow: 0 0 0 1px #333;
  background-color: var(--background-color);
}

.select2 .selection {
  width: 100%;
  padding: 0 4px;
}

.select2 .selection .select2-selection {
  height: 35px;
  border: none;
}

.select2 .selection .select2-selection .select2-selection__rendered {
  height: 35px;
  line-height: 35px;
  color: var(--text-color);
  background-color: var(--background-color);
}

@media screen and (max-width: 999px) {
  .select2 .selection .select2-selection .select2-selection__rendered {
    max-width: calc(100vw - 30px);
  }
}

.select2 .selection .select2-selection .select2-selection__arrow {
  top: 5px;
  right: 8px;
  width: 20px;
}

.select2-search.select2-search--dropdown {
  background-color: var(--background-color-2);
}

.select2-search.select2-search--dropdown .select2-search__field {
  background-color: var(--background-color-2);
}

.select2-results {
  background-color: var(--background-color-2);
}

.select2-results__option.select2-results__option--selectable.select2-results__option--selected {
  background-color: var(--primary-color);
}

.imagewithText {
  height: 200px;
  background-position: center center;
  background-size: cover;
}

@media screen and (max-width: 992px) {
  .imagewithText {
    height: 100px;
    margin-bottom: 20px;
  }
}

.classImageLarge {
  border-radius: 6px;
  margin-bottom: 25px;
  max-height: 300px;
}

.randomClasses .mediaLink img {
  height: unset;
}

h1,
h2,
h3,
h4 {
  color: var(--text-color);
  font-weight: bold;
  margin-bottom: 8px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

span {
  display: inline-block;
}

hr {
  margin: 20px 0;
  border-top: 1px dashed var(--text-color);
}

iframe {
  width: 50%;
  height: 240px;
}

.quote {
  text-align: center;
  font-weight: bold;
}

.quote .quoteTitle {
  font-weight: normal;
  text-align: center;
}

.boxLabel {
  padding-left: 5px;
  padding-right: 15px;
}

.clickableHeader {
  font-weight: bold;
  border: none;
}

.ll-header {
  padding-top: 10px;
  background-color: #ededed;
}

.ll-row {
  padding-top: 10px;
  border: 1px dashed #ededed;
}

.selectBox {
  margin-bottom: 5px;
}

.monsterMaker .totalColumn strong {
  display: block;
  margin-bottom: 8px;
}

.monsterMaker .totalColumn strong {
  display: block;
  margin-bottom: 8px;
}

@media (min-width: 992px) {
  .monsterMaker>div {
    padding: 0 5px !important;
  }
}

.monsterMaker p,
.monsterMaker input,
.monsterMaker select {
  height: 35px;
  line-height: 35px;
  margin-bottom: 10px;
  font-size: 14px;
}

@media (max-width: 500px) {

  .monsterMaker p,
  .monsterMaker strong {
    font-size: 12px;
  }
}

.monsterMaker .offSetInput,
.monsterMaker .offsetTitle {
  display: none;
}

.monsterMaker .offSetInput {
  color: #777;
}

@media (max-width: 750px) {
  .monsterMaker .scaling {
    font-size: 3vw;
  }
}

@media (min-width: 750px) {
  .monsterMaker .scaling {
    font-size: 16px;
  }
}

.printedSkill {
  margin-bottom: 16px;
}

.equipmentCategory .equipmentBlock {
  padding: 5px;
}

.equipmentCategory .equipmentBlock div {
  border-radius: 6px;
  border: var(--primary-color) dashed 1px;
  display: block;
  padding: 5px;
  min-height: 120px;
}

.equipmentCategory .equipmentBlock p {
  text-align: left;
  font-size: 14px;
  margin: 0;
}

.statBumperWrapper {
  height: 45px;
}

.statBumper {
  cursor: pointer;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
  display: inline-block;
  height: 32px;
  vertical-align: middle;
  color: var(--primary-color);
  border-radius: 6px;
  padding: 2px 10px;
  margin: 2px;
  font-size: 20px;
}

.statBumper:hover {
  color: var(--primary-color);
}

#abilityPointLeftMessage {
  display: none;
}

#digitalCooldowns,
#basicActions {
  display: none;
}

.printedResult {
  height: 30px;
  line-height: 22px;
  padding: 4px 10px;
  margin: 3px;
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  color: var(--text-color);
  background-color: var(--background-color-2);
  font-weight: bold;
  width: 54px;
  text-align: center;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  border-radius: 6px;
}

.printedResult.inverse {
  background-color: var(--background-color);
}

.printedResultSmall {
  line-height: 22px;
  padding: 0 2px;
  margin: 3px 0;
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  color: var(--text-color);
  background-color: var(--background-color-2);
  font-weight: bold;
  text-align: center;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  border-radius: 6px;
  border: none;
}

.printedResultSmall.clickable {
  border: 1px dashed var(--primary-color);
  cursor: pointer;
}

.statLine {
  line-height: 36px;
  vertical-align: middle;
}

@media (max-width: 320px) {
  .statLine {
    line-height: 18px;
  }
}

.battlestat {
  display: flex;
  flex-wrap: wrap;
  min-height: 36px;
}

.battlestat .formula {
  color: #666666;
  font-size: 14px;
  display: none;
  padding-left: 5px;
  line-height: 36px;
}

@media (max-width: 320px) {
  .battlestat {
    display: block;
    flex-wrap: unset;
  }

  .battlestat .formula {
    line-height: unset;
    font-size: 11px;
  }
}

.subtext {
  color: #666666;
  font-size: 14px;
  font-weight: normal;
}

.text-color {
  color: var(--text-color);
}

.background-color {
  color: var(--background-color);
}

.spacer-bottom {
  padding-bottom: 10px;
}

@media (max-width: 320px) {
  .subtext {
    font-size: 11px;
  }
}

.abilityLine {
  margin: 8px 0;
}

@media (max-width: 320px) {

  p,
  span,
  strong,
  li,
  select {
    font-size: 12px;
  }

  .printedResult {
    width: 40px;
  }
}

.equipmentBox {
  margin-bottom: 12px;
}

.class-picker {
  margin-top: 16px;
}

@media (max-width: 360px) {
  .class-picker>div.col-xs-12.col-md-4 {
    padding: 0 !important;
  }
}

.skillBlock {
  margin-bottom: 8px;
}

.skillBlock label {
  margin: 0;
}

.levelUpTable {
  max-width: 600px;
  width: 100%;
}

.levelUpTable tr:first-of-type {
  border-top: dotted 1px var(--text-color);
}

.levelUpTable th:first-of-type {
  border-left: dotted 1px var(--text-color);
}

.levelUpTable th,
.levelUpTable td {
  border-right: solid 1px var(--text-color);
  border-bottom: dotted 1px var(--text-color);
  padding: 10px 5px;
  text-align: center;
}

.levelUpTable th p,
.levelUpTable td p {
  text-align: center;
}

select {
  height: 35px;
  line-height: 35px;
  margin-bottom: 10px;
  font-size: 14px;
}

a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: normal;
  border-bottom: 1px solid;
}

a:visited {
  color: var(--text-color);
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  background-color: var(--background-color);
}

a:focus {
  color: #9370db;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

a.mediaLink {
  display: block;
  text-align: center;
  margin: 8px 0;
  border: 2px solid var(--text-color);
  border-radius: 6px;
  text-decoration: none;
  background-color: var(--background-color);
}

a.mediaLink img {
  border-radius: 3px 3px 0 0;
  width: 100%;
}

a.mediaLink h3,
a.mediaLink span {
  margin-bottom: 8px;
}

a.mediaLink:hover {
  border-color: var(--primary-color);
}

a.mediaLink:hover h3 {
  color: var(--primary-color);
}

a.mediaLink:focus {
  border-color: #9370db;
}

a.mediaLink:focus h3 {
  color: #9370db;
}

.mediaThumb {
  width: 250px;
  margin: 20px;
}

@media (max-width: 768px) {
  .mediaThumb {
    width: 120px;
    margin: 10px;
  }
}

.mediaThumb-small {
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 5px;
  width: 40px;
}

.sheetThumbnail {
  width: 100px;
  margin: 20px;
}

@media (max-width: 768px) {
  .sheetThumbnail {
    width: 50px;
    margin: 10px;
  }
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
  word-break: inherit;
  word-wrap: normal;
  background-color: var(--background-color-2);
}

pre code {
  font-size: 14px;
  border-radius: 6px;
  color: var(--rare-color);
}

code {
  background-color: var(--background-color-2);
}

label {
  cursor: pointer;
  margin: 0;
}

label span {
  display: table;
  line-height: 35px;
}

label.disabled {
  cursor: unset;
  pointer-events: none;
}

.radioCol {
  margin-bottom: 5px;
}

.radioCol label span {
  line-height: 24px;
}

input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  margin: 8px 0;
}

input[type='checkbox']+label:before {
  content: '\00a0';
  border: 1px solid #333;
  display: inline-block;
  height: 24px;
  padding: 0;
  vertical-align: top;
  width: 24px;
  font-size: 14px;
  border-radius: 25%;
  margin-right: 8px;
  margin-bottom: 8px;
}

input[type='checkbox']:checked+label:before {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--background-color);
  content: '\2713';
  text-align: center;
  font-weight: bold;
}

input[type='checkbox']:checked+label:after {
  font-weight: bold;
}

input[type='checkbox']:focus+label::before {
  outline: #3b99fc auto 5px;
}

input[type='checkbox']:disabled+label::before {
  background-color: rgba(148, 152, 155, 0.5);
  border: 1px solid rgba(148, 152, 155, 0.5);
}

input[type='radio'],
.fakeRadio {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

input[type='radio']:after,
.fakeRadio:after {
  cursor: pointer;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  position: relative;
  background-color: var(--background-color);
  content: '';
  display: inline-block;
  visibility: visible;
  border: 2px solid #d1d3d1;
}

input[type='radio']+label,
.fakeRadio+label {
  padding-left: 5px;
}

input[type='radio']:checked:after,
.fakeRadio.checked:after {
  background-color: var(--background-color);
  border: 5px solid var(--primary-color);
}

input[type='radio']:checked:focus,
.fakeRadio.checked:focus {
  outline: none;
}

input[type='radio']:checked:focus:after,
.fakeRadio.checked:focus:after {
  border: 5px solid var(--primary-color);
}

.exciter {
  background-color: var(--background-color);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.exciter * {
  max-width: unset;
}

.exciter .text {
  font-size: 14px;
  padding: 20px;
}

.exciter .text button {
  margin: 8px 0;
}

.exciter p,
.exciter li {
  text-align: unset;
}

.exciter img {
  width: 100%;
}

@media screen and (max-width: 766px) {
  .exciter img {
    max-width: 200px;
    margin: 8px 0;
  }
}

@media (min-width: 1200px) {
  .row.equal-height-lg {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
}

.chip-wrapper {
  display: contents;
  flex-direction: row;
}

.chip-wrapper .chip {
  display: inline-flex;
  width: auto;
  border-radius: 12px;
  border: 1px solid #999;
  background-color: var(--background-color-2);
  cursor: pointer;
  margin: 0 2px 6px 2px;
}

.chip-wrapper .chip.selected {
  outline: solid 2px var(--primary-color);
  border: 1px solid var(--primary-color);
}

.chip-wrapper .chip p {
  white-space: nowrap;
  user-select: none;
  padding: 2px 8px;
}

.viewerRow {
  display: none;
}

#dialogWrapper {
  display: none;
  z-index: -1;
}

#dialogWrapper.open {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(33, 33, 33, 0.8);
  z-index: 2000;
  margin: 0;
}

#dialogWrapper.open .dialog {
  z-index: 2001;
  padding: 15px;
  position: absolute;
  border-radius: 6px;
  border: 2px solid var(--background-color);
  background-color: var(--background-color-2);
  top: 50%;
  left: 50%;
  max-height: 90vh;
  width: 600px;
  max-width: 90vw;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}

#dialogWrapper.open .dialog p {
  font-size: 16px;
}

#dialogWrapper.open .dialog .row button {
  margin: 10px 0;
  width: 100%;
}

#dialogWrapper.open .dialog .button-row {
  display: flex;
  justify-content: flex-end;
}

#dialogWrapper.open .dialog .button-row button {
  margin: 20px 0 0 10px;
}

.buffedStat {
  border-bottom: 2px dashed var(--primary-color);
}

#signInButton {
  display: block;
}

#signOutButton {
  display: none;
}

#signInText,
#serverStatusText {
  font-size: 12px;
}

#toast-container {
  margin-top: 24px;
}

#toast-container .toast {
  opacity: 1;
}

.loader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  width: 100vw;
  height: 100vh;
}

.loader .wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader .wrapper .message {
  background-color: var(--primary-color);
  padding: 15px 20px;
  border-radius: 6px;
}

.loader .wrapper .message h2 {
  color: white;
  margin: 0;
}

.loader .wrapper .message h2 .fa-spinner {
  animation: spin-animation 0.6s infinite;
  display: inline-block;
}

@keyframes spin-animation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(359deg);
  }
}

#exampleBuilds {
  word-break: break-word;
}

.Table .Piece {
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.status {
  color: #333;
  cursor: pointer;
  text-decoration: underline;
}

i.statusBox {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  color: var(--background-color);
  font-size: 14px;
  padding: 10px;
  margin-top: 10px;
  z-index: 10;
  border-radius: 6px;
  transition-duration: 0.3s;
}

.Common {
  color: #4682b4;
}

.Rare {
  color: #ab153f;
}

.Epic {
  color: #9370db;
}

.Ultimate {
  color: #fe6006;
}

.Passive {
  color: #32936f;
}

.Manoeuvre {
  color: #00c6cf;
}

.CommonBorder {
  border: 1px solid #4682b4;
}

.RareBorder {
  border: 1px solid #ab153f;
}

.EpicBorder {
  border: 1px solid #9370db;
}

.UltimateBorder {
  border: 1px solid #fe6006;
}

.PassiveBorder {
  border: 1px solid #32936f;
}

.CommonFill {
  fill: #4682b4;
}

.RareFill {
  fill: #ab153f;
}

.EpicFill {
  fill: #9370db;
}

.UltimateFill {
  fill: #fe6006;
}

.PassiveFill {
  fill: #32936f;
}

.Fire {
  color: #f90d1b;
}

.Water {
  color: #1f50f1;
}

.Air {
  color: #00cf35;
}

.Earth {
  color: #9d2400;
}

.Light {
  color: #ffbf00;
}

.Dark {
  color: #9d00fe;
}

.FireFill {
  fill: #f90d1b;
}

.WaterFill {
  fill: #1f50f1;
}

.AirFill {
  fill: #00cf35;
}

.EarthFill {
  fill: #9d2400;
}

.LightFill {
  fill: #ffbf00;
}

.DarkFill {
  fill: #9d00fe;
}

.specTable table tr td {
  padding-right: 10px;
}

.specTable p {
  margin-bottom: 0;
}

#classes {
  width: 100%;
  padding: 0;
  margin-bottom: 15px;
}

.classTile {
  -moz-transition: opacity 1s;
  /* Firefox 4 */
  -webkit-transition: opacity 1s;
  /* Safari and Chrome */
  -o-transition: opacity 1s;
  transition: opacity 1s;
  border: none;
  display: block;
  border: 4px solid transparent;
  /* 
   * https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer 
   * coarse: The primary input mechanism includes a pointing device of limited accuracy.
   */
}

.classTile>div {
  display: flow-root;
  height: auto;
  font-weight: normal;
  text-transform: none;
  padding: 0;
  text-align: left;
  outline: none;
  background-color: var(--background-color);
  font-size: 16px;
  color: var(--text-color);
  width: 100%;
  border-radius: 6px;
  border: 2px solid var(--text-color);
  transition-duration: 0.3s;
  position: relative;
  /* 
     * https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer 
     * coarse: The primary input mechanism includes a pointing device of limited accuracy.
     */
}

.classTile>div h3 {
  margin-top: 6px;
}

.classTile>div .classThumb {
  border-radius: 3px 6px 6px 3px;
  object-fit: cover;
  float: left;
  margin-left: 0;
  margin-right: 8px;
  width: 160px;
}

@media (max-width: 767px) {
  .classTile>div .classThumb {
    width: 130px;
  }
}

@media (max-width: 440px) {
  .classTile>div .classThumb {
    width: 110px;
    height: 160px;
  }
}

.classTile>div span {
  font-size: 12px;
  color: var(--text-color);
  padding-top: 4px;
  padding-right: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.classTile>div span.two-lines {
  -webkit-line-clamp: 2;
}

.classTile>div span.three-lines {
  -webkit-line-clamp: 3;
}

@media not all and (pointer: coarse) {
  .classTile>div:hover {
    border: 2px solid var(--primary-color);
  }
}

@media not all and (pointer: coarse) {
  .classTile:hover>div {
    outline: none;
    background-color: var(--primary-color);
    color: var(--background-color);
  }

  .classTile:hover>div h3,
  .classTile:hover>div span {
    color: var(--background-color);
  }
}

.classTile:active>div {
  background-color: #9370db;
  border-color: #9370db;
}

.classname {
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 0;
}

.spacing {
  margin-top: 8px;
  margin-bottom: 8px;
}

body {
  display: flex;
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body aside {
  width: 260px;
}

@media (max-width: 1000px) {
  body aside {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow: hidden auto;
    overscroll-behavior: contain;
    transform: translateX(-110vw);
    will-change: transform;
  }

  body aside:target {
    visibility: visible;
    transform: translateX(0);
  }

  body aside nav {
    padding: calc(30px + env(safe-area-inset-top, 0)) 0 env(safe-area-inset-bottom, 0) 0;
  }

  body aside nav h4 {
    color: var(--background-color);
    padding: 4px 16px;
  }

  body aside nav a,
  body aside nav a:visited {
    color: var(--background-color);
    border-bottom: dotted 1px rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
  }

  body aside nav a:focus {
    background-color: var(--primary-color);
    font-weight: bold;
  }

  body aside nav a,
  body aside nav i::before {
    color: var(--background-color);
    font-size: 16px;
  }

  body aside nav a:focus i::before {
    color: var(--background-color);
  }

  body aside nav p {
    color: var(--background-color) !important;
    padding: 24px 16px;
  }
}

body aside#rightnav {
  width: 0;
  transform: translateX(110vw);
}

body main {
  width: calc(100vw - 260px);
}

@media (min-width: calc(1000px + 200px)) {
  body main header {
    padding: calc(16px + env(safe-area-inset-top, 0)) 15px 0 15px;
  }

  body main header .quicklinks {
    right: 30px;
  }

  body main>h1,
  body main article {
    padding: 0 15px;
  }

  body main article.multi-column {
    column-count: 2;
    column-gap: 30px;
  }
}

@media (max-width: 320px) {
  body main header span {
    font-size: 12px;
  }

  body main header a i::before {
    font-size: 18px !important;
  }

  body main header .quicklinks a {
    margin: 0 !important;
  }
}

@supports (display: grid) {
  body {
    display: grid;
    grid: [stack] 1fr/min-content [stack] 1fr;
    position: absolute;
    overflow-x: hidden;
  }

  @media (min-width: 1000px) {
    body {
      display: flex;
    }
  }

  body article {
    padding-bottom: 40px;
  }

  body article>p,
  body article>h1,
  body article>h2,
  body article>h3,
  body article>h4,
  body article>div {
    margin: 8px 0;
  }

  @media (max-width: 1000px) {
    body {
      grid: [stack] 2fr/min-content [stack] 2fr;
    }

    body aside,
    body main {
      grid-area: stack;
    }

    body main {
      width: 100vw;
    }

    body aside {
      display: flex;
      width: 100%;
    }

    body aside button {
      border: 1px solid var(--background-color);
      margin: 10px;
    }
  }

  #sidenav,
  #rightnav {
    --easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.6s;
    display: grid;
    grid-template-columns: [nav] 4fr [escape] 1fr;
    z-index: 2000;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  #sidenav::-webkit-scrollbar,
  #rightnav::-webkit-scrollbar {
    display: none;
  }

  @media (prefers-reduced-motion: reduce) {

    #sidenav,
    #rightnav {
      --duration: 1ms;
    }
  }

  #rightnav {
    grid-template-columns: [escape] 1fr [nav] 4fr;
  }

  #rightMenu {
    display: none;
  }
}

#sidenav-button,
#sidenav-close {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
  background-color: transparent !important;
}

@media (min-width: 1000px) {

  #sidenav-button,
  #sidenav-close {
    display: none;
  }
}

nav {
  padding: 16px 0 16px env(safe-area-inset-left, 0);
  display: inline-flex;
  flex-direction: column;
  min-width: 240px;
}

@media (max-width: 1000px) {
  nav {
    color: var(--text);
    background-color: var(--primary-color);
    border-inline-end: 1px var(--surface1);
    font-size: 1.5rem;
  }
}

nav>h4 {
  margin-bottom: 0;
  padding: 0 8px;
  text-transform: uppercase;
}

nav>h4:not(:first-child) {
  margin-block-start: 16px;
}

nav a {
  text-decoration: none;
  line-height: 1.25;
  color: var(--text-color);
  outline-color: var(--primary-color);
  outline-offset: 5px;
  font-size: 14px;
  margin: 0;
  padding: 4px 8px;
  border-bottom: 1px dashed;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover i::before {
  color: var(--primary-color);
}

nav a:focus {
  color: #9370db;
}

nav a:focus i::before {
  color: #9370db;
}

@media (max-width: 1000px) {
  nav a {
    color: var(--background-color);
    outline-color: var(--background-color);
  }

  nav a:hover {
    color: var(--primary-color) !important;
  }

  nav a:active {
    color: var(--background-color) !important;
  }
}

nav a.active {
  font-weight: bold;
}

nav a i::before {
  display: block;
  text-align: center;
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: var(--primary-color);
  margin-right: 8px;
}

nav p {
  padding: 16px 8px;
}

nav button {
  margin: 0 8px;
}

nav .theme-picker {
  padding: 16px;
  margin: 16px;
  border: 1px dashed var(--text-color);
  background-color: var(--background-color-2);
}

nav .theme-picker p {
  padding: 0 0 16px;
  color: var(--text-color) !important;
}

.hamburger {
  --size: 4rem;
  display: flex;
  place-content: center;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid transparent;
  margin-inline-start: -1rem;
  margin-right: 8px;
  block-size: var(--size);
  inline-size: var(--size);
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hamburger>svg {
  width: 100%;
}

.hamburger>svg>line {
  stroke: var(--primary-color);
  stroke-width: 7px;
  transition: stroke 0.25s ease;
}

.hamburger:hover {
  border-color: var(--primary-color);
}

.hamburger:hover>svg>line {
  stroke: var(--primary-color);
}

.hamburger:focus {
  border-color: #9370db;
  background: var(--background-color);
}

.hamburger:focus>svg>line {
  stroke: #9370db;
}

.hamburger:hover .hamburger:active {
  background: var(--primary-color);
}

aside>a {
  outline-offset: -1px;
  outline: 1px solid transparent;
}

aside>a:focus {
  outline-color: #4682b4;
  transition: outline-color 0.25s ease;
}

main {
  padding: 0 calc(1.5rem + env(safe-area-inset-right, 0)) calc(40px + env(safe-area-inset-bottom, 0)) calc(1.5rem + env(safe-area-inset-left, 0));
}

main>header {
  display: flex;
  align-items: center;
  min-block-size: 3rem;
  margin-block-end: 1rem;
  padding: calc(16px + env(safe-area-inset-top, 0)) 0 0 0;
  min-height: 40px;
}

main>header .quicklinks {
  float: right;
  display: block;
  position: absolute;
  right: 15px;
  font-size: 16px;
}

main>header .quicklinks a:not(a:last-of-type) {
  margin-right: 8px;
}

main>header .quicklinks a,
main>header .quicklinks i,
main>header .quicklinks i::before {
  width: 24px;
  height: 24px;
}

.prev {
  float: left;
}

.next {
  float: right;
}

.prev a,
.next a {
  text-decoration: none;
  border: none;
  font-weight: bold;
  font-size: 16px;
}

header span {
  color: #666666;
}

header a {
  box-sizing: border-box;
  height: 24px;
  text-decoration: none;
  box-sizing: border-box;
}

header a i::before {
  display: block;
  text-align: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: var(--primary-color);
}

header a:focus i::before {
  color: #9370db;
}

header a:hover i::before {
  color: var(--primary-color);
}

header i.fa.fa-caret-right,
header i.fa.fa-caret-down {
  margin: 0 8px;
}
