body {
  margin: 0;
  background-color: #f6f8fc !important;
  background-image: url(img/card-bgr.png);
  background-size: 600px;
  width: 100%;
}

header {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background-color: #ffcc00c0;
  width: 100%;
  flex-direction: column;
  padding-bottom: 20px;
  padding-top: 20px;
  box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.1); /* Horizontaler Versatz, vertikaler Versatz, Unschärferadius, Ausbreitungsradius, Farbe */
}

header img {
  height: 60px;
}

input {
  height: 30px;
  background-color: transparent;
  border-style: none;
  width: 250px;
  padding: 30px;
  outline: none;
  color: #356abc;
  font-size: 24px;
}

input::placeholder {
  color: #356abc;
  font-size: 24px;
  text-align: center;
}

.pokedex-container {
  height: 250px;
  color: white;
  padding: 24px;
  width: 250px;
  margin: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 2px 3px 3px 2px rgba(0, 0, 0, 0.1);
  background-image: url(img/card-bgr.png);
  background-repeat: no-repeat;
  background-position: bottom 5px right 10px;
  background-size: 150px;
}

#pokedex {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.pokedex-container:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.pokedex-container img {
  height: 150px;
}

.info-container {
  background-color: white;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  min-height: 100px;
  margin-top: -40px;
  background-color: gray;
}

#pokedex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.load-btn {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 16px;
}

h6 {
  text-align: center;
}

.bgr-color-red {
  background-color: #fb6c6c;
}

.bgr-color-green {
  background-color: #48d0b0;
}

.bgr-color-blue {
  background-color: #76bdfe;
}

.bgr-color-bug {
  background-color: #92bf2c;
}
.bgr-color-normal {
  background-color: #a1a1a1;
}

.bgr-color-poison {
  background-color: #6d4b97;
}

.bgr-color-electric {
  background-color: #f2c341;
}

.bgr-color-ground {
  background-color: #895229;
}

.bgr-color-fairy {
  background-color: #ba7fb5;
}
.bgr-color-psychic {
  background-color: #dc4d79;
}

.bgr-color-flying {
  background-color: #f08733;
}

.bgr-color-steel {
  background-color: #74a2b9;
}

.bgr-color-dragon {
  background-color: #4c60a9;
}

.bgr-color-ice {
  background-color: #78ccf0;
}

.bgr-color-rock {
  background-color: #ada984;
}

.bgr-color-fighting {
  background-color: #f08733;
}

.bgr-color-ghost {
  background-color: #6b426e;
}

.bgr-color-dark {
  background-color: #4e403f;
}

.btn {
  margin-left: auto;
  margin-right: auto;
}

.d-none {
  display: none;
}

#pokedexBigCard {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* positioniert die Karte in die Mitte*/
  z-index: 1000;
  width: 400px;
  height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}

#bigCardImage {
  width: 60%;
  margin-bottom: 20px;
}

.bigCard {
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  color: white;
  width: 100%;
  height: 100%;
  background-image: url(img/card-bgr.png);
  background-repeat: no-repeat;
  background-position: bottom -30px right -30px;
  background-size: 250px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert die Inhalte horizontal */
  justify-content: center;
  text-align: center;
}

.bigCard h2 {
  margin-top: 15px;
}

#pokemonStats {
  width: 100%; /* Breite des Diagramms */
  height: 100%; /* Höhe des Diagramms */
  background-color: white;
  border-radius: 20px;
  margin-top: -20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#pokemonStats h4 {
  margin-top: 20px;
}

#chart {
  width: 90% !important;
}

h2 {
  font-size: 20px !important;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 999; 
}

.nav {
  display: flex;
  gap: 80px;
  margin-top: 20px;
  align-items: center;
}

.nav img {
  height: 40px;
}

.nav img:hover {
  cursor: pointer;
  transform: scale(1.1);
}

@media (max-width: 450px) {
  #pokedexBigCard {
    width: 280px;
    height: 600px;
  }
  .nav img {
    height: 25px;
  }
  .nav {
    gap: 40px;
  }
  #pokemonStats {
    height: 85%;
  }
  #chart {
    height: 200px !important;
    aspect-ratio: 2/1;
  }
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background-color: #f2c341;
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background-color: #eee;
  border-radius: 10px;
}
h2 {
  text-align: center;
}
