/* Estilos gerais (PC por padrão) */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto; /* Permite a rolagem */
}

.background {
    margin: 0;
    padding: 0;
    background-image: url('../imagensindex/greenbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Garante que o fundo cubra a tela toda */
    height: auto;
}

.cabecalho {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    padding-top: 1rem;
    height: 20vh;
}

.logo {
    height: 15vh;
    width: 20rem;
    margin-top: 1rem;
}

.museomoderno {
    font-family: "MuseoModerno", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 3rem;
    margin-top: 5rem;
}

.titulo {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
}

.questrial-regular {
    font-family: "Questrial", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
}

.junction-input {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    width: 22rem;
    height: 3rem;
    border: 1px solid black;
    border-radius: 50px;
    padding: 4px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.5); /* Fundo semi-transparente para leitura */
}

.icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-image: url('../imagensindex/lupa.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 0.8rem;
}

.digite {
    flex: 1;
    padding: 0.8rem;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: transparent;
    border-right: 1px solid black;
}

.pesquisar {
    background-color: transparent;
    border: none;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.pesquisar:focus,
.pesquisar:hover,
.pesquisar:active {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.centralization {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    padding-bottom: 5rem;
}

.boxgreen {
    margin: 0;
    padding: 20px;
    background-image: url('../imagensindex/boxgreen.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    width: 80%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-y: auto;
}

.sistemas {
    /* Estilos para o container dos sistemas, se necessário */
}

.voltar,
.avancar {
    background-color: transparent;
    border: none;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.voltar:focus,
.voltar:hover,
.voltar:active,
.avancar:focus,
.avancar:hover,
.avancar:active {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.setaVoltar,
.setaAvancar {
    height: 5rem;
    width: 5rem;
}


/* ====================================================== */
/* Estilos específicos para dispositivos móveis (telefones) */
/* ====================================================== */
@media (max-width: 767px) {
    .background {
        height: auto;
    }

    .cabecalho {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    .logo {
        width: 12rem;
        height: auto;
        margin-top: 1rem;
    }

    .museomoderno {
        font-size: 2.2rem;
        margin-top: 1rem;
        text-align: center;
    }

    .titulo {
        align-items: center;
    }

    .junction-input {
        width: 90%;
        margin-top: 1.5rem;
    }
    
    .centralization {
        margin-top: 2rem;
    }

    .boxgreen {
        width: 90%; /* ALTERADO: Largura correta */
        height: auto; /* ALTERADO: Altura automática */
        min-height: 50vh;
        flex-direction: column; /* ALTERADO: Itens um abaixo do outro */
        justify-content: space-around; /* ALTERADO: Espaçamento vertical */
        padding: 20px 10px;
        gap: 20px; /* Adiciona um espaço entre os itens */
    }
    
    .sistemas {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .setaVoltar,
    .setaAvancar {
        height: 3rem;
        width: 3rem;
    }
}


/* ======================================== */
/* Estilos específicos para tablets */
/* ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .background {
        height: auto;
    }

    .cabecalho {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        margin-top: 3rem;
        padding-bottom: 3rem;
    }

    .logo {
        width: 14rem;
        height: auto;
    }

    .museomoderno {
        font-size: 2.5rem;
        margin-top: 2rem;
        text-align: center;
    }

    .titulo {
        align-items: center;
    }

    .junction-input {
        width: 60%;
        margin-top: 2rem;
    }
    
    .centralization {
        margin-top: 3rem;
    }
    
    .boxgreen {
        width: 90%; /* ALTERADO: Largura correta */
        height: auto; /* ALTERADO: Altura automática */
        min-height: 60vh;
        flex-direction: column; /* ALTERADO: Itens um abaixo do outro */
        justify-content: space-around; /* ALTERADO: Espaçamento vertical */
        padding: 25px;
        gap: 25px; /* Adiciona um espaço entre os itens */
    }
}