:root {
  --evolution-icon-width: 68px;
  --evolution-icon-height: 56px;

  --color-bg-shield-only: rgb(243, 202, 202);
  --color-bg-sword-only: rgb(202, 202, 243);
  --color-bg-shield-header: rgb(192, 116, 116);
  --color-bg-sword-header: rgb(116, 116, 192);
}


/* Top sticky navigation stuff */
.pokedex-navigation-bar ul {
  display: flex;
  padding-left: 0;
  margin: 0 auto;
  flex-basis: row nowrap;
  height: 100%;
}
.pokedex-navigation-bar ul li {
  flex: 1 1 auto;
  list-style: none;
  text-align: center;
  margin: auto 0;
}
.pokedex-navigation-bar ul li a {
  color: var(--color-text-white);
  font-weight: bold;
  padding: 0.15rem 0 0.5rem 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pokedex-navigation-bar ul li a:hover {
  border-radius: 15px 15px 0 0;
  background: var(--color-bg-content);
  color: var(--color-text);
}
@media only screen and (max-width: 900px) {
  /* Only for mobile or tablet layouts */
  header.layout-header {
    margin-top: 45px;
  }
  .pokedex-navigation-bar {
    position: fixed;
    display: block;
    width: 100%;
    background: var(--color-bg-header);
    top: 55px;
    z-index: 4;
    left: 0px;
  }
}
@media only screen and (min-width: 900px) {
  .pokedex-navigation-bar {
    position: sticky;
    display: block;
    top: 0.5rem;
    width: 80%;
    margin: 0 auto;
    margin-top: 1rem;
    background: var(--color-bg-header);
    z-index: 4;
    border-radius: 15px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
  }
  .pokedex-navigation-bar ul li a {
    padding: 0.25rem 0 0.25rem 0;
  }
  .pokedex-navigation-bar ul li a:hover {
    border-radius: 15px;
  }
}

@keyframes search-modal-open {
  from { opacity: 0; }
  to { opacity: 1; }
}
.search-modal.is-open {
  animation: search-modal-open 0.3s;
}
.search-modal .modal-inner {
  max-width: 600px;
  background: var(--color-bg-black);
  color: var(--color-text-white);
}
.search-modal h2 {
  border: none;
  font-size: 160%;
}
.search-modal .modal-inner > div {
  font-size: 90%;
  font-family: var(--font-family-condensed);
  line-height: 130%;
}
.search-modal .modal-inner .pokedex-search {
  margin-bottom: 0.5rem;
}
.search-modal .modal-close-container {
  text-align: center;
  margin-top: 0.5rem;
}
.search-modal .modal-close-container button {
  padding: 0.2rem 1.5rem;
}
@media only screen and (min-width: 900px) {
  .search-modal .modal-inner {
    margin: 0 auto;
  }
}
#pokemon-search-autocomplete-output {
  padding-left: 0;
  list-style: none;
  min-height: 150px;
}
#pokemon-search-autocomplete-output li {
  cursor: pointer;
}
#pokemon-search-autocomplete-output li:hover {
  background: var(--color-bg-row-1);
}



.pokedex-navigation .more-link {
  margin-bottom: 0;
}
.pokedex-navigation-label {
  font-size: 130%;
  padding-bottom: 0.15rem;
  font-weight: bold;
}
.pokedex-navigation .pokemon-swsh-icon {
  image-rendering: crisp-edges;
  width: var(--evolution-icon-width);
  float: right;
}
ul.quick-nav-buttons {
  display: flex;
  flex-flow: row wrap;
  margin: 0;
  padding-left: 0;
}
ul.quick-nav-buttons li {
  flex: 1 1 auto;
  list-style: none;
  margin: 0.25rem;
}
ul.quick-nav-buttons li .more-link a {
  font-size: 90%;
  font-family: var(--font-family-condensed);
}
ul.quick-nav-buttons li .more-link .material-icons {
  font-size: 18px;
  vertical-align: middle;
}

.pokedex-top-info {
  background: #3a5285;
  display: flex;
  flex-flow: row wrap;
}
.isolated-box {
  padding: 3px;
}
.content-box h2,
.content-box h3,
.content-box h4 {
  border: none;
  margin: 0;
}
.content-box dl,
.content-box dt,
.content-box dd {
  margin: 0;
}
.pokedex-top-info .pokemon-top-header {
  background: var(--color-bg-header);
  flex: 1 0 100%;
/*   display: flex;
  flex-flow: row nowrap; */
  padding-bottom: 0.25rem;
  position: relative;
}
.pokedex-top-info .pokemon-name {
  font-size: 180%;
  font-weight: bold;
  color: var(--color-text-header);
  margin-right: 68px;
  border-bottom: 1px var(--color-border-header) solid;
  border-radius: 0;
  flex: 1;
  order: 2;
  line-height: 30px;
  margin-left: 0.5rem;
}
.pokedex-top-info .pokemon-top-header div.pokemon-icon {
/*   flex: 0 1 40px;
  order: 2; */
  position: absolute;
  right: -4px;
  top: -18px;
  border-radius: 20px;
  height: 56px;
  width: 68px;
  background: var(--color-bg-white);
}
.pokedex-top-info .pokemon-info-left-column {
  flex: 0 1 250px;
  display: flex;
  flex-flow: column wrap;
}
.pokedex-top-info .pokemon-info-right-column {
  flex: 1 0 300px;
  display: flex;
  flex-flow: column wrap;
}
@media screen and (max-width: 320px) {
  
  .pokedex-top-info .pokemon-info-right-column {
    flex: 1 0 280px;
  }
}
@media screen and (max-width: 600px) {
  .pokedex-top-info .pokemon-info-left-column {
    flex: 1 1 100%;
  }
}

