body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* degradê em tons escuros */
  color: white; /* cor do texto */
}

header {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em 0;
}

#formPesquisa {
  margin: 2em 0;
  text-align: center;
}

#campoPesquisa {
  padding: 0.5em;
  width: 300px;
}

#resultados, #filme-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.filme {
  margin: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: 300px;
  text-align: center;
  background-image: linear-gradient(to bottom, #000000, #434343); /* Gradiente de preto para cinza */
  border-radius: 5px; /* bordas arredondadas */
}


.filme:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.filme img {
  width: 100%;
  max-height: 400px;
  border-radius: 5px 5px 0 0; /* bordas arredondadas na parte superior da imagem */
}

.filme-info {
  padding: 16px;
}

.filme-info p {
  display: -webkit-box;
  -webkit-line-clamp: 7; /* número de linhas que você deseja exibir */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.placeholder-capa {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* ou qualquer altura que suas imagens normalmente possuem */
    background-color: #cccccc; /* ou qualquer cor de fundo que você preferir */
    color: #000000; /* cor do texto */
    font-size: 20px; /* tamanho do texto */
}

/* Estilo do Modal - fundo escuro */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Conteúdo do Modal */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* Botão de fechar o Modal */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
