/* Import da fonte */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&display=swap');

/* Estilo geral do body */
body {
    font-family: 'Chakra Petch', sans-serif;
    background-image: url("img/fundo.jpg"); /* Certifique-se que o caminho está correto */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Main container */
main {
    width: 100%;
    max-width: 900px; /* Largura máxima do conteúdo */
}

/* Título principal */
h1 {
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

/* Seções */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input de pesquisa */
input {
    width: 280px;
    padding: 0.8rem;
    border-radius: 20px;
    border: none;
    margin-bottom: 0.5rem;
}

/* Botão */
button {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background-color: #00ffd5;
    font-weight: bold;
}

/* Container de resultados */
.resultados-pesquisa {
    margin-top: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 50vh; /* Limita altura a metade da tela */
    overflow-y: auto; /* Scroll vertical automático */
    transition: opacity 0.3s ease;
}

/* Itens individuais de resultado */
.item-resultado {
    background-color: rgba(0, 0, 0, 0.6); /* Fundo semi-transparente */
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-resultado:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

/* Título dentro do item de resultado */
.item-resultado h2 {
    margin: 0 0 0.5rem 0;
    color: #F5F7F8;
}

/* Parágrafo dentro do item de resultado */
.item-resultado p {
    line-height: 1.4;
    color: #ffffff;
}

/* Links dentro do item de resultado */
.item-resultado a {
    color: #1abc9c;
    text-decoration: none;
}

.item-resultado a:hover {
    text-decoration: underline;
}

/* Rodapé */
footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    text-align: center;
}
