body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #FFF;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lateral {
    background-color: #FFF;
    margin: 5px;
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.container {
    width: 95%;
    max-width: 700px;
    margin: 40px auto;
    padding: 50px;
    background-color: #FAF9F6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 40px;
}

h1 {
    text-align: center;
    font-family: 'Montserrat';
    color: #000000;
    font-size: 32px;
    margin-top: 25px;
    margin: 40px;
}

h2 {
    color: #000;
    font-family: 'Montserrat', Arial;
    font-size: 3    2px;
}

label {
    color: #000;
    font-size: 22px;
}

label {
    font-weight: bold;
    font-family: 'Montserrat', Arial;
    margin-top: 10px;
    padding: auto;
}

select {
    width: 100%;
    padding: 12px;
    font-family: 'Montserrat';
    margin: 10px 0;
    font-size: 18px;
    background-color: #046844;
    color: #FFF;
    border: none;
    outline: none;
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
}

.botoes {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.botoes button {
    width: 200px;
    padding: 20px;
    font-size: 20px;
    font-family: 'Montserrat';
    margin: 20px;
    background-color: #3f3c37;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.botoes button:hover {
    background-color: #f0f0f0;
    color: #046844;
}

#detalhes {
    margin-top: 15px;
    color: #046844;
}

#detalhes-list {
    list-style-type: none;
    padding: 0;
    color: #ffffff;
}

#detalhes-list li {
    padding: 8px;
    background-color: #046844;
    margin-bottom: 5px;
    border-radius: 5px;
}

#detalhes-list li:hover {
    background-color: #046844;
}

img {
    width: 270px;
    display: block;
    margin: auto;
}

#fluxograma-imagem {
    width: 100%;
    padding: auto;
}

.modal {
    display: none; /* Inicialmente escondido */
    position: fixed; /* Mantém o modal fixo na tela */
    top: 50%; /* Centraliza verticalmente */
    left: 50%; /* Centraliza horizontalmente */
    transform: translate(-50%, -50%); /* Ajuste fino para centralização */
    background-color: #046844; /* Cor de fundo */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Garante que fique acima de outros elementos */
    width: 80%; /* Ajusta largura do modal */
    max-width: 1000px; /* Define um limite máximo para telas grandes */
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semitransparente */
    z-index: 999; /* Atrás do modal */
}


.contador-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #FAF9F6;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contador-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

.contador-number {
    font-size: 50px;
    font-weight: 900;
    color: #046844;
    margin: 10px 0;
}

.contador-text {
    font-size: 16px;
    color: #000;
}

.search-container {
    position: static; /* Mantém a posição original sem fixar */
    display: flex; /* Usa flexbox para alinhar os elementos */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Alinha os itens verticalmente */
    width: 100%; /* Ocupa toda a largura do contêiner */
    max-width: 600px; /* Define uma largura máxima */
    margin: 20px auto; /* Centraliza a barra horizontalmente */
    background-color: #FFF;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#search-bar {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
    border-radius: 20px;
    width: 150px;
    font-family: 'Montserrat', sans-serif;
}

.search-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.search-icon {
    width: 20px;
    height: 20px;
}

/* Layout responsivo com Flexbox */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Ajustes para telas menores */
@media (max-width: 1024px) {
    .container {
        width: 80%;
        padding: 30px;
    }

    h1 {
        font-size: 28px;
    }

    select, button {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .lateral {
        flex-direction: column;
        align-items: center;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .search-container {
        width: 95%;
        max-width: 300px;
    }

    .modal {
        width: 90%; /* Aumenta a largura para melhor visualização */
        padding: 20px; /* Reduz o padding para melhor ajuste */
        font-size: 16px; /* Ajusta o tamanho da fonte */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .search-container {
        width: 100%;
        max-width: none;
        left: 0;
        transform: none;
    }

    #search-bar {
        width: 100%;
    }

    .contador-container {
        padding: 10px;
    }

    .contador-number {
        font-size: 36px;
    }

    .modal {
        width: 95%; /* Maximiza o uso da tela */
        padding: 15px; /* Ajuste para telas pequenas */
        font-size: 14px; /* Fonte menor para melhor legibilidade */
    }
}

#search-bar {
    width: 80%;
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Fontes responsivas */
body {
    font-size: clamp(1rem, 2vw, 1.2rem);
}
