* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Tahoma, sans-serif;
}

body {
  background: url(../images/floresta1.jpg) fixed;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.personagensFlex {
  max-width: 100vw;
  height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.displayPersonagens {
  background-image: url(../images/green.jpg);
  width: 650px;
  height: 501px;
  opacity: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  border: 3px solid rgba(238, 241, 4, 0.979);
  
}

article > h1,
.texto-principal {
  padding: 0 11.2% 3% 12.5%;
}

footer {
  height: 20px;
}

.rodape {
  background-color: rgba(0, 0, 0, 0.411);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: white
}

.personagens {
  width: 95%; 
}

.personagens ul {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  font-weight: bold;
  font-size: 12px;
  
}

.personagens li {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  line-height: 2.5rem;

}

.cavaleiroimg, .hobbitimg, .elfoimg {
  width: 7.8rem;
  height: 15.5rem;
 
}

.personagens img:hover{
  transform:scale(1,0.9);
  transition-duration: 700ms;
  box-shadow:0 10px 16px rgba(238, 241, 4, 0.979);
  
}

@media screen and (min-width: 700px) {

  .body {
    font-size: 15px; 
    width: 50%;
  }

  .main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: auto;
  text-align: center;
}

.footer {
  display: flex;
  text-align: center;
  justify-content: center;
}
}

@media (max-width: 600px) {
  .displayInicio,
  .displayPersonagem,
  .displayPersonagens {
    width: 90%;
    height: auto;
    padding: 1rem;
  }

  .texto-principal {
    font-size: 1rem;
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .personagens ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .personagens img {
    width: 6rem;
    height: auto;
  }

  .rodape {
    font-size: 12px;
  }

  button {
    width: 100%;
    font-size: 1rem;
  }
}