/* Estilos gerais do site */
:root {
    --cor-de-fundo-padrao--:  #aaaaaa;

    --cor-de-fundo-padrao-dois--: #d1d1d1b4;

}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--cordefundopadrao--);
    color: #222;
    text-align: center;
  }

/* Cabeçalho principal */
header {
  background-color: #00cddb;
  color: white;
  padding: 20px;
  text-align: center;
}

/* Menu de navegação */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #00cddb;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: block;
}

nav ul li a:hover {
  background-color: #00cddb;
  border-radius: 5px;
}

/* Rodapé */
footer {
  background-color: #00cddb;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 3px solid #00cddb;
}

footer button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: white;
  color: #00cddb;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

footer button:hover {
  background-color: #f2f2f2;
}

/* Seções do site */
section {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  text-align: justify;
}

/* Imagens */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* divs para as sessões de leitura */
.centroLer-1 {
  border: 2px solid var(--cordefundopadrao--);
  margin-left: 150px ;
  margin-right: 150px ;
  background-color: #d1d1d1b4;
  border-radius: 30px;
  text-align: justify;
  line-height: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
  padding: 20px;
}

.centroLer-2 {
  border: 2px solid var(--cordefundopadrao--);
  margin-left: 150px;
  margin-right: 150px;
  background-color: var(--cordefundopadraodois--);
  border-radius: 30px;
  text-align: justify;
  line-height: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
  padding: 20px;
}

.tabela-container {
  border: 2px solid var(--cordefundopadrao--);
  margin-left: 100px;
  margin-right: 100px;
  background-color: var(--cordefundopadraodois--);
  border-radius: 30px;
  text-align: justify;
  line-height: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
}

/* Estilos para a "tabela_sucesso" tabela de sucesso da série */
.tabela-container {
  border: 2px solid var(--cor-de-fundo-padrao--);
  margin-left: 100px;
  margin-right: 100px;
  background-color: var(--cor-de-fundo-padrao-dois--);
  border-radius: 15px;
  text-align: justify;
  line-height: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
  
  padding: 20px;
  box-sizing: border-box;
}

.tabela_sucesso, .tabela_sucesso th, .tabela_sucesso td {
  border: 1px solid #000;
  border-collapse: collapse;
  padding: 12px 15px;
  text-align: center;
  width: 90%;
  margin: 0 auto;
}

.tabela_dados {
  width: 90%;
  border-collapse: collapse;
  margin: 0 auto 30px auto;
}

.tabela_dados th, .tabela_dados td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
}

.tabela_dados th:first-child, .tabela_dados td:first-child {
  width: 70%;
}

.tabela_dados th:last-child, .tabela_dados td:last-child {
  width: 30%;
}

/* Estilo para a "tabela_dados" tabela de links */
.tabela_dados {
  width: 100%; 
  border-collapse: collapse; 
  margin-bottom: 30px;
}

.tabela_dados th, .tabela_dados td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.tabela_dados th:first-child, .tabela_dados td:first-child {
  width: 70%; 
}

.tabela_dados th:last-child, .tabela_dados td:last-child {
  width: 30%; 
}

.tabela_dados thead th {
  background-color: #00cddb;
  color: white;
}

.tabela_dados tfoot th {
  background-color: #6e6e6e;
  color: white;
}

/* Estilos para os cards */
.container_cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.cards {
  background-color: #d1d1d1b4;
  border: 5px solid var(--cordefundopadraodois--); 
  border-radius: 15px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  width: 200px;
  padding: 15px;
  text-align: center;
}

.cards img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.cards h3 {
  margin: 10px 0 5px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
}

.cards p {
  font-size: 14px;
  color: #333;
}

h1, h2, h3 {
  text-align: center;
  margin: 40px 0;
  font-size: 24px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
}

/*  input da pagina de cards*/
.favorito {
    background-color: #d1d1d1b4;
    padding: 20px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }

  .favorito h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
  }

  .favorito input[type="text"] {
    padding: 10px;
    width: 80%;
    border: 2px solid #888;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .favorito button {
    padding: 10px 18px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .favorito button:hover {
    background-color: #666;
  }

  #mensagemFavorito {
    margin-top: 10px;
    font-weight: bold;
    color: green;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  #mensagemFavorito.show {
    opacity: 1;
  }

@media (max-width: 320px) {
  .centroLer-1, .centroLer-2, .tabela-container {
    margin-left: 10px;
    margin-right: 10px;
  }

  .container_cards {
    flex-direction: column;
    align-items: center;
    padding: 10px; 
    gap: 15px;
  }

  .cards {
    width: 95%;
    padding: 10px;
  }

  .cards img {
    height: 140px;
  }

  h1, h2, h3 {
    font-size: 20px;
    margin: 25px 0;
  }

  .favorito {
    max-width: 95%;
    padding: 15px;
    margin: 20px auto;
  }

  .favorito input[type="text"] {
    width: 100%;
    font-size: 14px;
  }

  .favorito button {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
  }

  .tabela-container {
    overflow-x: auto;
  }

  .tabela_dados {
    width: 100%;
    min-width: 300px; 
  }
}

@media (max-width: 600px) {
  .centroLer-1, .centroLer-2, .tabela-container {
    margin-left: 20px;
    margin-right: 20px;
  }

  .container_cards {
    flex-direction: column;
    align-items: center;
  }

  .cards {
    width: 80%;
  }

  .cards img {
    height: 160px;
  }

  .tabela-container {
    overflow-x: auto;
  }

  .tabela_dados {
    width: 600px;
  }
}