@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --fundo: #E0F7FA;
    --botoes: #81D4FA;
    --principal: #2196F3;
    --cabecalho: #1565C0;
    --rodape: #0D47A1;

}
html, body {
  min-width: 250px;
}
body {
    background-color: var(--fundo);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
body > h1{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bolder;
    background-color: var(--botoes);
    text-align: center;
}
body > h1{
  font-size: 32px;
  margin:0px 20px;
  margin-top: 20px;
  
}

header{
    background-color: var(--fundo);
    font-family:'Courier New', Courier, monospace;
    text-align: center;
}
header > h1{
    color: #2196F3	;
    font-size: 5vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.185);

}
p#espc{
    background-color: var(--cabecalho);
    display: block;
    height: 2vw;

}
nav {
  display: flex;
  justify-content: center;  /* centraliza horizontalmente */
  align-items: center;      /* alinha verticalmente */
  background-color: var(--botoes);
  padding: 1% 0;
  gap: 20px;                /* espaçamento entre menu e form */
  font-weight: bold;
}

.menu {
  display: flex;
  list-style: none;
  gap: 1em;
}

.menu li a {
  text-decoration: none;
  background-color: var(--principal);
  color: black;
  font-weight: bold;
  padding: 8px 12px;         /* Espaço interno para parecer botão */
  border: 2px solid var(--botoes);  /* Borda azul clara */
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.menu li a:hover {
  background-color: var(--cabecalho);  /* Fundo azul no hover */
  color: white;                        /* Texto branco no hover */
  border-color: var(--botoes);      /* Borda azul escura no hover */
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}


.search-form input {
  width: 160px;
  border: none;
  border-radius: 5px 0 0 5px;
  padding: 5px 10px;
}

.search-form button {
  border: none;
  background-color: var(--principal);
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  padding: 5px 10px;
}
@media (max-width: 750px) {

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, auto); /* Duas colunas */
    gap: 20px;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
  }

  .menu li {
    list-style: none;
  }

  .search-form {
    width: 90%; /* Largura da barra de busca */
    justify-content: center;
  }

  .search-form input {
    width: 80%;
  }

  .search-form button {
    padding: 5px 15px;
  }

}
.suggestion-item:hover {
  background-color: #e0f7fa;
}
#suggestions {
  position: absolute;
  top: 100%;  /* logo abaixo do input */
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 5px 5px;
}

#favoritos-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-width: 1000px; /* define a largura máxima do grid */
    margin: 0 auto;    /* centraliza o grid horizontalmente */
    gap: 16px;
    padding: 10px;

}
.favorito-card {
    width: 180px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    flex: 1 1 180px;       /* Cresce, encolhe, base 180px */
    max-width: 180px;      /* Limita largura máxima */
    box-sizing: border-box;
}

.favorito-card:hover {
    transform: scale(1.05);
}

.favorito-card img {
    width: 100%;
    height: auto;
}

.favorito-info {
    padding: 10px;
    text-align: center;
}

.favorito-info .titulo {
    font-weight: bold;
    margin-bottom: 8px;
}

.favorito-info button {
    background-color: var(--principal);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}

.favorito-info button:hover {
    background-color: var(--cabecalho);
}
/* Máximo de 5 colunas */
@media (min-width: 900px) {
    #favoritos-lista {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Ajuste para telas médias (3 colunas) */
@media (max-width: 899px) and (min-width: 600px) {
    #favoritos-lista {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajuste para telas pequenas (1 ou 2 colunas) */
@media (max-width: 599px) {
    #favoritos-lista {
        grid-template-columns: repeat(2, 1fr);
    }
}
#btnLimparFavoritos {
  display: block;
  margin: 20px auto 10px auto; /* margem em cima e embaixo */
  padding: 10px 24px;
  background-color: #444;
  color: #eee;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#btnLimparFavoritos:hover {
  background-color: #e74c3c;
  color: white;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.6);
}

#paginacao-favoritos {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#paginacao-favoritos button {
    background-color: #444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

#paginacao-favoritos button.active {
    background-color: #2196F3;
    cursor: default;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #222;
  padding: 20px 30px;
  border-radius: 8px;
  color: white;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}

.modal-buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#confirmarSim {
  background-color: #e74c3c; /* vermelho */
  color: white;
}

#confirmarNao {
  background-color: #555;
  color: white;
}
#favoritos-lista, #paginacao-favoritos {
  margin-bottom: 50px; /* ou 60px, um pouco maior que o height do footer + padding */
}

footer {
    width: 100%;
    background-color: var(--rodape);
    font-weight: bolder;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 10px 0px;
    position: relative; /* ou simplesmente remova esta linha */
    bottom: auto;
    left: auto;
}

footer > p > a{
    text-decoration: none;
    color: var(--botoes);
    
}
footer > p > a:hover{
    color: black;
}
