/* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilização geral do corpo */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 0;
    margin: 0;
    min-height: 100vh; /* Garante que o corpo ocupa toda a altura da tela */
}

/* Estilização do topo */
.topo {
    background-color: #008000; /* Verde */
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.topo h1 {
    margin-bottom: 20px;
    font-size: 1.8em;
    -webkit-touch-callout: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

.button {
    display: inline-block;
    background-color: #ffa500; /* Laranja */
    color: #ffffff;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #ff8c00; /* Laranja escuro */
}

/* Estilização do texto do topo */
.texto {
    margin-bottom: 20px;
}

/* Grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Três colunas iguais */
    gap: 15px; /* Espaço entre os itens do grid */
    padding: 15px; /* Adiciona padding ao redor do container do grid */
    overflow: auto; /* Permite rolagem se necessário */
    justify-items: center; /* Alinha os itens horizontalmente ao centro */
    align-items: center; /* Alinha os itens verticalmente ao centro */
}

/* Grid item */
.grid-item {
    background-color: white;
    border: 0.5px solid #ddd; /* Borda menor */
    border-radius: 8px;
    padding: 20px; /* Adicionando padding interno para melhorar o espaçamento */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 35%;
}

.grid-item:hover {
    transform: scale(1.02); /* Leve aumento ao passar o mouse */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    max-width: 100%; /* Imagem ocupa a largura do item do grid */
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid-item p {
    font-size: 0.9em;
    color: #555;
}

footer {
    background-color: #4CAF50; /* Cor verde */
    color: white;
    text-align: center;
    padding: 10px 0;
    -webkit-touch-callout: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}
footer a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;

}
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.animated-iframe {
    animation: slideIn 5s ease-out;
    position: fixed;

}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}
.search-box input[type="text"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.search-box button {
    padding: 10px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
}
.search-box button:hover {
    background-color: #0056b3;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.fade-out {
    animation: fadeOut 0.5s forwards;
}