/* Autor: André Luiz Freitas
    Data: 2025-02-09
    Descrição: Arquivo css para o site do Gerk pagina hme.html
    Última atualização: 2025-02-09
    Versão: 1.0.1
    Arquivo: home.css
 */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('../imagem/representa.png') center/cover no-repeat;
    color: white;
}

header {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.weather-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.weather-info p,
.weather-info img {
    margin: 0 5px;
}

.search {
    display: flex;
}

.search input {
    padding: 10px;
    border-radius: 4px;
    border: none;
    margin-right: 5px;
}

.search button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    cursor: pointer;
    font-weight: bold;
}

main {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
}

main section {
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.news-item {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 4px;
}

h2 {
    color: rgb(139, 130, 0);
}

.news-content {
    display: none;
    margin-top: 10px;
}

.news-title {
    cursor: pointer;
    font-weight: bold;
    color: #1ec7ff;
}

.news-title:hover {
    text-decoration: underline;
}

/* Cor do link */
.news-content a {
    color: #32CD32;
    /* Código da cor verde claro */
    text-decoration: underline;
}

.news-content a:hover {
    color: #228B22;
    /* Cor verde mais escura ao passar o mouse */
}