/* Estilos Gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Cabeçalho */
header {
    background-color: #005f73;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* Container de Busca e Filtros */
.search-container {
    text-align: center;
    padding: 20px;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas menores */
}

#searchInput, #difficultyFilter, #timeFilter {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#searchInput {
    width: 40%;
    min-width: 250px; /* Largura mínima para a busca */
}

#difficultyFilter, #timeFilter {
    cursor: pointer;
    background-color: #fff;
}


/* Container Principal dos Projetos */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Estilo dos Cards de Projeto */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    font-size: 1.4em;
    color: #005f73;
    margin-top: 0;
    min-height: 50px; /* Garante uma altura mínima para o título */
}

.card p {
    font-size: 0.9em;
    line-height: 1.4;
    flex-grow: 1;
}

.card .details {
    margin-bottom: 15px;
}

.card .details span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.card a {
    background-color: #0a9396;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: auto;
    transition: background-color 0.2s;
}

.card a:hover {
    background-color: #005f73;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #e9ecef;
    color: #6c757d;
}