body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    margin: 20px;
    padding: 0;
    color: #333;
}

.titulo-pesquisa {
    text-align: center;
    color: #004080; /* azul */
    font-size: 20px; /* menor que normal */
    margin-bottom: 10px;
}

.label-centralizado {
    display: block;
    max-width: 400px;
    margin: 0 auto 5px auto;
    font-weight: bold;
    color: #004080;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

#input-texto {
    display: block;
    max-width: 400px; /* maior largura */
    width: 90%;
    margin: 0 auto 20px auto;
    padding: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    box-sizing: border-box;
}

#aviso-orientacao {
    display: none;
    text-align: center;
    padding: 10px;
    margin: 10px auto 20px auto;
    max-width: 600px;
    background-color: transparent;
    color: #856404;
    border: none;
}

.table-container {
    max-width: 1000px;
    margin: 0 auto 30px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table#tabela-palavras-texto {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
}

#tabela-palavras-texto th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
}

#tabela-palavras-texto td {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 15px;
    text-align: left;
    color: #333;
}

/* Coluna Nº */
#tabela-palavras-texto th:nth-child(1),
#tabela-palavras-texto td:nth-child(1) {
    text-align: center;
    white-space: nowrap;
    width: 40px;
}

#tabela-palavras-texto tr:nth-child(even) {
    background-color: #f9f9f9;
}

#tabela-palavras-texto tr:hover {
    background-color: #d1e7dd;
}

/* Coluna Tamanho */
#tabela-palavras-texto th:nth-child(4),
#tabela-palavras-texto td:nth-child(4) {
    text-align: center;
    white-space: nowrap;
    width: 1px;
}

/* Colunas Data e Hora */
#tabela-palavras-texto th:nth-child(5),
#tabela-palavras-texto td:nth-child(5),
#tabela-palavras-texto th:nth-child(6),
#tabela-palavras-texto td:nth-child(6) {
    white-space: nowrap;
    width: 1px;
}

/* Ajustes responsivos */
@media screen and (max-width: 600px) and (orientation: portrait) {
    #aviso-orientacao {
        display: block;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    #tabela-palavras-texto th:nth-child(3),
    #tabela-palavras-texto td:nth-child(3),
    #tabela-palavras-texto th:nth-child(5),
    #tabela-palavras-texto td:nth-child(5),
    #tabela-palavras-texto th:nth-child(6),
    #tabela-palavras-texto td:nth-child(6) {
        display: none !important;
    }
}

@media screen and (max-width: 600px) and (orientation: landscape) {
    #aviso-orientacao {
        display: none;
    }
    .table-container {
        overflow-x: visible;
        max-width: 100%;
        margin: 0 auto 30px;
    }

    #tabela-palavras-texto th,
    #tabela-palavras-texto td {
        display: table-cell !important;
    }

    #tabela-palavras-texto td,
    #tabela-palavras-texto th {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Ajuste para remover borda inferior da tabela */
#tabela-palavras-texto {
    border-bottom: none !important;
}

/* Esconde o footer, conforme original */
footer {
    display: none !important;
}


