@charset "UTF-8";

/* CSS global aplicado a todas as telas */
body {
    background-image: url('../img/imgBack.png');
    background-repeat: repeat;
    background-position: center center;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #353535;
    margin: 0;
    padding: 0;
}

header {
    background-image: url('../img/imgCavalo01.png');
    background-repeat: no-repeat;
    background-size: contain; /* Tamanho adequado para manter a proporção */
    background-color: #382412;
    color: #f3e6e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

h3 {
    text-align: right;
    margin: 0;
    padding: 0;
}

header h1 {
    font-size: 1.2rem;
    margin: 0 auto; /* Centraliza o h1 */
    padding-left: 50px; /* Adiciona espaço à esquerda para o logotipo */
    z-index: 1; /* Garante que o texto fique por cima do fundo */
}

#burguer {
    display: none; /* Escondido por padrão em telas grandes */
    font-size: 2rem;
    background: none;
    border: none;
    color: #f3e6e7;
    cursor: pointer;
}

/* Estilos para o menu */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 15px;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 1rem;
}

select, button {
    font-size: 1rem;
    padding: 2px;
    margin: 4px;
}

.disabled-select {
    background-color: #f0f0f0;
    color: #777;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

a#bot-next, a#bot-back {
    position: relative;
    float: right;
    margin-top: 0;
    cursor: pointer;
}

a#bot-back {
    float: left;
}

#frase {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 50px;
    margin: 50px 70px 50px 70px;
}

#formFiltroFaixaEtaria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: auto;
    padding-bottom: 5px;
}

#formFiltroFaixaEtaria label {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

/* Estilos para botões */
button {
    background-color: #4e4e4e;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: solid 1px black;
    border-radius: 10px;
    padding: 5px;
}

button:hover {
    background-color: yellowgreen;
    color: #fff;
}

/* Estilos para tabelas */
#titulosTable {
    background-color: #382412; /* Tom de vermelho escuro */
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px auto;
}

table, th, td {
    border: 1px solid #ddd;
}

#tabelaPontuacao th {
    padding: 5px;
}

#tabelaPontuacao td {
    padding: 5px;
}


th, td {
    text-align: center;
}

th {
    background-color: #4e4e4e;
    color: #fff;
}

#divTables {
    background-color: #ffffffa1;;
    padding: 5px;
    border-radius: 5px;
    max-width: 98vw;
    margin: auto;
}

tr:nth-child(odd) {
    background-color: #e1f7f1;
}

tr:nth-child(even) {
    background-color: #d4f6fa;
}

span {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Estilos para dispositivos móveis */
@media (max-width: 600px) {
    header {
        background-image: url('../img/imgCavalo01.png');
        background-repeat: no-repeat;
        background-size: contain; /* Tamanho adequado para manter a proporção */
        background-color: #382412;
        color: #f3e6e7;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    
    header h1 {
        font-size: 1.2rem;
        margin: 0 auto; /* Centraliza o h1 */
        padding-left: 70px; /* Adiciona espaço à esquerda para o logotipo */
        z-index: 1; /* Garante que o texto fique por cima do fundo */
    }

    #burguer {
        display: block; /* Exibe o ícone hamburger */
    }

    nav {
        display: none; /* Esconde o menu por padrão */
        flex-direction: column;
        background-color: #382412;
        position: absolute;
        top: 60px; /* Ajuste conforme necessário */
        left: 0;
        right: 0;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        padding: 10px;
        display: block;
        color: #f3e6e7;
    }

    nav.show {
        display: flex; /* Exibe o menu quando ativo */
    }

    #formFiltroFaixaEtaria {
        font-size: 1.1rem;
        gap: 5px;
    }

    main {
        padding: 5px;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    h3 {
        margin: 0;
        padding: 0;
    }

    #frase {
        font-family: 'Times New Roman', Times, serif;
        font-weight: bold;
        font-size: 1rem;
        margin: 10px 15px 10px 15px;
    }

    form fieldset {
        border: 1px solid #ddd;
        padding: 15px;
        background-color: #fff;
        margin-bottom: 20px;
        border-radius: 5px;
    }

    form label {
        display: block;
        margin: 10px 0 5px;
        color: #353535;
    }

    form input, form button {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
    }

    form input[type="checkbox"] {
        width: auto;
        margin-right: 5px;
    }
    
    th {
        padding: 10px;
    }

    #divTables {
        padding: 5px;
    }

    span {
        justify-content: space-between;
    }
}
/* Estilos para computadores */
@media (min-width: 601px) {
    nav ul {
        display: flex;
    }

    nav ul li {
        margin: 0 15px;
    }

    fieldset {
        margin: auto;
        border: 2px solid black;
        max-width: 700px;
    }
      
    legend {
        font-weight: bold;
        cursor: pointer;
        margin-top: 20px;
        padding: 10px;
    }    

    form  {
        margin-bottom: 20px;
    }
    
    label {
        font-size: 20px;
        font-weight: bold;
    }
    
    input, button {
        font-weight: bold;
        padding: 5px;
        margin-right: 5px;
        border: 2px solid #14664A; /* Tom de verde escuro */
        border-radius: 15px;
    }
}

@media print {
    /* Oculta todos os elementos desnecessários, como botões e inputs */
    button, input, select {
        display: none;
    }

    /* Ajuste a tabela para impressão */
    table {
        width: 100%;
        border-collapse: collapse;
    }

    table, th, td {
        border: 1px solid black;
    }

    th, td {
        padding: 4px;
        text-align: left;
    }

    /* Ajusta o tamanho da fonte para impressão */
    body {
        font-size: 12px;
    }
}
