* {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}

body {
  background-image: url(https://images8.alphacoders.com/124/1243956.jpg);
  background-attachment: fixed;
  background-size: cover;
}
h1 {
  color: #fff;
  text-shadow: 0 2px 4px black;
  font-family: "Pokemon Solid", sans-serif;
  letter-spacing: 10px;
  font-size: 4rem;
  margin-top: 5px;
}

.content {
  text-align: center;
  width: 100vw;
  height: 100vh;
  padding: 1rem 2rem;
  max-width: 1270px;
  margin: auto;
}
.content .poke-stats,
.content .closeButton,
.content .main-stats,
.content .poke-details-text,
.modal #btn-pokedetails,
#modal-id {
  display: none;
}
#loadMoreButton:hover {
  cursor: pointer;
  filter: brightness(0.9);
}
.pokemons li:hover {
  -webkit-box-shadow: 0px 2px 40px -11px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 2px 40px -11px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 2px 40px -11px rgba(0, 0, 0, 0.75);
}
.modal .poke-img {
  display: flex;
  width: 270px;
  height: 240px;
  box-shadow: 0px 0px 30px -11px inset rgb(0 0 0 / 40%);
  border-radius: 2rem;
  justify-content: center;
  align-items: center;
  margin: auto;
}
.modal .poke-img img {
  width: 100%;
  height: 90%;
  padding: 0.5rem;
}
.modal {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  right: 0;
  text-align: center;
}

#modalpoke .type {
  filter: brightness(0.9);
}
.modal .main-stats {
  width: 76%;
  border: dashed #f1eeee 2px;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-size: 1.2rem;
  /* margin: 0 auto 0.25rem; */
  border-radius: 1rem;
  min-height: 175px;
  /* height: 175px; */
  box-shadow: 1px 1pxx 5px black;
}
.modal .main-stats li span {
  font-size: 1rem;
}
.pokemon-btn:hover {
  cursor: pointer;
  color: #fff;
  text-decoration: underline;
}
.pokemon-btn {
  width: max-content;
  color: rgb(46, 43, 43);
  font-size: 0.9rem;
}

.modal .poke-details-text {
  display: flex;
}

#modal-id {
  display: none;
}
.main-stats {
  list-style: none;
}
.modal .type {
  font-size: 1.2rem;
}
.modal ol {
  list-style: none;
  align-self: flex-start;
}
#modalpoke {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 500px;
  margin: auto;
  border-radius: 1rem;
  padding: 1rem 6rem;
  height: fit-content;
  min-height: 650px;
}
#modalpoke .type {
  width: fit-content;
}
#modalpoke .types {
  margin: 1rem;
  display: flex;
  flex-direction: row;
  padding-inline-start: 0;
}
#modalpoke .types li {
  color: #fff;
  text-align: center;
  margin: auto;
  padding: 10px;
  border-radius: 1.5rem;
}
.modal .detail .types li {
  width: auto;
  justify-content: center;
}
.modal .closeButton {
  position: absolute;
  top: -3px;
  right: -3px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 20px 4px grey;
  font-size: 1.25rem;
}

.main-stats {
  text-transform: capitalize;
  padding: 0.12rem auto;
  margin: 0;
}
.modal .main-stats {
  display: none;
}
.modal .poke-stats li {
  margin: 4px;
  text-align: left;
  font-size: 1rem;
}
.modal .poke-stats {
  background: #ffffff25;
  display: grid;
  grid-template-columns: 0.3fr 0.2fr 1fr;
  font-size: 1rem;
  text-align: left;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  width: 100%;
  height: 175px;
  margin: 0;
}
@keyframes pokeBar {
  from {
    width: 0;
  }
  to {
    width: content;
  }
}
.poke-bar {
  background-color: rgb(46 41 41);
  border-radius: 1rem;
}
.bar {
  border-radius: inherit;
  animation: pokeBar 1.5s;
}

