@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Oxanium', cursive;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  background-image: url(../images/background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

main {
  display: inline-block;
  padding: 15px;
  position: relative;
  transform: scale(0.8);
}

.pokedex {
  width: 100%;
  max-width: 425px;
}

.pokemon_imagegif {
  position: absolute;
  bottom: 55%;
  left: 50%;
  transform: translate(-68%, 28%);
  height: 17%;
}

.pokemon_image {
  position: absolute;
  bottom: 55%;
  left: 50%;
  transform: translate(-70%, 38%);
  height: 20%;
}

.pokemon_data {
  position: absolute;
  font-weight: 600;
  color: #aaa;
  top: 54.5%;
  right: 27%;
  font-size: clamp(8px, 5vw, 25px);
}

.pokemon_name {
  color: #3a444d;
  text-transform: capitalize;
}

.pokemon_details {
  position: absolute;
  top: 64.2%;
  right: 27%;
  font-size: clamp(8px, 5vw, 16.5px);
  color: #2c2f33;
  display: flex;
  text-transform: capitalize;
  font-weight: 700;
}

.pokemon_details p {
  margin-right: 20px;
}

.pokemon_details p:last-child {
  margin-right: 0;
}

.form {
  position: absolute;
  width: 65%;
  top: 73%;
  left: 13.5%;
}

.input_search {
  width: 100%;
  padding: 4%;
  outline: none;
  border: 2px solid #333;
  border-radius: 5px;
  font-weight: 600;
  color: #3a444d;
  font-size: clamp(8px, 5vw, 1rem);
  box-shadow: -3px 4px 0 #888, -5px 7px 0 #333;
}

.buttons {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 65%;
  transform: translate(-57%, 0);
  display: flex;
  gap: 20px;
}

.button {
  width: 50%;
  padding: 4%;
  border: 2px solid #000;
  border-radius: 5px;
  font-size: clamp(8px, 5vw, 1rem);
  font-weight: 600;
  color: white;
  background-color: #444;
  box-shadow: -2px 3px 0 #222, -4px 6px 0 #000;
}

.button:active {
  box-shadow: inset -4px 4px 0 #222;
  font-size: 0.9rem;
}