.pokedex-top-info .pokedex-block-header {
  text-align: center;
}
.pokedex-top-info .pokemon-image {
  order: 0;
  text-align: center;
}
/*.pokedex-top-info .pokemon-image img {
  width: 136px;
  image-rendering: crisp-edges;
}*/
/*.pokedex-top-info .pokemon-image img {
  width: 200px;
  image-rendering: initial;
}
@media screen and (max-width: 600px) {
  .pokedex-top-info .pokemon-image img {
    width: 300px;
    image-rendering: initial;
  }
}*/
.pokedex-top-info .pokemon-image img {
  width: 240px;
}
.pokedex-top-info .pokemon-type {
  order: 1;
  text-align: center;
}
.pokedex-top-info .pokemon-stats-top {
  order: 2;
}
.pokedex-top-info .pokemon-misc-info {
  order: 10;
}
.pokedex-top-info .pokemon-abilities,
.pokedex-top-info .pokemon-pokedexes {
  order: 0;
  display: flex;
  flex-flow: row wrap;
}
.pokedex-top-info .pokemon-abilities .pokedex-block-header,
.pokedex-top-info .pokemon-pokedexes .pokedex-block-header {
  flex: 1 0 100%;
}
.pokedex-top-info .pokemon-abilities .pokemon-ability,
.pokedex-top-info .pokemon-pokedexes .pokemon-national-dex,
.pokedex-top-info .pokemon-pokedexes .pokemon-galar-dex {
  flex: 1 1 46%;
  border: 1px var(--color-border) solid;
  margin: 1%;
  border-radius: 8px;
  background: var(--color-bg-row-2);
}
.pokedex-top-info .pokemon-pokedexes .pokemon-national-dex,
.pokedex-top-info .pokemon-pokedexes .pokemon-galar-dex {
  background: none;
  border: none;
}

.pokedex-top-info .pokemon-abilities .pokemon-ability-hidden {
  background: var(--color-bg-row-1);
  flex: 1 1 100%;
  position: relative;
}
.pokedex-top-info .pokemon-abilities .pokemon-ability-hidden .pokemon-ability-title:after {
  content: 'HIDDEN';
  text-align: right;
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  font-family: var(--font-family-condensed);
  font-size: 80%;
}
@media screen and (max-width: 360px) {
  .pokedex-top-info .pokemon-abilities .pokemon-ability {
    flex: 1 1 100%;
  }
}
.pokedex-top-info .pokemon-abilities .pokemon-ability-title,
.pokedex-top-info .pokemon-pokedexes .pokemon-dex-header {
  text-align: center;
  font-weight: bold;
  background: var(--color-bg-header);
  border-radius: 8px;
  margin: 0.25rem;
  color: var(--color-text-header);
}
.pokedex-top-info .pokemon-abilities .pokemon-ability-description {
  padding: 0.25rem;
}
.pokedex-top-info .pokemon-pokedexes .pokemon-dex-value {
  font-size: 120%;
  text-align: center;
}
.pokedex-top-info .pokemon-weakness-resistance {
  order: 1;
}
.pokedex-top-info .pokemon-evolution-line {
  order: 2;
}
.pokedex-top-info .pokemon-alternate-forms{
  order: 3;
}
.pokedex-top-info .pokemon-pokedexes {
  order: 4;
}
.pokedex-top-info .pokedex-content-bubble {
  background: var(--color-bg-content);
  border-radius: 8px;
  padding: 4px;
  margin: 4px;
}
.pokedex-top-info .pokedex-block-header {
  text-align: center;
  font-weight: bold;
  font-size: 110%;
}

