/* ===== BASE ===== */
html {
    height: 100%;
}

body {
    background-color: rgb(124, 73, 10);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body {
    background-color: rgb(253, 250, 246);
}

/* ===== HEADER ===== */
header {
    background-color: #4913b6;
    display: flex;
    box-shadow: #9585a8 0px 2px 30px 1px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

header nav {
    margin-right: 3%;
}

header nav a {
    padding: 5px;
    text-decoration: none;
    font-size: 22px;
    color: rgb(248, 214, 149);
    font-family: 'Vecna', sans-serif;
    margin-left: 15px;
}

header nav a:hover,
header nav a:focus {
    text-decoration: underline;
    color: rgb(216, 149, 25);
}

header a{
    margin-left: 3%;
}

/* ===== MAIN ===== */
main {
    flex: 1;
}

.banner {
    display: flex;
    justify-content: center;
}

.intro {
    margin-top: 2%;
    margin-left: 8%;
    margin-right: 10%;
    max-width: 40%;
}

#coluna {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6%;
}

.imgIntro {
    margin-left: 3%;
}

/* ===== FOOTER ===== */
footer {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: small;
    background-color: #422d6d;
    width: 100%;
    border: none;
    margin-top: 50px;
    padding-top: 3%;
    padding-bottom: 1%;
    text-align: center;
    color: rgb(255, 255, 255);
}

/* ===== MEDIA QUERIES ===== */


/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .intro {
        max-width: 80%;       /* aumenta para caber melhor em tablet */
        margin: 2% auto;      /* centraliza horizontalmente */
        text-align: center;   /* centraliza o texto */
    }

    header nav a {
        font-size: 18px;
    }

    #coluna {
        display: flex;
        flex-direction: column; /* empilha elementos verticalmente */
        align-items: center;    /* centraliza horizontalmente */
        margin-top: 4%;
        gap: 15px;
    }

    #coluna > div img {
        width: 90%;             /* largura responsiva */
        max-width: 400px;       /* evita que fique muito grande */
        height: auto;
        display: block;
        margin: 0 auto;         /* centraliza a imagem */
    }
}


/* ===== MOBILE ===== */
/* ===== RESPONSIVO MOBILE ===== */
@media (max-width: 768px) {
    #coluna {
        display: flex;
        flex-direction: column; /* empilha elementos */
        align-items: center;    /* centraliza todos os filhos horizontalmente */
        margin-top: 4%;
        gap: 15px;
    }

    #coluna > div img {
        width: 90%;          /* ajusta largura da imagem */
        max-width: 400px;    /* opcional: limita tamanho máximo */
        height: auto;
        display: block;
        margin: 0 auto;      /* centraliza a imagem */
    }

    .intro {
        max-width: 95%;
        margin: 2% auto;
        text-align: center;
    }
}

