html,
body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: Verdana, Geneva, Tahoma, Impact, Haettenschweiler,
    "Arial Narrow Bold", sans-serif;
  background-color: #545d66;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

h3,
p {
  margin: 0;
}

h3 {
  margin-bottom: 16px;
}

.overflow_hidden {
  overflow: hidden;
}

button {
  background-color: #49d0b0;
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 16px;
  color: #333333;
  width: 250px;
  box-shadow: 5px 5px 15px rgb(39, 39, 39);
}

button:hover {
  cursor: pointer;
  border-color: #3aa18f;
  box-shadow: 0 0 0 3px rgba(39, 39, 39, 0.3);
}

.btn {
  width: 24px;
}

/* Header Section */
header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  padding: 16px;
  background-color: #3aa18f;
  box-shadow: 5px 5px 15px rgb(39, 39, 39);
  z-index: 5;
}

.header_content {
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header_logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_logo > img {
  height: 50px;
}

input {
  border: 2px solid #49d0b0;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 16px;
  color: #333333;
  width: 200px;
}

input::placeholder {
  color: #999999;
}

input:focus {
  outline: none;
  border-color: #3aa18f;
  box-shadow: 0 0 0 3px rgba(73, 208, 176, 0.3);
}

/* Main Section */
main {
  flex-grow: 1;
  margin: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.cards_wrapper {
  max-width: 1440px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.cards_content {
  text-transform: capitalize;
  width: 250px;
  height: 160px;
  padding: 16px;
  box-shadow: 5px 5px 15px rgb(39, 39, 39);
  display: flex;
  justify-content: space-between;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.cards_content:hover {
  scale: 1.03;
  cursor: pointer;
}

.pokemon_info {
  display: flex;
  flex-direction: column;
}

#btn_left:hover,
#btn_right:hover {
  cursor: pointer;
  scale: 1.2;
}

.pokemon_id,
.pokemon_type {
  color: rgb(63, 62, 62);
}

.pokeball-background {
  width: 160px;
  height: 160px;
  position: absolute;
  right: -40px;
  bottom: -40px;
  opacity: 0.2;
  pointer-events: none;
}

.pokemon_image_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.pokemon_image {
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
  filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.7));
}

.bg_grass {
  background-color: #49d0b0;
}

.bg_fire {
  background-color: #fc6c6c;
}

.bg_water {
  background-color: #76befe;
}

.bg_electric {
  background-color: #ffd672;
}

.bg_normal {
  background-color: #b6b58f;
}

.bg_ice {
  background-color: #96d9d6;
}

.bg_fighting {
  background-color: #c22e28;
}

.bg_poison {
  background-color: #a33ea1;
}

.bg_ground {
  background-color: #e2bf65;
}

.bg_flying {
  background-color: #a98ff3;
}

.bg_psychic {
  background-color: #f95587;
}

.bg_bug {
  background-color: #a6b91a;
}

.bg_rock {
  background-color: #b6a136;
}

.bg_ghost {
  background-color: #735797;
}
.bg_dragon {
  background-color: #6f35fc;
}
.bg_dark {
  background-color: #705746;
}
.bg_steel {
  background-color: #b7b7ce;
}
.bg_fairy {
  background-color: #d685ad;
}

/* Loadingspinner */
.loading_spinner_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.loading_spinner {
  animation: wobble 1s infinite alternate ease-in-out;
  transform-origin: 50% 100%;
}

.loading_spinner img {
  width: 150px;
}

@keyframes wobble {
  0% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(15deg);
  }
}

.impressum {
  width: 100%;
  padding: 16px;
  max-width: 1440px;
}

.impressum > p > a {
  color: black;
  text-decoration: none;
}

.impressum > p > a:hover {
  text-decoration: underline;
  cursor: pointer;
}

footer {
  height: 50px;
  background-color: #3aa18f;
  padding: 16px;
  box-shadow: 5px 5px 15px rgb(39, 39, 39);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer_content {
  max-width: 1440px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer_link {
  color: #ffffff;
  text-decoration: none;
}

.footer_link:hover {
  text-decoration: underline;
}

.loading_hint {
  font-size: 14px;
  color: #666;
}

.d_none {
  display: none;
}

@media (max-width: 600px) {
  .header_content {
    flex-direction: column;
  }
}
