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

html {
  font-size: 62.5%;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #121212;
  color: #fff;
  padding: 25px;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.top-section {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.top-section h1 {
  font-size: 2.5em;
  line-height: 1;
}

form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5px;
}

form input {
  padding: 5px 10px;
  border-radius: 2.5px;
  border: none;
  font-size: 1.5em;
}

form button {
  color-scheme: dark;
  border: none;
  background-color: blue;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
}

.pokemon-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pokemon,
.name-and-id,
.size {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2px;
}

.pokemon {
  padding-left: 15px;
}

.pokemon p {
  font-size: 1.5em;
  line-height: 1.25;
}

#pokemon-name::before {
  content: "Name: ";
  font-weight: 500;
}

#pokemon-id::before {
  content: "ID: ";
  font-weight: 500;
}

#weight::before {
  content: "Weight: ";
  font-weight: 500;
}

#height::before {
  content: "Height: ";
  font-weight: 500;
}

#sprite {
  width: 250px;
}

#types {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-weight: bold;
  font-size: 1.5em;
}

#types p {
  padding: 5px 7.5px;
  border-radius: 5px;
}

table {
  width: 100%;
  border: 1px solid #fff;
  border-collapse: collapse;
}

table tr th, table tr td {
  border-bottom: 1px solid #fff; 
  border-right: 1px solid #fff; 
  padding: 5px 10px;
  /* font-size: 1.5em; */
  text-align: left;
}

@media (min-width: 512px) {
  main {
    width: 400px;
  }

  form {
    flex-direction: row;
  }
  form input {
    width: 100%;
  }
}
