* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scrollbar-color: var(--clr1) var(--bclr3);
  scrollbar-width: var(--sl1);
}
::-webkit-scrollbar {
  width: var(--sl1);
}
::-webkit-scrollbar-track {
  background: var(--bclr3);
}
::-webkit-scrollbar-thumb {
  background: var(--clr1);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr2);
}
:root {
  /** Base colors */
  --clr-dark-a0: #000000;
  --clr-light-a0: #ffffff;

  /** Theme primary colors */
  --clr-primary-a0: #9200fa;
  --clr-primary-a10: #a238fc;
  --clr-primary-a20: #b156fd;
  --clr-primary-a30: #bf70fe;
  --clr-primary-a40: #cc89ff;
  --clr-primary-a50: #d8a1ff;

  /** Theme surface colors */
  --clr-surface-a0: #121212;
  --clr-surface-a10: #282828;
  --clr-surface-a20: #3f3f3f;
  --clr-surface-a30: #575757;
  --clr-surface-a40: #717171;
  --clr-surface-a50: #8b8b8b;

  --sl1: 0.25rem;
  --sl2: 0.5rem;
  --sl3: 0.75rem;
  --ml1: 1rem;
  --ml2: 1.5rem;
  --ml3: 2rem;
  --ll1: 2.5rem;
  --ll2: 3rem;
  --ll3: 4rem;
  --imginvert: none;
  --smallBorder: 1px solid var(--clr-primary-a20);
  --border: 2px solid var(--clr-primary-a10);
  --fatBorder: var(--sl1) solid var(--clr-primary-a0);
  --smallBorderText: 1px solid var(--clr-light-a0);
  --borderText: 2px solid var(--clr-light-a0);
  --fatBorderText: var(--sl1) solid var(--clr-light-a0);
  --shadow: var(--sl1) var(--sl1) var(--sl3) rgba(0, 0, 0, 0.3);
}
@font-face {
  font-family: tcg;
  src: url("GillSans.otf");
  font-display: swap;
}
@font-face {
  font-family: tcgc;
  src: url("GillSansCondensed.otf");
  font-display: swap;
}
html {
  height: 100%;
  overflow-x: hidden;
}
body {
  font-size: 16px;
  background: var(--clr-surface-a0);
  font-family: tcg, sans-serif, Verdana;
  color: var(--clr-light-a0);
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  position: relative;
  letter-spacing: 0.5px;
  overflow-x: hidden;
  height: calc(100% - 4rem);
  padding: var(--sl2) 0;
  margin-top: 4rem;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ml1);
  height: 4rem;
  background: var(--clr-surface-a10);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 2;
}
nav #in_collection {
  color: var(--clr-primary-a30);
  font-size: var(--ml2);
  font-family: tcgc;
}
main {
  position: relative;
  flex: 1;
}
h1 {
  font-size: 2.5rem;
  color: var(--clr-primary-a0);
}
h2 {
  font-size: 1.2rem;
}
h3 {
  font-family: tcgc;
}
.contentWidth {
  width: 81rem;
}
section {
  display: flex;
  flex-flow: column;
  align-items: center;
  width: 100%;
  padding: var(--ml1) var(--sl2) 0;
}
section > * + * {
  margin-top: var(--ll1);
}
a {
  padding: var(--sl1);
  text-decoration: none;
  border-radius: var(--sl1);
  color: var(--clr-light-a0);
  background: var(--clr-primary-a20);
}
a:hover,
button:hover {
  cursor: pointer;
  filter: brightness(120%);
}
form {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}
form > * {
  margin: var(--sl2);
  width: 20rem;
  padding: var(--sl1);
  border-radius: var(--sl1);
  color: var(--clr-light-a0);
  background: var(--clr-surface-a20);
}
form > input[type="submit"] {
  background: var(--clr-primary-a30);
  cursor: pointer;
}
form > input[type="submit"]:hover {
  background: var(--clr-primary-a40);
}
#search {
  padding: var(--sl2);
  font-size: var(--ml1);
  border-radius: var(--sl1);
}
/* dex */
#dex {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
#dex .pokemon {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  border: 2px solid var(--clr-primary-a20);
  border-radius: var(--sl2);
  width: 8.5rem;
  height: 11.875rem;
  margin-bottom: var(--sl2);
  outline: 0px solid red;
}
#dex .pokemon.card {
  border: 0;
}
#dex img {
  width: 6rem;
  height: 6rem;
  background-color: var(--clr-primary-a30);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100%;
}
#dex .pokemon > span {
  color: var(--clr-primary-a40);
}
.pokemon:hover {
  cursor: pointer;
  filter: brightness(120%);
}
#progressBar {
  display: none;
  width: 90%;
  height: 5rem;
  position: fixed;
  left: 5%;
  right: 5%;
  top: 48%;
  border-radius: var(--sl2);
  border: var(--sl1) solid white;
  padding: 2px;
  background: var(--clr-surface-a0);
}
#progressBar > span {
  width: 100%;
  font-size: 2rem;
  color: var(--clr-light-a0);
  line-height: calc(5rem - 4px);
  vertical-align: center;
  text-align: center;
  position: absolute;
  top: 0;
  z-index: 1;
}
#progressBar > div {
  background: var(--clr-primary-a30);
}
.logoutScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
}
.logoutScreen p {
  font-size: 1.5rem;
}
.logoutScreen a {
  text-decoration: none;
  background: var(--clr-primary-a30);
  color: var(--clr-light-a0);
  border-radius: var(--sl1);
  padding: var(--sl2);
  margin: var(--ml1);
  text-align: center;
  width: 8rem;
}
/*label*/
input {
  outline: none;
  border: none;
  font-family: tcg, sans-serif, Verdana;
}
button {
  border: 0;
  outline: 0;
  padding: var(--sl2);
  color: var(--clr-light-a0);
  background: var(--clr-primary-a30);
  border-radius: var(--sl1);
  font-family: tcg;
  font-weight: 700;
  font-size: 1rem;
}
.confirmationWindow {
  position: fixed;
  top: 0;
  width: 81rem;
  height: 100vh;
  background: var(--clr-surface-a0);
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
  padding: var(--sl2);
}
.confirmationWindow > button {
  width: 8rem;
}
.cardContainer {
  display: flex;
  align-items: flex-start;
  height: auto;
  width: 100%;
  overflow-x: scroll;
  padding: var(--ll3);
}
.cardContainer > .pokemonCard {
  height: auto;
  width: auto;
}
.cardContainer > .pokemonCard:hover {
  filter: brightness(120%);
  cursor: pointer;
}
.cardContainer > .pokemonCard p {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.cardContainer > .pokemonCard span {
  text-align: right;
  color: var(--clr-primary-a40);
}
.cardContainer > .pokemonCard > img {
  height: 22rem;
  width: auto;
  border-radius: var(--sl2);
}
.pokemonCard p > img {
  width: 50%;
  margin-left: 25%;
}
.cardContainer {
  padding: var(--ll3) 0 0;
}
.cardContainer > .pokemonCard + .pokemonCard {
  margin-left: var(--ml1);
}
@media screen and (max-width: 1300px) {
  .contentWidth {
    width: 100%;
  }
  .cardContainer > .pokemonCard > img {
    height: 17rem;
  }
  .confirmationWindow {
    width: 100%;
  }
}
@media screen and (max-width: 820px) {
  html,
  body {
    font-size: 12px;
  }
  .cardContainer > .pokemonCard > img {
    height: 12rem;
  }
  #dex .pokemon {
    width: 7rem;
    height: 9.78rem;
  }
  nav h1 {
    display: none;
  }
  section > * + * {
    margin-top: var(--ml1);
  }
}
