* {
  font-family: "Inconsolata", monospace;
  box-sizing: border-box;
}

@font-face {
  font-family: "Inconsolata";
  src: url("webfont.eot");
  /* IE9 Compat Modes */
  src: url("webfont.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */
    url("webfont.woff2") format("woff2"),
    /* Super Modern Browsers */
    url("webfont.woff") format("woff"),
    /* Pretty Modern Browsers */
    url("webfont.ttf") format("truetype"),
    /* Safari, Android, iOS */
    url("webfont.svg#svgFontName") format("svg");
  /* Legacy iOS */
}

input:focus {
  border: 1px solid #22cba8;
  box-shadow: none !important;
}

audio {
  height: 30px;
  width: 300px;
  border: 1px solid #d6c887;
  border-radius: 30px;
}

#pokeBtn {
  border: 1px solid red;
  font-weight: bolder;
  border-radius: 30px;
}

audio::-webkit-media-controls-panel {
  background-color: #406163;
}

#searchBar {
  display: flex;
  justify-content: center;
}

#comment {
  font-size: bolder;
  font-size: larger;
  padding: 10px;
}

#butt {
  height: 20px;
  width: 20px;
  border: none;
  padding-bottom: 10px 25px;
  border-radius: 0 5px 5px 0;
  background-color: transparent;
  font-size: larger;
  cursor: pointer;
}

nav {
  border-radius: 0.25rem;
}

#footer {
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: #d6c887;
}

#arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  height: 50vh;
  width: 100%;
}

.shake {
  animation: shake 0.3s ease-in;
}

.shake2 {
  animation: shake2 0.3s ease-in 2.7s;
}

#comment span {
  color: red;
}

#comment p {
  margin-left: 0;
  line-height: 1rem;
}

#main {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#pk1 img {
  padding-top: 170px;
  padding-right: 150px;
}

#pk2 img {
  padding-bottom: 30px;
  padding-left: 30px;
}

#m0,
#m1,
#m2,
#m3 {
  border: 1px solid #22cba8;
  font-weight: bolder;
  font-size: larger;
}

#hp1,
#hp2,
#comment {
  background-color: #406163;
  opacity: 0.8;
  color: #d6c887;
  border-radius: 3rem;
}

th,
td {
  border-radius: 1rem;
}

.btn1 {
  border-radius: 5px;
}

.btn,
.btn1 {
  background-color: #406163;
  display: block;
  width: 100%;
  color: #22cba8;
  font-weight: bolder;
}

#btn {
  color: #22cba8;
  display: flex;
  justify-content: center;
  margin-left: 20px;
  margin-right: 20px;
}

.btn:hover,
.btn1:hover {
  color: #d6c887;
}

#moves {
  margin-right: auto;
  width: 100%;
}

body {
  font-size: 20px;
  background-color: #406163;
  color: #22cba8;
  margin: 0, auto;
  padding: 40px;
}

p {
  height: min-content;
  width: 100%;
  margin-bottom: 0;
}

#pokemonBox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 20px;
  padding-inline-start: 0;
}

.pokemon {
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 1);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 10px;
  padding: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pokemon .img-container {
  text-align: center;
}

.pokemon .img-container img {
  width: 50%;
  height: 50%;
}

.pokemon .info {
  margin-top: 20px;
}

.pokemon .number {
  background-color: #d6c887;
  color: #406163;
  border-radius: 10px 0 10px;
  position: absolute;
  top: -1px;
  left: 0;
  font-size: 1rem;
  padding: 5px 10px;
}

.pokemon .name {
  margin: 15px 0 7px;
  letter-spacing: 1px;
  font-weight: bolder;
  font-size: 1.5rem;
}

.type span {
  font-size: 1rem;
}

span::first-letter {
  text-transform: uppercase;
}

.stats {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(101%);
  transition: 0.3s ease-in;
  overflow: auto;
  height: 85%;
  background-color: #333333;
  color: #d6c887;
}

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

.pokemon:hover .stats {
  transform: translateY(0);
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 1.3rem;
}

.flex button:hover {
  background-color: #d6c887;
}

.flex>ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.flex>ul>li::first-letter {
  text-transform: uppercase;
}

header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

header img {
  width: 200px;
}

.search {
  height: 40px;
  outline: none;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #d6c887;
  border-top: 2px solid #d6c887;
  border-radius: 50px;
  text-align: center;
  letter-spacing: 2px;
  color: #d6c887;
}

.search::placeholder {
  text-align: center;
  color: #d6c887;
  letter-spacing: 2px;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(180deg);
  }

  50% {
    transform: rotate(180deg);
  }

  75% {
    transform: rotate(360deg);
  }

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

@keyframes loader-inner {
  0% {
    height: 0%;
  }

  25% {
    height: 0%;
  }

  50% {
    height: 100%;
  }

  75% {
    height: 100%;
  }

  100% {
    height: 0%;
  }
}

@keyframes shake2 {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(-100px, 50px);
  }
}

@keyframes shake {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(100px, -50px);
  }
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  background-repeat: 10%;
  animation: loader 2s infinite ease;
  border-radius: 10px;
}

#pss {
  font-size: smaller;
  text-align: center;
}

.loader-wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: #406163;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: opacity 6s ease-in;
}

@media (min-device-width: 320px) and (max-device-width: 850px) {
  body {
    font-size: 15px;
    padding: 10px;
  }

  #pokemonBox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
    padding-inline-start: 0;
    grid-gap: 5px;
  }

  .pokemon .number {
    padding: 2.5px 5px;
  }

  #pk1 img {
    padding-top: 200px;
    padding-right: 40px;
  }

  #pk2 img {
    padding-bottom: 30px;
    padding-left: 30px;
  }

  #arena {
    height: auto;
  }

  audio {
    border: unset;
    border-radius: unset;
  }

  .search {
    margin: 1rem;
    width: 220px;
  }

  #butt {
    font-size: 15px;
  }

  footer {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    bottom: 0;
  }

  #m0,
  #m1,
  #m2,
  #m3 {
    font-size: smaller;
  }
}

@media (min-device-width: 320px) and (max-device-width: 900px) and (-webkit-min-device-pixel-ratio: 3) {

  #m0,
  #m1,
  #m2,
  #m3 {
    font-size: smaller;
  }

  body {
    font-size: 15px;
  }

  #pk1 img {
    padding-top: 200px;
    padding-right: 40px;
  }

  #pk2 img {
    padding-bottom: 30px;
    padding-left: 30px;
  }

  #arena {
    height: auto;
  }

  #pokemonBox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
    padding-inline-start: 0;
    grid-gap: 5px;
  }

  .pokemon .number {
    padding: 2.5px 5px;
  }

  audio {
    border: unset;
    border-radius: unset;
  }

  .search {
    margin: 1rem;
    width: 220px;
  }

  #butt {
    font-size: 15px;
  }

  footer {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    bottom: 0;
  }
}