html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(71, 69, 75);
  height: 100vh;
  margin: 0;
  display: flex;
  max-width: 2560px;
  box-sizing: border-box;
  justify-content: center;
  font-family: "Open Sans", sans-serif;
}

.normal {
  background-color: gray;
}

.fire {
  background-color: red;
}

.water {
  background-color: blue;
}

.grass {
  background-color: green;
}

.electric {
  background-color: rgb(226, 226, 8);
}

.ice {
  background-color: lightblue;
}

.fighting {
  background-color: brown;
}

.poison {
  background-color: purple;
}

.ground {
  background-color: saddlebrown;
}

.flying {
  background-color: lightgray;
}

.psychic {
  background-color: pink;
}

.bug {
  background-color: darkgreen;
}

.rock {
  background-color: darkgray;
}

.ghost {
  background-color: rgb(48, 25, 52);
}

.dragon {
  background-color: darkblue;
}

.dark {
  background-color: black;
}

.steel {
  background-color: silver;
}

.fairy {
  background-color: rgb(253, 160, 174);
}

h1 {
  margin-block-end: 0;
  margin-bottom: 15px;
}

header {
  color: white;
  background-color: rgb(41, 40, 40);
  height: 100px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  padding-bottom: 5px;
}

header div {
  margin-left: 80px;
  width: 33%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

header img {
  height: 150px;
  display: flex;
  justify-content: center;
}

.decide {
  display: flex;
  justify-content: end;
}

#generationSelect {
  background-color: rgb(253, 192, 13);
  border: 3px solid rgb(45, 68, 148);
  color: red;
  font-weight: bold;
  margin-top: 4px;
  font-size: 16px;
  height: 34px;
  width: 215px;
  font-family: "Open Sans", sans-serif;
  border-radius: 5px;
}

#pokemonTypes {
  background-color: rgb(253, 192, 13);
  border: 3px solid rgb(45, 68, 148);
  color: red;
  font-weight: bold;
  margin-top: 4px;
  font-size: 16px;
  height: 34px;
  min-width: 215px;
  width: 215px;
  font-family: "Open Sans", sans-serif;
  border-radius: 5px;
}

input {
  background-color: rgb(253, 192, 13);
  padding: 5px;
  border: 3px solid rgb(45, 68, 148);
  color: red;
  border-radius: 5px;
  font-family: "Open Sans", sans-serif;
  width: 160px;
}

form button {
  display: none;
}

.generationButton {
  margin-left: 5px;
  background-color: rgb(253, 192, 13);
  color: red;
  border: 10px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  height: 30px;
  margin-top: 3px;
}

.generationButton:hover {
  cursor: pointer;
  background-color: rgb(204, 162, 35);
}

.typeButton {
  background-color: rgb(253, 192, 13);
  color: red;
  border: 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  height: 30px;
  margin-top: 3px;
  margin-right: 20px;
}

.typeButton:hover {
  cursor: pointer;
  background-color: rgb(204, 162, 35);
}

nav {
  display: flex;
}

.generations span {
  color: red;
}

.generations input {
  width: 30px;
}

.generation-link {
  padding: 5px;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s ease;
  z-index: 50;
  width: 90px;
}

.generation-link:hover {
  background-color: grey;
  cursor: pointer;
}

form {
  height: 30px;
  margin-right: 80px;
  max-width: 2560px;
}