.pokedex-top-info .pokemon-stats-top {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.pokedex-top-info .pokemon-stats-top .pokedex-block-header {
  flex: 1 0 100%;
}
.pokedex-top-info .pokedex-stat {
  flex: 0 0 50%;
  display: block;
  flex-flow: row wrap;
  width: auto;
  text-align: center;
  margin: 0 auto;
}
.pokedex-top-info .pokedex-stat dl {
  margin: 0;
}
.pokedex-top-info .pokedex-stat dt {
  display: inline-block;
  text-align: right;
}
.pokedex-top-info .pokedex-stat.stat-total dt {
  font-weight: bold;
}
.pokedex-top-info .pokedex-stat dd {
  display: inline-block;
  text-align: left;
  margin: 0;
  margin-left: 0.25rem;
}
.pokedex-top-info .pokedex-stat .stat-bar,
.pokedex-top-info .pokedex-stat .stat-bar-inner {
  height: 6px;
}
.pokedex-top-info .pokedex-stat .stat-rank-weak {
  font-size: 90%;
}
.pokedex-top-info .pokedex-stat .stat-rank-low {
  font-size: 100%;
}




.pokedex-top-info .pokemon-weakness-resistance {
  display: flex;
  flex-flow: row wrap;
}
.pokedex-top-info .pokemon-weakness-resistance .pokedex-block-header {
  flex: 1 0 100%;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-wr-box {
  border: 1px rgba(0, 80, 0, 0.2) solid;
  border-radius: 8px;
  padding: 0.25rem;
  flex: 1 1 100%;
  display: flex;
  flex-flow: row wrap;
  margin: 0.125rem 0.25rem;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-wr-box .wr-label {
  flex: 0 1 4rem;
  text-align: center;
  vertical-align: top;
  border-radius: 8px;
  font-size: 120%;
  padding-top: 2px;
  margin-right: 0.2rem;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-weakness-400 {
  background: rgba(224, 40, 0, 0.5);
  border: 1px rgba(64, 16, 0, 0.8) solid;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-weakness-400 .wr-label {
  background: rgba(224, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  font-size: 140%;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-weakness-200 {
  background: rgba(156, 40, 0, 0.2);
  border: 1px rgba(80, 16, 0, 0.4) solid;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-weakness-200 .wr-label {
  background: rgba(255, 0, 0, 0.3);
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-resistance-50 .wr-label {
  background: rgba(0, 156, 0, 0.2);
  font-size: 130%;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-resistance-25 .wr-label {
  background: rgba(0, 80, 0, 0.4);
  color: white;
  font-weight: bold;
  font-size: 130%;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-resistance-0 .wr-label {
  background: rgba(96, 96, 96, 0.7);
  color: white;
  font-weight: bold;
  font-size: 100%;
  font-family: var(--font-family-condensed);
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-resistance-50 {
  background: rgba(0, 156, 0, 0.2);
  border: 1px rgba(0, 80, 0, 0.4) solid;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-resistance-25 {
  background: rgba(0, 156, 0, 0.5);
  border: 1px rgba(0, 80, 0, 0.8) solid;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-resistance-0 {
  background: rgba(128, 128, 128, 0.5);
  border: 1px rgba(0, 0, 0, 0.5) solid;
}
.pokedex-top-info .pokemon-weakness-resistance .pokemon-wr-box .wr-types {
  flex: 1 1 4rem;
  vertical-align: middle;
  text-align: left;
}

.evolution-overall-container {
}
.evolution-stage-1 {
  
}
.evolution-stage-1,
.evolution-stage-2,
.evolution-stage-3 {
  position: relative;
  clear: both;
  min-height: calc(112px / 2);
}
.evolution-stage-1 {
  --evolution-offset-x: calc(var(--evolution-icon-width));
}
.evolution-stage-2 {
  --evolution-offset-x: calc(var(--evolution-icon-width) * 2);
}
.evolution-stage-3 {
  --evolution-offset-x: calc(var(--evolution-icon-width) * 3);
}
@media screen and (max-width: 500px) {
  .evolution-stage-2 {
    --evolution-offset-x: calc(var(--evolution-icon-width) * 1.5);
  }
  .evolution-stage-3 {
    --evolution-offset-x: calc(var(--evolution-icon-width) * 2);
  }
}
.evolution-overall-container .pokemon-icon {
  position: absolute;
  top: 0;
}
.evolution-overall-container .evolution-stage-1 .pokemon-icon {
  left: 0;
}
.evolution-overall-container .evolution-stage-2 .pokemon-icon {
  left: calc(var(--evolution-offset-x) - var(--evolution-icon-width));
}
.evolution-overall-container .evolution-stage-3 .pokemon-icon {
  left: calc(var(--evolution-offset-x) - var(--evolution-icon-width));
}
.content-box dl.evolution-details {
  padding-left: 0.25rem;
  margin-left: var(--evolution-offset-x);
}
.evolution-name {
  font-size: 110%;
}
.evolution-method {
  font-size: 90%;
  padding-left: 0.5rem;
}
.evolution-method-custom {
  cursor: help;
}
.evolution-overall-container .pokemon-swsh-icon {
  width: var(--evolution-icon-width);
}
.evolution-current .evolution-name {
  font-weight: bold;
  font-style: italic;
}


.pokemon-alternate-forms {
  
}
.pokemon-alternate-forms .functional-forms-container,
.pokemon-alternate-forms .cosmetic-forms-container,
.pokemon-alternate-forms .related-forms-container,
.pokemon-alternate-forms .also-forms-container,
.pokemon-alternate-forms .gender-forms-container,
.pokemon-alternate-forms .base-forms-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.pokemon-alternate-forms h4 {
  flex: 1 100%;
  text-align: center;
  font-size: 100%;
  margin-top: 0.25rem;
  border-top: 1px var(--color-border) solid;
}

.pokemon-alternate-forms .alt-form {
  flex: 0 1 49%;
  margin: 0.1rem auto;
  text-align: center;
  border-radius: 8px;
  border: 1px var(--color-border) solid;
  box-sizing: border-box;
  max-width: 200px;
  overflow: clip;
}
.pokemon-alternate-forms .alt-form h5 {
  background: var(--color-bg-header);
  font-family: var(--font-family-condensed);
  font-size: 95%;
  _border-radius: 0 0 8px 8px;
  color: var(--color-text-header);
  display: inline-block;
  padding: 0.1rem 1rem;
  margin: 0.2rem;
  display: block;
  border-radius: 8px;
}
.pokemon-alternate-forms .alt-form a,
.pokemon-alternate-forms .alt-form a:visited,
.pokemon-alternate-forms .alt-form a:active {
  color: var(--color-text-header);
}
.pokemon-alternate-forms .alt-form .alt-form-image {
  display: block;
  max-width: 150px;
  margin: 0 auto;
}

.pokemon-alternate-forms .alt-form .alt-form-name {
  font-family: var(--font-family-condensed);
  font-weight: bold;
  line-height: 1rem;
}

.pokemon-alternate-forms .alt-form .alt-form-notes {
  font-size: 90%;
  padding: 0.25rem;
  line-height: 1rem;
  padding-top: 0;
  font-style: italic;
}

.pokemon-alternate-forms .alt-form.alt-form-current {
  background: var(--color-bg-row-1);
}
.pokemon-alternate-forms .alt-form.alt-form-current h5 {
  color: var(--color-bg-row-1);
}

.pokemon-alternate-forms .gender-forms-container .alt-form {
  background: var(--color-bg-row-1);
}

@media only screen and (min-width: 800px) {
  .pokemon-alternate-forms .alt-form {
    flex: 0 1 33%;
    max-width: 200px;
  }
  .pokemon-alternate-forms .gender-forms-container .alt-form {
    flex: 0 1 50%;
    max-width: 230px;
  }
  .pokemon-alternate-forms .gender-forms-container .alt-form .alt-form-image {
    display: block;
    max-width: 230px;
    margin: 0 auto;
  }
}
@media only screen and (min-width: 900px) {
  .pokemon-alternate-forms .gender-forms-container .alt-form {
    max-width: 250px;
  }
  .pokemon-alternate-forms .gender-forms-container .alt-form .alt-form-image {
    max-width: 250px;
  }
}


.pokemon-misc-info dl {
  display: flex;
  flex-flow: row wrap;
  margin: 0 auto;
  border-bottom: 1px var(--color-border) dotted;
}
.pokemon-misc-info div:last-child dl {
  border-bottom: none;
}
.pokemon-misc-info dt {
  flex: 0 1 auto;
  font-weight: bold;
  text-align: left;
}
.pokemon-misc-info dd {
  flex: 1;
  text-align: right;
  margin: 0;
  padding-left: 1rem;
}

.pokedex-moves {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
}
.pokedex-moves h2 {
  flex: 1 100%;
  padding: 0.25rem;
}
.pokedex-moves .move-method {
  flex: 0 100%;
  max-width: 600px;
}
@media screen and (max-width: 600px) {
  .pokedex-moves .move-method {
    flex: 1 auto;
  }
}
.pokedex-moves h3 {
  text-align: center;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
}
.learned-move-table {
  width: 100%;
  padding: 0 0.25rem;
  border-collapse: separate;
  border-spacing: 0;
}
.learned-move-table thead tr th {
  background-color: var(--color-bg-header);
  color: var(--color-text-header);
  font-size: 90%;
}
.learned-move-table tbody th {
  background-color: var(--color-bg-header);
  color: var(--color-text-header);
  padding: 0 0.25rem;
  font-size: 90%;
}
.learned-move-table tbody td {
  padding: 0.25rem;
}
.learned-move-table tbody td:nth-child(3),
.learned-move-table tbody td:nth-child(4) {
  padding: 0;
}
.tm-moves .learned-move-table tbody th,
.tr-moves .learned-move-table tbody th {
  font-family: var(--font-family-condensed);
}
.egg-moves .learned-move-table tbody th a {
  color: var(--color-text-header);
  border-bottom: 1px var(--color-text-header) dashed;
  cursor: help;
}
.learned-move-table .move-power-varies {
  font-size: 90%;
  font-family: var(--font-family-condensed);
}
.learned-move-table .move-accuracy-always {
  font-size: 90%;
  font-family: var(--font-family-condensed);
}
.learned-move-table tbody td:last-child {
  border-right: 1px var(--color-bg-header) solid;
}
.learned-move-table tbody td:nth-child(n+3):nth-child(-n+9) {
  text-align: center;
}
.learned-move-table tbody td[data-move-target] {
  font-family: var(--font-family-condensed);
  font-size: 90%;
  text-align: center;
}
.learned-move-table tbody tr:last-child {
  background: none;
}
.learned-move-table tbody tr:last-child:nth-child(odd) td {
  background: var(--color-bg-row-1);
}
.learned-move-table tbody tr:last-child:nth-child(even) td {
  background: var(--color-bg-row-2);
}

.learned-move-table tbody tr td:first-child {
  border-left: 1px var(--color-bg-header) solid;
}
.learned-move-table tbody tr td:last-child {
  border-right: 1px var(--color-bg-header) solid;
}
.learned-move-table tbody tr:last-child td {
  border-bottom: 1px var(--color-bg-header) solid;
}
.learned-move-table thead th:first-child {
  border-top-left-radius: 8px;
}
.learned-move-table thead th:last-child {
  border-top-right-radius: 8px;
}
.learned-move-table tbody tr:last-child th {
  border-bottom-left-radius: 8px;
}
.learned-move-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

@media screen and (max-width: 400px) {
  .learned-move-table tbody tr td:nth-child(n+7):nth-child(-n+8),
  .learned-move-table thead tr th:nth-child(n+7):nth-child(-n+8) {
    display: none;
  }
}
@media screen and (min-width: 800px) {
  /* Get rid of Info button column (9) */
  .learned-move-table thead tr th:nth-child(9),
  .learned-move-table tbody tr td:nth-child(9) {
    display: none;
  }

  /* Put border onto Target column (8) */
  .learned-move-table tbody tr td:nth-child(8) {
    border-right: 1px var(--color-bg-header) solid;
  }
  .learned-move-table thead th:nth-child(8) {
    border-top-right-radius: 8px;
  }
  .learned-move-table tbody tr:last-child td:nth-child(8) {
    border-bottom-right-radius: 8px;
  }
}

@media screen and (max-width: 600px) {
  .learned-move-table thead th:nth-child(n+4):nth-child(-n+6) {
    max-width: 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 90%;
  }
  .category-icon-small {
    width: 35px;
    max-width: 35px;
    min-width: 35px;
  }
}

@media screen and (max-width: 375px) {
  .learned-move-table tbody tr td:nth-child(2) {
    font-family: var(--font-family-condensed);
  }
}
@media screen and (max-width: 800px) {
  .learned-move-table thead tr th:nth-child(n+7):nth-child(-n+8),
  .learned-move-table tbody tr td:nth-child(n+7):nth-child(-n+8) {
    display: none;
  }

  .learned-move-table tbody tr td:nth-child(9) {
    border-right: 1px var(--color-bg-header) solid;
  }
  .learned-move-table thead th:nth-child(9) {
    border-top-right-radius: 8px;
  }
  .learned-move-table tbody tr:last-child td:nth-child(9) {
    border-bottom-right-radius: 8px;
  }
}
/* Hide Accuracy (Column 6) for S9/iPhone SE users. */
@media screen and (max-width: 360px) {
  .learned-move-table thead tr th:nth-child(6),
  .learned-move-table tbody tr td:nth-child(6) {
    display: none;
  }
}
/* iPhone SE is so small that I need to shrink the button further :( */
@media screen and (max-width: 320px) {
  .move-row td:nth-child(9) button {
    padding: 0.1rem;
  }
}
.category-icon-small {
}
.category-icon-small.category-physical {
  background: #ff6f4a;
}
.category-icon-small.category-special {
  background: #4c5dff;
}
.category-icon-small.category-status {
  background: #b0afa2;
}
.category-icon-small .category-icon {
  height: 14px;
  vertical-align: text-bottom;
}


/* CSS for Tippy tooltips */
.tippy-move-top {
  display: flex;
  flex-flow: row nowrap;
}
.tippy-move-name {
  flex: 1;
  display: inline-block;
  padding-right: 0.5rem;
}
.tippy-move-category,
.tippy-move-type {
  flex: 0;
  margin-top: 0.2rem;
}
.tippy-move-stats {
  display: flex;
  flex-flow: row wrap;
  max-width: 300px;
  margin: 0 auto;
  justify-content: stretch;
 /* border-top: 1px white solid;
  border-bottom: 1px white solid; */
}
.tippy-move-stats dl,
.tippy-move-effect dl {
  flex: 1 auto;
  background: white;
  border-radius: 8px;
  color: var(--color-text);
  padding: 0.25rem;
  margin: 0.25rem;
}
.tippy-move-stats dt,
.tippy-move-effect dt {
  font-weight: normal;
  text-align: center;
  font-size: 80%;
}
.tippy-move-stats dd {
  text-align: center;
  font-weight: bold;
  font-size: 110%;
  margin: 0;
}
@media only screen and (min-width: 800px) {
  .move-row:hover th {
    background: rgba(128, 128, 0, 0.6);
  }
  .move-row:hover td {
    background: rgba(255, 255, 0, 0.05);
  }
}
.tippy-move-effect {
  background: var(--color-bg-content);
  color: var(--color-text);
  border-radius: 8px;
  margin-bottom: 0.25rem;
  padding: 0.25rem;
  margin-top: 0.25rem;
}
.tippy-move-effect dd {
  font-size: 110%;
  margin-left: 0;
}
.disable-tooltip-note {
  text-align: center;
  font-size: 80%;
  font-family: var(--font-family-condensed);
}
.move-tooltips {
  flex: 1 1 100%;
  margin-left: 1rem;
  display: none;
}

.modal-inner {
  top: 50%;
  left: 0;
  right: 0;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: auto;
  margin-bottom: auto;
  transform: translateY(-50%);
}



/* Stat Table */
.pokedex-stat-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  padding: 0 0.25rem;
}
.pokedex-stat-table thead tr:first-child th:first-child {
  border-top-left-radius: 8px;
}
.pokedex-stat-table thead tr:first-child th:last-child {
  border-top-right-radius: 8px;
}
.pokedex-stat-table tbody th,
.pokedex-stat-table tbody td {
  text-align: center;
  border-bottom: 1px var(--color-border) dotted;
}
.pokedex-stat-table tbody tr th:first-child {
  border-left: 1px var(--color-border) solid;
  border-right: 1px var(--color-border) solid;
  background: var(--color-bg-row-1);
}
.pokedex-stat-table tbody tr td:last-child {
  border-left: 1px var(--color-border) solid;
  border-right: 1px var(--color-border) solid;
  background: var(--color-bg-row-1);
  font-weight: bold;
  font-size: 120%;
}
.pokedex-stat-table tbody tr td:nth-child(3) {
  border-right: 1px var(--color-border) solid;
}
.pokedex-stat-table tbody tr.stat-speed td {
  border-bottom-style: none;
}
.pokedex-stat-table tfoot tr:last-child th:first-child {
  border-bottom-left-radius: 8px;
}
.pokedex-stat-table tfoot tr td:nth-child(2) {
  border-bottom: 1px var(--color-border) solid;
  padding: 0 0.25rem;
  text-align: center;
}
.pokedex-stat-table tfoot tr:last-child td:last-child {
  border: 1px var(--color-border) solid;
  border-top: none;
  border-bottom-right-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 150%;
}
.stat-hp-normal {
  opacity: 0.8;
}
.stat-hp-dynamaxed {
  margin-top: -7px;
  font-size: 90%;
  font-weight: bold;
}
.stat-hp-dynamaxed:before {
  content: '(';
}
.stat-hp-dynamaxed:after {
  content: ')';
}
.stat-nature-lower {
  font-size: 90%;
  opacity: 0.8;
  font-style: italic;
}
.stat-nature-lower:before {
  content: '↓';
  padding-left: 0.15rem;
  margin-left: -0.5rem;
}
.stat-nature-raise {
  font-size: 110%;
  font-weight: bold;
}
.stat-nature-raise:after {
  content: '↑';
  padding-right: 0.15rem;
  margin-right: -0.5rem;
}



/* Location stuff */
.pokedex-locations h3 {
  margin-top: 1rem;
  padding-bottom: 0.33rem;
  margin-bottom: 0.33rem;
  border-bottom: 1px var(--color-text) solid;
}
.pokedex-locations h4 {
  text-align: center;
}
.location-table {
  border: 1px var(--color-border) solid;
  border-radius: 8px;
  background: var(--color-bg-header);
  width: auto;
  min-width: 250px;
  margin: 0 auto;
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}
.location-table colgroup col {
  width: calc(100% / 9);
}
.location-table th {
  color: var(--color-text-header);
  text-align: center;
  font-family: var(--font-family-condensed);
  font-size: 90%;
}
.location-table .location-method-header th {
  font-size: 100%;
  font-family: var(--font-family);
}
.location-table .location-weather-header th {
  line-height: 110%;
}
.location-table .location-weather-header th img {
  width: 25px;
}
.location-table tbody tr td {
  background: var(--color-bg-content);
  border-radius: 8px;
  text-align: center;
  padding-left: 3px;
  padding-right: 3px;
}
.location-table tbody tr td.invisible {
  visibility: hidden;
}
.location-table tbody tr td.location-na {
  opacity: 0.6;
}
.location-table tbody tr td.location-section-ver-diff {
  padding: 0;
}
.location-section-ver-sw,
.location-section-ver-sword {
  margin: 0;
  background: var(--color-bg-sword-only);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px var(--color-bg-header) solid;
  padding-top: 0.1rem;
}
.location-section-ver-sh,
.location-section-ver-shield {
  margin: 0;
  background: var(--color-bg-shield-only);
  border-radius: 0 0 8px 8px;
  padding-bottom: 0.1rem;
}
.location-section-ver-sw,
.location-section-ver-sh,
.location-sw-only,
.location-sh-only,
.location-section-ver-sword,
.location-section-ver-shield,
.location-sword-only,
.location-shield-only {
  line-height: 120%;
}
.location-section-ver-sw div,
.location-section-ver-sh div,
.location-sw-only div,
.location-sh-only div,
.location-section-ver-sword div,
.location-section-ver-shield div,
.location-sword-only div,
.location-shield-only div {
  font-size: 90%;
  font-family: var(--font-family-condensed);
}
.location-table tbody tr td.location-sw-only,
.location-table tbody tr td.location-sword-only {
  background: var(--color-bg-sword-only);
}
.location-table tbody tr td.location-sh-only,
.location-table tbody tr td.location-shield-only {
  background: var(--color-bg-shield-only);
}
.location-level-row {
  font-family: var(--font-family-condensed);
  font-size: 90%;
  line-height: 120%;
}
.location-table tbody tr.location-level-row td {
  padding: 0 0.2rem;
  white-space: normal;
}

@media only screen and (max-width: 375px) {
  .location-level-row {
    display: none;
  }
  .location-table tbody tr td {
    font-size: 90%;
  }
  .location-section-ver-sw div,
  .location-section-ver-sh div,
  .location-sw-only div,
  .location-sh-only div,
  .location-section-ver-sword div,
  .location-section-ver-shield div,
  .location-sword-only div,
  .location-shield-only div {
    font-size: 85%;
  }
}

.location-exclusive {
  border-radius: 8px;
  border: 1px var(--color-border) solid;
  padding: 0.25rem;
  margin: 1rem auto;
  max-width: 400px;
}
.location-exclusive.location-exclusive-sword {
  background: var(--color-bg-sword-only);
}
.location-exclusive.location-exclusive-shield {
  background: var(--color-bg-shield-only);
}
.location-exclusive.location-exclusive-unavailable {
  background: var(--color-bg-disabled-light);
}
.location-exclusive p:first-of-type {
  margin-top: 0;
}
.location-exclusive p:last-of-type {
  margin-bottom: 0;
}
.location-exclusive .location-exclusive-header {
  color: var(--color-text-header);
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}
.location-exclusive.location-exclusive-sword .location-exclusive-header {
  background: var(--color-bg-sword-header);
}
.location-exclusive.location-exclusive-shield .location-exclusive-header {
  background: var(--color-bg-shield-header);
}
.location-exclusive.location-exclusive-unavailable .location-exclusive-header {
  background: var(--color-bg-disabled);
}
.pokedex-small-text { /* For some extra SEO juice */
  font-size: 90%;
  line-height: 120%;
  margin-top: 0;
  padding: 0 0.5rem;
  font-family: var(--font-family-condensed);
  text-align: left;
}

.pokemon-gender-ratio dl dd {
  margin-bottom: -4px;
}

/**
 * GENDER BOX
 */

 .gender-box {
  position: relative;
  margin: 0.1rem 0;
  max-width: 100px;
  display: inline-block;
  width: 100%;
}

.gender-box .gender-box-bars {
  display: flex;
  border: 1px var(--color-border) solid;
  border-radius: 8px;
  overflow: clip;
}

.gender-box .gender-box-bars .male,
.gender-box .gender-box-bars .female {
  height: 1.5em;
  flex: 1 1 50%;
}

.gender-box .gender-box-bars .male {
  background: #bdbdf5;
  border-radius: 8px 0 0 8px;
}

.gender-box .gender-box-bars .female {
  background: #f5bdf5;
  border-left: 1px #812f73 solid;
  border-radius: 0 8px 8px 0;
}

.gender-box.genderless {
  background: var(--color-bg-disabled-light);
  border: 1px var(--color-text-disabled) solid;
  border-radius: 8px;
  text-align: center;
  height: 1.5em;
  margin-bottom: 6px;
}
.gender-box.genderless .gender-text {
  color: var(--color-text-faded);
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6),
    -1px 1px 0 rgba(255, 255, 255, 0.6),
    1px -1px 0 rgba(255, 255, 255, 0.6),
    -1px -1px 0 rgba(255, 255, 255, 0.6)
    ;
  white-space: nowrap;
  font-size: 90%;
  font-family: var(--font-family-condensed);
  
}

.gender-box.male-0-8 .gender-box-bars .male,
.gender-box.male-8-0 .gender-box-bars .female {
  flex-basis: 0%;
}
.gender-box.male-0-8 .gender-box-labels .male,
.gender-box.male-8-0 .gender-box-labels .female {
  display: none;
}

.gender-box.male-1-8 .gender-box-bars .male,
.gender-box.male-8-1 .gender-box-bars .female {
  flex-basis: 12.5%;
}

.gender-box.male-1-4 .gender-box-bars .male,
.gender-box.male-4-1 .gender-box-bars .female {
  flex-basis: 25%;
}

.gender-box.male-4-1 .gender-box-bars .male,
.gender-box.male-1-4 .gender-box-bars .female {
  flex-basis: 75%;
}

.gender-box.male-8-1 .gender-box-bars .male,
.gender-box.male-1-8 .gender-box-bars .female {
  flex-basis: 87.5%;
}

.gender-box.male-8-0 .gender-box-bars .male,
.gender-box.male-0-8 .gender-box-bars .female {
  flex-basis: 100%;
  border-radius: 8px;
}

.gender-box .gender-box-labels {
  position: absolute;
  display: flex;
  top: 0;
  width: 100%;
  margin-top: -0.1rem;
  font-size: 90%;
  font-family: var(--font-family-condensed);
}

.gender-box .gender-box-labels .male,
.gender-box .gender-box-labels .female {
  flex: 1 1 50%;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6),
    -1px 1px 0 rgba(255, 255, 255, 0.6),
    1px -1px 0 rgba(255, 255, 255, 0.6),
    -1px -1px 0 rgba(255, 255, 255, 0.6)
    ;
  white-space: nowrap;
}

.gender-box .gender-box-labels .male {
  color: #2f2f81;
  text-align: right;
  padding-right: 0.2rem;
}
.gender-box .gender-box-labels .female {
  color: #812f73;
  text-align: left;
  padding-left: 0.2rem;
}

.gender-box .gender-icon {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.gender-box.male-8-0 .gender-box-bars .male,
.gender-box.male-0-8 .gender-box-bars .male,
.gender-box.male-0-8 .gender-box-bars .female,
.gender-box.male-8-0 .gender-box-bars .female {
  border: none;
}

.gender-box.male-8-0 .gender-box-labels .male,
.gender-box.male-0-8 .gender-box-labels .female {
  flex: 1 100%;
  text-align: center;
  border: none;
  padding: 0;
}

.male .gender-text,
.female .gender-text { /* Just for the icon */
  font-size: 100%;
  margin-right: -3px;
  margin-left: -3px;
}





/* Pokédex Flavor Stuff */
.pokedex-flavor h3 {
  border-bottom: 1px var(--color-text) solid;
  margin-top: 1rem;
}
.pokedex-flavor h3:first-of-type {
  margin-top: 0.25rem;
}
.pokedex-flavor-container {
  background: var(--color-bg-header);
  border-radius: 8px;
  margin-top: 0.5rem;
}
.pokedex-entry-container {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  padding-bottom: 0.5rem;
  justify-content: center;
}
.pokedex-entry-outer {
  flex: 0 1 50%;
}
.pokedex-flavor-container h4 {
  color: var(--color-text-header);
  text-align: center;
  border-top: 1px var(--color-text-header) solid;
  margin: 0.5rem 1rem 0 1rem;
  padding-top: 0.5rem;
}
.pokedex-flavor-container h4:first-of-type {
  border: none;
}
.pokedex-entry {
  background: var(--color-bg-content);
  margin: 0 0.5rem;
  padding: 0.25rem;
  border-radius: 3px 8px 8px 8px;
}
.pokedex-entry-games {
  padding-right: 0.2rem;
  margin: 0;
  margin-left: 8px;
  padding: 0;
}
.pokedex-entry-games .game-pill {
  display: inline-block;
  border-radius: 8px 8px 3px 3px;
  padding: 0 0.1rem;
  line-height: 120%;
  border: 1px var(--color-border) solid;
  font-size: 85%;
  font-family: var(--font-family-condensed);
  min-width: 3rem;
  text-align: center;
  background: var(--color-bg-content);
  color: var(--color-text);
}
.pokedex-entry-text {
  text-align: justify;
}
@media only screen and (max-width: 600px) {
  .pokedex-entry-outer {
    flex: 1 0 100%;
  }
}




/* Game pills (colors are variables) */
.game-pill.red {
  background: var(--color-game-red);
  color: var(--color-text-game-red);
  border-color: var(--color-text-game-red);
}
.game-pill.blue {
  background: var(--color-game-blue);
  color: var(--color-text-game-blue);
  border-color: var(--color-text-game-blue);
}
.game-pill.yellow {
  background: var(--color-game-yellow);
  color: var(--color-text-game-yellow);
  border-color: var(--color-text-game-yellow);
}
.game-pill.gold {
  background: var(--color-game-gold);
  color: var(--color-text-game-gold);
  border-color: var(--color-text-game-gold);
}
.game-pill.silver {
  background: var(--color-game-silver);
  color: var(--color-text-game-silver);
  border-color: var(--color-text-game-silver);
}
.game-pill.crystal {
  background: var(--color-game-crystal);
  color: var(--color-text-game-crystal);
  border-color: var(--color-text-game-crystal);
}
.game-pill.ruby {
  background: var(--color-game-ruby);
  color: var(--color-text-game-ruby);
  border-color: var(--color-text-game-ruby);
}
.game-pill.sapphire {
  background: var(--color-game-sapphire);
  color: var(--color-text-game-sapphire);
  border-color: var(--color-text-game-sapphire);
}
.game-pill.emerald {
  background: var(--color-game-emerald);
  color: var(--color-text-game-emerald);
  border-color: var(--color-text-game-emerald);
}
.game-pill.firered {
  background: var(--color-game-firered);
  color: var(--color-text-game-firered);
  border-color: var(--color-text-game-firered);
}
.game-pill.leafgreen {
  background: var(--color-game-leafgreen);
  color: var(--color-text-game-leafgreen);
  border-color: var(--color-text-game-leafgreen);
}
.game-pill.diamond {
  background: var(--color-game-diamond);
  color: var(--color-text-game-diamond);
  border-color: var(--color-text-game-diamond);
}
.game-pill.pearl {
  background: var(--color-game-pearl);
  color: var(--color-text-game-pearl);
  border-color: var(--color-text-game-pearl);
}
.game-pill.platinum {
  background: var(--color-game-platinum);
  color: var(--color-text-game-platinum);
  border-color: var(--color-text-game-platinum);
}
.game-pill.heartgold {
  background: var(--color-game-heartgold);
  color: var(--color-text-game-heartgold);
  border-color: var(--color-text-game-heartgold);
}
.game-pill.soulsilver {
  background: var(--color-game-soulsilver);
  color: var(--color-text-game-soulsilver);
  border-color: var(--color-text-game-soulsilver);
}
.game-pill.black {
  background: var(--color-game-black);
  color: var(--color-text-game-black);
  border-color: var(--color-text-game-black);
}
.game-pill.white {
  background: var(--color-game-white);
  color: var(--color-text-game-white);
  border-color: var(--color-text-game-white);
}
.game-pill.black-2 {
  background: var(--color-game-black-2);
  color: var(--color-text-game-black-2);
  border-color: var(--color-text-game-black-2);
}
.game-pill.white-2 {
  background: var(--color-game-white-2);
  color: var(--color-text-game-white-2);
  border-color: var(--color-text-game-white-2);
}
.game-pill.x {
  background: var(--color-game-x);
  color: var(--color-text-game-x);
  border-color: var(--color-text-game-x);
}
.game-pill.y {
  background: var(--color-game-y);
  color: var(--color-text-game-y);
  border-color: var(--color-text-game-y);
}
.game-pill.omega-ruby {
  background: var(--color-game-omega-ruby);
  color: var(--color-text-game-omega-ruby);
  border-color: var(--color-text-game-omega-ruby);
}
.game-pill.alpha-sapphire {
  background: var(--color-game-alpha-sapphire);
  color: var(--color-text-game-alpha-sapphire);
  border-color: var(--color-text-game-alpha-sapphire);
}
.game-pill.sun {
  background: var(--color-game-sun);
  color: var(--color-text-game-sun);
  border-color: var(--color-text-game-sun);
}
.game-pill.moon {
  background: var(--color-game-moon);
  color: var(--color-text-game-moon);
  border-color: var(--color-text-game-moon);
}
.game-pill.ultra-sun {
  background: var(--color-game-ultra-sun);
  color: var(--color-text-game-ultra-sun);
  border-color: var(--color-text-game-ultra-sun);
}
.game-pill.ultra-moon {
  background: var(--color-game-ultra-moon);
  color: var(--color-text-game-ultra-moon);
  border-color: var(--color-text-game-ultra-moon);
}
.game-pill.lets-go-pikachu {
  background: var(--color-game-lets-go-pikachu);
  color: var(--color-text-game-lets-go-pikachu);
  border-color: var(--color-text-game-lets-go-pikachu);
}
.game-pill.lets-go-eevee {
  background: var(--color-game-lets-go-eevee);
  color: var(--color-text-game-lets-go-eevee);
  border-color: var(--color-text-game-lets-go-eevee);
}
.game-pill.sword {
  background: var(--color-game-sword);
  color: var(--color-text-game-sword);
  border-color: var(--color-text-game-sword);
}
.game-pill.shield {
  background: var(--color-game-shield);
  color: var(--color-text-game-shield);
  border-color: var(--color-text-game-shield);
}

:root {
  --color-game-red: #ff2121;
  --color-text-game-red: #111;
  --color-bg-game-red: #ffd6d6;

  --color-game-blue: #2121ff;
  --color-text-game-blue: #e1e1ff;
  --color-bg-game-blue: #e1e1ff;

  --color-game-yellow: #ffe900;
  --color-text-game-yellow: #111;
  --color-bg-game-yellow: #fffbd1;

  --color-game-gold: #d5ab09;
  --color-text-game-gold: #111;
  --color-bg-game-gold: #fff2c1;

  --color-game-silver: #b0b0b0;
  --color-text-game-silver: #111;
  --color-bg-game-silver: #eee;

  --color-game-crystal: #4cf7e6;
  --color-text-game-crystal: #111;
  --color-bg-game-crystal: #dbfffb;

  --color-game-ruby: #b72929;
  --color-text-game-ruby: #f4f4f4;
  --color-bg-game-ruby: #e8c8c8;

  --color-game-sapphire: #3a28b5;
  --color-text-game-sapphire: #f4f4f4;
  --color-bg-game-sapphire: #bcb7e1;

  --color-game-emerald: #1ac40b;
  --color-text-game-emerald: #111;
  --color-bg-game-emerald: #bdf0b8;

  --color-game-firered: #db541f;
  --color-text-game-firered: #ffda12;
  --color-bg-game-firered: #e8c5b8;

  --color-game-leafgreen: #498012;
  --color-text-game-leafgreen: #c7ff76;
  --color-bg-game-leafgreen: #dbf4d3;

  --color-game-diamond: #1ac7e3;
  --color-text-game-diamond: #111;
  --color-bg-game-diamond: #d1f5f9;

  --color-game-pearl: #f2bfea;
  --color-text-game-pearl: #111;
  --color-bg-game-pearl: #ffe8fb;

  --color-game-platinum: #e8cb86;
  --color-text-game-platinum: #111;
  --color-bg-game-platinum: #f2e8cf;

  --color-game-heartgold: #aa8907;
  --color-text-game-heartgold: #ffdd57;
  --color-bg-game-heartgold: #ece2bc;

  --color-game-soulsilver: #919191;
  --color-text-game-soulsilver: #ececec;
  --color-bg-game-soulsilver: #e8e8e8;

  --color-game-black: #151515;
  --color-text-game-black: #f4f4f4;
  --color-bg-game-black: #9f9f9f;

  --color-game-white: #f7f7f7;
  --color-text-game-white: #111;
  --color-bg-game-white: #f7f7f7;

  --color-game-black-2: #3e3e3e;
  --color-text-game-black-2: #8bd9ff;
  --color-bg-game-black-2: #edeff7;

  --color-game-white-2: #e8e8e8;
  --color-text-game-white-2: #e12e2e;
  --color-bg-game-white-2: #f2e8e8;

  --color-game-x: #0003c8;
  --color-text-game-x: #f1f1f1;
  --color-bg-game-x: #dadbf2;

  --color-game-y: #ae0000;
  --color-text-game-y: #f1f1f1;
  --color-bg-game-y: #f2dada;

  --color-game-omega-ruby: #952929;
  --color-text-game-omega-ruby: #fd5f00;
  --color-bg-game-omega-ruby: #f2d2cf;

  --color-game-alpha-sapphire: #4a55ff;
  --color-text-game-alpha-sapphire: #7aeaea;
  --color-bg-game-alpha-sapphire: #c9f0f4;

  --color-game-sun: #ff8300;
  --color-text-game-sun: #111;
  --color-bg-game-sun: #f0decb;

  --color-game-moon: #e635ff;
  --color-text-game-moon: #111;
  --color-bg-game-moon: #ecd2f0;

  --color-game-ultra-sun: #bb6000;
  --color-text-game-ultra-sun: #ffd533;
  --color-bg-game-ultra-sun: #eee5da;

  --color-game-ultra-moon: #9b23ac;
  --color-text-game-ultra-moon: #f6b3ff;
  --color-bg-game-ultra-moon: #ceb3d2;

  --color-game-lets-go-pikachu: #cccccc;
  --color-text-game-lets-go-pikachu: #111;
  --color-bg-game-lets-go-pikachu: #ffffff;

  --color-game-lets-go-eevee: #cccccc;
  --color-text-game-lets-go-eevee: #111;
  --color-bg-game-lets-go-eevee: #ffffff;

  --color-game-sword: #0064ff;
  --color-text-game-sword: #d4dedf;
  --color-bg-game-sword: rgb(202, 202, 243);

  --color-game-shield: #ac4444;
  --color-text-game-shield: #f7bfbf;
  --color-bg-game-shield: rgb(243, 202, 202);
}