@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;500&family=Roboto+Condensed:wght@300;400;700&family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,600;8..144,700;8..144,800&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto Flex", sans-serif;
  background-color: rgb(30, 30, 30);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

#pokedex {
  width: 22rem;
  height: 35rem;
  background-color: rgb(116, 203, 72);
  border-radius: 8px;
  padding: 0.3rem;
  transition: background-color 0.5s ease-in-out;
}

#top {
  height: 40%;
  padding: 0.5rem;
  background: url("./assets/bg.png");
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: right;
}

#top-bar {
  display: flex;
  justify-content: space-between;
  color: white;
  padding: 0 1.2rem;
}

#search {
  color: white;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  width: 60%;
  text-transform: capitalize;
}

#search:focus {
  outline: none;
}

#poke-image-placeholder {
  display: flex;
  justify-content: center;
}

#pokemon-image {
  width: 200px;
  height: 200px;
  transform: translateY(3.5rem);
}

#data {
  background-color: white;
  height: 60%;
  border-radius: 8px;
  padding-top: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#types {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.type {
  background-color: rgb(116, 203, 72);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: capitalize;
}

#data h4 {
  text-align: center;
}

#stats {
  width: 80%;
  font-size: 0.8rem;
  gap: 0.6rem;
}

.stat-row {
  display: flex;
}

.stat-desc,
.stat-number {
  width: 15%;
}

.stat-desc {
  color: rgb(116, 203, 72);
  font-weight: bold;
  text-align: right;
  padding-right: 0.6rem;
  border-right: 1px solid gray;
  transition: 0.5s ease-in-out;
}

.stat-number {
  padding-left: 0.6rem;
}

.stat-bar {
  width: 70%;
  display: flex;
  align-items: center;
}

.bar-outer {
  background-color: rgba(116, 203, 72, 0.3);
  display: flex;
  width: 100%;
  height: 0.3rem;
  border-radius: 3px;
  transition: 0.5s ease-in-out;
}

.bar-inner {
  background-color: rgb(116, 203, 72);
  width: 40%;
  border-radius: 3px;
  transition: 0.5s ease-in-out;
}

#base-stats {
  color: rgb(116, 203, 72);
  transition: 0.5s ease-in-out;
}