.content {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.singlePokemon {
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 50px;
  width: 200px;
  height: 300px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  align-items: center;
  border: 1px solid black;
  transition: all 225ms ease-in-out;
  box-shadow: -1px 1px 5px 5px rgba(0, 0, 0, 0.3);
}

.singlePokemon:hover {
  cursor: pointer;
  scale: 1.08;
  transition: all 225ms ease-in-out;
}

.pokemonImage {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
}

.singlePokemon img {
  display: flex;
  object-fit: cover;
  width: 100%;
}

.indexAndName {
  height: 50px;
  background-color: rgb(66, 59, 59);
  display: flex;
  align-items: center;
  color: white;
  z-index: 3;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
}

.indexAndName span:first-child {
  margin-left: 5px;
}

.indexAndName span:last-child {
  width: 100%;
  text-transform: capitalize;
  text-align: center;
}

.art {
  width: 100%;
  height: 50px;
  background-color: rgb(66, 59, 59);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.art img {
  padding: 10px;
  height: 20px;
  width: 20px;
  object-fit: cover;
  border-radius: 50%;
}

.d-none {
  display: none !important;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(112, 111, 111, 0.5);
  z-index: 20;
}

.popup:hover {
  cursor: pointer;
}

.pokemonPopup {
  height: 600px;
  width: 350px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
}

.pokemonImagePopup {
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  flex: 1;
}

.pokemonImagePopup img {
  display: flex;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.indexAndNamePopUp {
  height: 50px;
  width: 100%;
  background-color: rgb(66, 59, 59);
  display: flex;
  align-items: center;
  color: white;
  justify-content: center;
  z-index: 3;
  text-transform: capitalize;
  font-size: 22px;
}

.artPopup {
  width: 100%;
  height: 150px;
  background-color: rgb(66, 59, 59);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.popupTab {
  width: 100%;
  height: 35px;
  z-index: 3;
  display: flex;

  background-color: rgb(66, 59, 59);
  justify-content: space-between;
}

.popupTab:hover {
  cursor: pointer;
}

.singlePopupTab {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: rgb(97, 93, 93);
  border: 1px solid rgb(134, 129, 129);
  border-bottom-color: rgb(66, 59, 59);
}

.singlePopupTab:hover {
  background-color: rgb(66, 59, 59);
}

.singlePopupTabMiddle {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-transform: capitalize;
  background-color: rgb(97, 93, 93);
  border: 1px solid rgb(134, 129, 129);
  border-bottom-color: rgb(66, 59, 59);
}

.singlePopupTabMiddle:hover {
  background-color: rgb(66, 59, 59);
}

.chart {
  width: 100%;
  max-width: 600px;
  height: 115px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.bar-container {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.bar-label {
  flex: 0 0 20%;
  color: white;
  text-align: left;
  margin-right: 10px;
  font-size: 13px;
  flex: 1;
  margin-left: 5px;
  text-transform: capitalize;
}

.bar-wrapper {
  flex: 0 0 80%;
  background-color: black;
  position: relative;
  height: 10px;
  border-radius: 10px;
  margin-left: auto;
}

.bar {
  background-color: purple;
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

.bar-value {
  position: absolute;
  right: 5px;
  top: -5px;
  color: white;
  font-size: 14px;
  line-height: 20px;
}

.overallPopup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  height: 50px;
  width: 50px;
  object-fit: cover;
  margin: 10px;
  background-color: rgb(253, 192, 13);
  border-radius: 50%;
}

.allPokemonLink {
  color: white;
  font-size: 30px;
  margin-top: 120px;
  width: 100vw;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.allPokemonLink:hover {
  text-decoration: underline;
}

.singlePokemonSearch {
  margin-left: 20px;
  margin-top: 20px;
  width: 200px;
  height: 300px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  align-items: center;
  border: 1px solid black;
  transition: all 225ms ease-in-out;
  box-shadow: -1px 1px 5px 5px rgba(0, 0, 0, 0.3);
}

.singlePokemonSearch:hover {
  cursor: pointer;
  scale: 1.08;
  transition: all 225ms ease-in-out;
}

.singlePokemonSearch img {
  display: flex;
  object-fit: cover;
  width: 100%;
}

.artSearch {
  width: 100%;
  height: 50px;
  background-color: rgb(66, 59, 59);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.artSearch img {
  padding: 10px;
  height: 20px;
  width: 20px;
  object-fit: cover;
  border-radius: 50%;
}

.scrolling {
  overflow: hidden !important;
}

.scrolling2 {
  overflow: scroll !important;
}

.about {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  font-size: 14px;

}

.pokemonHeight {
  display: flex;
  justify-content: space-around;
  color: white;
  margin-top: 20px;
}

.pokemonWeight {
  display: flex;
  justify-content: space-around;
  color: white;
  margin-top: 20px;
}

.description {
  color: white;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
  text-align: center;
}

@media (max-width: 910px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 225px;
  }

  header div {
    margin: 0;
    height: 120px;
  }

  header img {
    margin-top: -20px;
    margin-bottom: -20px;
  }

  .decide {
    display: flex;
    justify-content: center;
  }

  form {
    display: flex;
    justify-content: center;
    margin: 0;
    margin-bottom: 10px;
  }
  .typeButton {
    margin-right: 0;
  }
  #pokemonTypes {
    margin-left: 0;
    margin-bottom: 5px;
  }

  #generationSelect {
    margin-left: 0;
  }

  .content{
    margin-top: 195px;
  }
}

@media (max-width: 820px) {


  header div {
    margin: 0;
    height: 120px;
  }

  form {
    display: flex;
    justify-content: center;
    margin: 0;
    margin-bottom: 10px;
  }

  #pokemonTypes {
    margin-left: 0;
    margin-bottom: 5px;
  }

  #generationSelect {
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .overallPopup {
    flex-direction: column;
  }
}

@media (max-width: 380px) {

  header{
    height: 150px;
  }

  header img {
    margin-top: -20px;
  }
  .decide {
    display: none;
  }

  .content{
    margin-top: 120px;
  }

  .overallPopup {
    scale: 0.85;
  }
}
