body{
    height: 100vh;
}

main{
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.hero{
    width: 100%;

    position: relative;
    overflow: hidden;
}

.hero img{
    width: 100%;
}

.hero p{
    background-color: var(--text-backdrop);
    color: var(--highlight-color);
    
    padding-left: 5%;
    padding-right: 5%;
    padding-block: 4%;

    max-width: 100%;
    font-size: 1.2rem;

    position: absolute;
    bottom: 0;
}

.busca-menu{
    overflow: hidden;

}

.card{
    position: relative;
    overflow: hidden;
    margin: 5%;

    border-radius: 11px;

    height: 187px;
    overflow: hidden;


    box-shadow: -8px 8px 8px rgba(0, 0, 0, 0.4);
    box-shadow: -8px 8px 8px rgba(0, 0, 0, 0.4);
}

.card h2{
    position: absolute;
    bottom: 1rem;
    left: 2rem;

    color: var(--highlight-color);
    
    width: 50%;
}

/* RESPONSIVIDADE */

/* Versão Tablet */
@media (min-width:744px){
    main{
        margin-bottom: 30px;

    }

    .hero{
        padding-inline: 48px;
        position: relative;
        overflow: hidden;
    }
    .hero p{
        width: 65%;
        right: 0px;
        margin-inline: 48px;
        font-size: 24px;
    }

    .card{
        height: 440px;
    }
    .card img{
        width: 100%;
        height: 100%;
    }
}

/* Versão Desktop */

@media (min-width:1000px){

    main{
        display: flex;
        flex-direction: row;
        align-items: center;
        place-content: space-between;

    }

    .hero{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
    }
    .hero img{
        /* TODO: Resolver a perda de qualidade */
        width: 40vh;
        height: 40vh;
        border-radius: 100%;
    }

    .hero p{
        bottom: auto;
        top: auto;
        position: static;
        background-color: transparent;
        color: black;
        font-size: 32px;
        width: 100%;


    }
}