@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: #122c44;
    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;
}

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;
}

section {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

  p {
    line-height: 1.7;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    background-color: var(--fundo);
    color: #000;
}

.formulario button {
    background-color: var(--principal);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.formulario button:hover {
    background-color: var(--cabecalho);
}
#mensagem-sucesso {
  display: none; /* fica oculto inicialmente */
  position: fixed; /* fixa na tela */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #d4edda; /* verde claro, só pra exemplo */
  color: #155724; /* verde escuro */
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000; /* fica acima de tudo */
  font-weight: bold;
  text-align: center;
}

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;
}
