:root {
  --grass: #00923880;
  --fire: #e73b0c7c;
  --water: #4591c47c;
  --electric: #fbd72b7c;

  --pokecolor: black;
}

body {
  font-family: consolas;
}

header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 10px;
  z-index: 10;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgb(127, 200, 155);
  background: linear-gradient(
    90deg,
    rgba(127, 200, 155, 0.3) 0%,
    rgba(243, 159, 136, 0.3) 50%,
    rgba(164, 201, 226, 0.3) 100%
  );
}

.hero {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-direction: column;
}

.pokemon-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  width: 640px;
  gap: 0.5em;

  justify-content: center;
  align-items: center;
}

a {
  color: black;
  text-decoration: none;
}

a > img {
  display: inline-block;
}

.pokemon {
  border: 3px solid black;
  border-radius: 10%;
  padding: 1em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  position: relative;
  min-height: 200px;
  transition: height 0.5s;
  box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.3);
}

.pokemon img {
  flex: 1 1 100%;
  width: 100%;
}

.pokemon:hover img:nth-child(1) {
  opacity: 0;
}

.pokemon img:nth-child(2) {
  position: absolute;
  top: 0;
  opacity: 0;
}

.pokemon:hover img:nth-child(2) {
  opacity: 1;
}

#squirtle,
#wartortle,
#blastoise {
  background-color: var(--water);
}

#charmander,
#charmeleon,
#charizard {
  background-color: var(--fire);
}

#bulbasaur,
#ivysaur,
#venusaur {
  background-color: var(--grass);
}

#pikachu,
#raichu {
  background-color: var(--electric);
  box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.3),
    0 0 300px 100px var(--electric);
}
