* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  background-image: url("/images/pokemon11.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Kids Angel", sans-serif;
}

input,
button {
  height: 4rem;
  width: 16rem;
  background-color: black;
  color: rgb(255, 77, 0);
  font-size: 1.1rem;
  letter-spacing: 2px;
  border-radius: 10px;
  cursor: pointer;
  margin: 2rem 0.5rem 0;
  transition: transform 0.3s ease;
  outline: none;
}

input {
  cursor: pointer;
  padding-left: 20px;
}

input::placeholder {
  color: rgb(255, 77, 0);
  margin-left: 5px;
  padding-left: 20px;
}

input:hover,
button:hover {
  transform: scale(0.9);
}

.searchBox {
  text-align: center;
}

.cardContainer {
  display: flex;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

.cardContainer > div {
  width: 28rem;
  background-color: #f8eeb9;
  border: 6px solid rgb(5, 103, 108);
  border-radius: 20px;
  box-shadow: 23px 23px 45px #969696, -23px -23px 45px #ffffff;
  margin: 2rem;
  padding: 0.5rem;
  transition: transform 2s ease;
  position: relative;
}

.cardContainer > div.zoom-in {
  animation: zoom-in 2s ease forwards;
}

.cardContainer > div:hover {
  transform: perspective(1000px) rotateY(360deg);
}

.img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  padding-top: 30px;
}

img {
  width: 60%;
  height: 60%;
  object-fit: cover;
  border-radius: 50%;
  object-position: top;
  border: 10px solid rgba(255, 77, 0);
  background-color: rgba(222, 239, 244, 0.5);
  background: linear-gradient(225deg, #f0f0f0, #cacaca);
  box-shadow: -21px 21px 42px #898989, 21px -21px 42px #dee8ee;
  transform: perspective(1000px) rotateY(360deg);
}

.pokemonName {
  text-align: center;
  font-family: "Pokemon Solid", sans-serif;
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff4d00;
  margin-top: -10px;
  margin-bottom: 20px;
}

.titles {
  text-align: center;
  color: rgb(3, 91, 118);
  margin-top: 30px;
  font-size: 1.5rem;
  text-decoration: underline;
}

.stat-list,
.ab-list {
  width: 100;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgb(14, 105, 133);
  margin-left: 40px;
  list-style-type: none;
}

.stat-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}

.stat-key {
  font-weight: bold;
}

.stat-value {
  justify-self: end;
  margin-right: 50px;
}

.sound-box {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#playButton {
  display: flex;
  text-align: center;
  align-items: center;
  width: auto;
  padding: 10px;
}

@media (max-width: 768px) {
  .background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/pokemon11.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;

    body {
      overflow: hidden;
    }

    .container {
      padding: 20px;
    }

    input,
    button {
      height: 3rem;
      width: 100%;
      margin: 0.5rem 0;
      font-size: 1rem;
    }

    .cardContainer > div {
      width: 90%;
      max-width: 400px;
      margin: 0 auto 1rem;
    }
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }

    audio {
      display: none;
    }
    #playButton {
      display: none;
    }
  }
}

@media (max-width: 300px) {
  .cardContainer > div {
    width: 100%;
    margin: 0 auto 1rem;
    max-width: none;
  }

  input,
  button {
    width: 100%;
  }

  img {
    width: 100%;
    height: auto;
    border-radius: 50%;
  }

  audio {
    display: none;
  }

  #playButton {
    display: none;
  }
}
