/*Scrollbalken*/

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(250, 250, 138, 0.3);
}

body::-webkit-scrollbar-thumb {
  background-color: rgb(227, 168, 172);
  border-radius: 20px;
  border: 3px solid rgb(217, 165, 132);
}

/*Hauptcontainer*/
.mainContainer {
  max-width: 1920px;
}

/*Header*/

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;
}

.headerLeft {
  display: flex;
  align-items: center;
}

.headline {
  color: black;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.headerImg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 20px;
  border-radius: 50%;
  margin-left: 15px;
  border: 2px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.headerImg:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.3);
}

.headerRight {
  display: flex;
  align-items: center;
}

.inputfield {
  padding: 8px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 1rem;
  margin-right: 10px;
  background: #fff;
  box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.inputfield:focus {
  box-shadow: 0px 0px 8px rgba(0, 111, 143, 0.5);
}

.searchButton {
  cursor: pointer;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 25px;
  border: none;
  color: white;
  background: linear-gradient(45deg, #006f8f, #194f6e);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.searchButton:hover {
  background-color: #00536b;
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/*Body*/

body {
  font-family: "Noto Sans";
  margin: 0;
  background-image: url("./img/pokedex.jpg");
  background-size: 90%;
  background-repeat: repeat;
  background-position: center;
  font-family: "Noto Sans";
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  background-attachment: fixed;
  background-size: cover;
}

.searchButton {
  cursor: pointer;
}

#pokedex {
  min-height: 50vh;
  color: black;
  display: flex;
  flex-direction: column;
}

.pokedex-number-container {
  display: flex;
  align-items: center;
  padding-bottom: 0;
}

#pokedexNumberSymbol {
  margin-right: 5px;
}

.card {
  margin: 20px;
  transition: transform 0.2s ease-in-out;
  height: 380px !important;
  width: 340px;
  margin: 20px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

#card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

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

.img-fluid {
  max-width: 50% !important;
}

.number {
  margin-bottom: 10px;
}

.card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.cardDescription {
  padding: 10px;
  text-align: center;
  color: #333;
}

.cardDescription h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.cardDescription p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.buttonStyle {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

#loadMoreButton {
  cursor: pointer;
  position: relative;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #194f6e, #006f8f);
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loadMoreButton:hover {
  background-color: #006f8f;
  transform: scale(1.1);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

#loadMoreButton .loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Ladeanimation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1045px) {
  #card {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
  }

  .headerRight {
    margin-top: 15px;
  }
}

@media (max-width: 1280px) and (max-height: 800px) {
  .mainContainer {
    max-width: 100%;
  }

  .header {
    justify-content: space-around;
  }

  #pokedex {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}