.bar-hp {
  background-color: green;
}
.bar-atk {
  background-color: rgb(231 21 21);
}
.bar-def {
  background-color: #d66b13;
}
.bar-satk {
  background-color: rgb(173, 5, 5);
}
.bar-sdef {
  background-color: rgb(121, 41, 157);
}
.bar-spd {
  background-color: rgb(73, 114, 235);
}
.stats-board li:hover {
  color: #fff;
}
#github {
  font-size: 1rem;
  position: fixed;
  top: 0;
  right: 9px;
  text-align: center;
  color: #fff;
}
.poke-story {
  display: none;
}
.modal .poke-story {
  display: none;
  text-align: left;
  font-size: 1.25rem;
  min-height: 175px;
  border-radius: 1rem;
  background-color: #00000010;
  align-items: center;
  padding: 0.5rem 0.5rem;
  flex-direction: column;
  width: 100%;
}
.modal .poke-story ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 0.5rem;
}
.modal .poke-story ul li {
  background-color: #0000001c;
  padding: 0.25rem 0.5rem;
  margin: 0 0.5rem;
  border-radius: 1rem;
  width: auto;
  font-weight: bold;
  font-size: 1rem;
}
.modal .poke-story p {
  margin: 0;
  padding: 0.25rem 0.5rem 0rem;
  /* margin-top: 1rem; */
}
@keyframes mostrarModal {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.content .stats-board {
  display: none;
}
.modal .stats-board {
  margin: 1rem;
  list-style: none;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  flex-direction: row;
  padding: 0;
}
.modal .stats-board li {
  width: auto;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  /* border: black solid 1px; */
  border-radius: 1.25rem;
  background-color: #0000001c;
}
.stats-board li:enabled {
  text-decoration: underline;
}
.mostrar {
  animation: mostrarModal 0.25s;
}
.modal .detail {
  width: 100%;
}
.poke-stats {
  list-style: none;
}
.modal .poke-span-hp {
  width: 100%;
  background-color: green;
}
.modal .name,
.modal .number {
  font-size: 1.5rem;
}
.stats-board li,
.modal .poke-story ul li:hover {
  cursor: pointer;
  background-color: #00000049;
}
.modal .stats-li {
  font-weight: 700;
}
.modal .poke-story ul li:hover {
  color: #fff;
}
.story-hide {
  display: none;
}
.hide {
  display: none;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  background-image: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
}
select::-ms-expand {
  display: none;
}
.select {
  position: relative;
  display: flex;
  width: 12rem;
  background: #0000004d;
  margin: 0 0 1rem;
  font-size: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  text-align: left;
}
.select::after {
  content: "\25BC";
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  pointer-events: none;
  padding: 0 0.5rem;
  background-color: #fff;
  transition: 0.4s all ease;
  padding: 0.4rem 0.75rem 0.75rem 0.5rem;
  height: 100%;
  color: black;
}
.select:hover::after {
  color: #fff;
  background-color: black;
}
#poke-type-filter {
  color: white;
  text-align: center;
  padding: 0.25rem 1rem 0.25rem 0;
  width: 100%;
}
#poke-type-filter option:nth-child(even) {
  background-color: rgba(128, 128, 128, 0.555);
}
#poke-type-filter option:nth-child(odd) {
  background-color: lightgrey;
}
select option {
  color: black;
  text-align: center;
}
.optionsDiv {
  align-content: space-around;
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  flex-direction: row;
  margin: 0 50px;
  padding: 0 0.5rem;
}
.seasons-btn {
  background-color: #0000004d;
  margin: auto;
  border: none;
  border-radius: 1rem;
  color: #fff;
  padding: 0.4rem 0.5rem;
}
.storyDiv {
  margin: 0.25rem auto 0;
}
.modal .main-stats {
  width: 100%;
}

/* -------------------- MEDIA QUERY -------------------- */

@media only screen and (max-width: 992px) {
  .content,
  .optionsDiv {
    /* height: auto; */
    margin: 0 auto;
    border-radius: 1rem;
    padding: 1rem;
  }
  #github {
    font-size: 0.75rem;
  }
  .modal .poke-story {
    width: auto;
  }
  .select {
    margin: 0.5rem;
  }
  .optionsDiv {
    padding: 0 0rem 1rem;
    margin-right: 1rem;
  }
  .modal .main-stats {
    width: 100%;
  }
}
@media only screen and (max-width: 650px) {
  .content {
    height: auto;
  }
  h1 {
    font-size: 3rem;
  }
  #modalpoke {
    width: 80%;
    height: fit-content;
    margin: 30px auto;
    padding: 1rem 2rem;
  }
  .modal .poke-img {
    margin: auto;
  }
  .modal .poke-stats,
  .modal .main-stats,
  .modal .poke-story {
    width: 95%;
  }
  #github {
    display: none;
  }
  .modal .poke-story {
    font-size: 1.2rem;
    min-height: 175px;
    height: fit-content;
  }
  .select {
    margin: auto;
    width: 10rem;
  }
  .optionsDiv {
    margin: 1rem auto 0.5rem;
    padding: 0.5rem;
  }
}
@media only screen and (max-width: 410px) {
  .content {
    height: auto;
  }
  h1 {
    font-size: 2.5rem;
  }
  #modalpoke {
    width: 100%;
    height: min-content;
    margin: 0 auto;
    padding: 1rem;
    min-height: auto;
  }

  .modal span,
  .modal .detail,
  .modal .type {
    font-size: 1.25rem;
  }
  .modal .stats-board {
    font-size: 1rem;
  }
  .modal .poke-img {
    width: 80%;
    height: 200px;
    margin: auto;
  }
  .modal {
    padding: 0.25rem 1rem;
  }
  .modal .poke-stats {
    margin: 0 0.25rem;
  }
  .modal .poke-story ul {
    margin: 0;
  }
}
@media only screen and (max-width: 266px) {
  .stats-board {
    margin: 0;
  }
  .modal {
    padding: 2px;
  }
}
