* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

main {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

section {
    display: flex;
    height: 100vh; 
    overflow: hidden; 
    width: 100%;
    overflow: hidden;
}

.projetos {
    display: flex;
    width: 100%;
    height: 100%;
}

.projetos img {
    width: 100%;
    object-fit: cover; 
    height: 80%;
}

.texto {
    width: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
}


.texto h1 {
    font-size: 1.5em;
    color:var(--color-brown);
    padding-left: 30px;
    margin-left: 20px;
}

.texto p {
    margin: 0;
    font-size: 1em;
    padding: 20px;
    margin-left: 20px;
    line-height: 2;
}

.texto a {
    color:var(--color-brown);
    text-decoration: underline;
    display: inline-block;
}



.section1{
    background-color: #110f25;
}

.section .projetos{
    flex-direction: row;
}

.section1 img {
    content: url('/imgs/astronautasnewsletter.png');
    background-color: #110f25;
    margin-top: 60px;
    width: 100%;   
}


.section2{
    background-color: rgb(83, 34, 89); 
}

.section2 .projetos{
    flex-direction: row-reverse;
}

.section2 img {
    content: url('/imgs/jogo-numero-secreto.png');
}

@media (max-width: 768px) {
    main {
        overflow-y: auto;
    }

    section {
        flex-direction: column;
        height: auto; 
    }

    .projetos {
        flex-direction: column-reverse; 
        width: 100%; 
        height: auto; 
    }

    .section2 .projetos {
        flex-direction: column-reverse; /* Coloca o texto acima da imagem */
    }

    .projetos img {
        width: 100%; 
        object-fit: cover; 
        height: 50%; 
    }

    .texto {
        width: 100%; 
        padding: 20px; 
        text-align: center; 
    }

    .texto h1 {
        font-size: 1.2em; 
        padding-left: 0; 
        margin-left: 0; 
    }

    .texto p {
        font-size: 0.9em; 
        padding: 10px; 
        line-height: 1.6; 
        margin-left: 0; 
    }

    .texto a {
        font-size: 1em; 
        text-decoration: underline; 
    }

    .section1 img {
        margin-top: 40px; 
        width: 100%; 
    }

    .section2 img {
        width: 100%; 
        height: 50%; 
    }

    .section1, .section2 {
        padding: 20px; 
    }

    .texto h1, .texto p {
        text-align: center;
    }
}
