html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  width: auto;
  display: flex;
  flex-direction: column;
}

header {
  min-height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
}

.cabecalho {
  height: 100%;
  width: 100%;
  font-family: arial;
  display: flex;
  background: #fafafa;
  color: whitesmoke;
  align-items: center;
  justify-content: space-between;
}

.urlhome {
  text-decoration: none;
  height: 50px;
  width: auto;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 50px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 50px;
  width: 100%;
}

.item-menu {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 50px;
  width: 100%;
  font-weight: 100;
  color: #333333;
}

.item-menu:hover {
  background: whitesmoke;
}
.item-menu:active {
  background: lightgray;
}
.urlpagina {
  width: 100px;
  color: black;
  text-decoration: none;
}

#nightmodebtn {
  height: 20px;
  width: 20px;
  background: url(./night.svg);
  cursor: pointer;
}

#divnightmode {
  min-height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whitesection {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search {
  border-radius: 5px;
  border-width: 0.3px;
  border-color: whitesmoke;
  height: 60%;
  width: 97%;
  padding: 5px;
  padding-left: 10px;
  text-align: center;
}

main {
  height: auto;
  background: #fafafa;
  display: flex;
  flex-flow: row wrap;
  padding-bottom: 30px;
  justify-content: center;
}

#fecharpesquisa {
  display: none;
  position: absolute;
  float: inline-start;
  left: 85%;
  background: lightgray;
  color: whitesmoke;
  border: none;
  height: 50px;
  width: 50px;
  font-size: 25pt;
  font-family: Arial;
}

#fecharpesquisa:hover {
  background: darkred;
}

#filmepesquisado {
  display: flex;
  justify-content: center;
  width: 80%;
}

.movieinfo {
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  font-family: SEGOE UI;
  color: rgb(20, 32, 32);
}

.titulopesquisado {
  font-size: 20pt;
  font-weight: bold;
}

.movieinfo span {
  margin-top: 30px;
  margin-left: 80px;
}

#filmepesquisado img {
  border-radius: 10px;
  max-width: 100%;
}

.filmes {
  width: 80%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  height: auto;
  justify-content: space-around;
  align-content: space-around;
}
.posters {
  border-radius: 10px;
  height: 300px;
  margin-right: 30px;
  margin-left: 30px;
  margin-top: 30px;
  transition: 1s;
}

.posters:hover {
  transform: scale(1.15);
  box-shadow: 0px 5px 30px rgb(31, 53, 53);
}

footer {
  background: #cfcfcf;
  min-height: 150px;
  display: flex;
  justify-content: center;
}

.rodape {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icone {
  height: 50px;
}

.icones {
  display: flex;
  margin-top: 30px;
  width: 250px;
  justify-content: space-around;
}
#copywright {
  font-family: SEGOE UI;
  margin-top: 10px;
}

@media (max-width: 1071px) {
  .posters {
    height: 400px;
  }
}

@media (max-width: 680px) {
  .posters {
    height: 500px;
  }
}
@media (max-width: 580px) {
  header {
    flex-direction: column;
  }
  .cabecalho {
    height: 150px;
    flex-direction: column;
  }
  .urlhome {
    margin: 0;
  }
  .posters {
    height: 500px;
  }
  .menu {
    height: 50px;
    justify-content: space-around;
  }
  .item-menu {
    width: 100px;
  }
  .whitesection {
    position: relative;
    top: 100px;
  }
  main {
    margin-top: 100px;
  }
  .menu {
    width: 100%;
  }
}

/* Media queries da API */

@media (max-width: 1036px) {
  #fecharpesquisa {
    left: 94%;
  }
}

@media (max-width: 842px) {
  #fecharpesquisa {
    left: 93%;
  }
}

@media (max-width: 818px) {
  #fecharpesquisa {
    left: 95%;
    height: 30px;
    width: 30px;
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  #filmepesquisado {
    width: 100%;
  }
}

@media (max-width: 775px) {
  .movieinfo span {
    margin-left: 30px;
  }
}

@media (max-width: 663px) {
  #filmepesquisado {
    flex-direction: column;
  }
  .movieinfo {
    width: 80%;
    align-self: center;
  }
  #filmepesquisado img {
    width: 60%;
    align-self: center;
  }
}
