/* by Matheus Souza */

article {
    display: flex;
    align-items: center;
    max-width: 100vw;
    min-height: 80vh;
    background-color: #157F50;
    padding: 16px;
}

/* Estilo Cuadrados */
article div.recetas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 80vh;
    max-height: 80vh;
    width: 15vw;
}

article div.recetas .cuadrado {
    width: 10vw;
    height: 10vh;
    object-fit: cover;
    border: 2px solid #CEE4C8;
    margin: 8px;
    border-radius: 12px;
    transition: all ease-in-out 0.5s;
}

article div.recetas .cuadrado:hover {
    height: 20vh;
    margin: 16px;
}
/* Fin Estilo Cuadrados */

article iframe {
    width: 80vw;
    height: 75vh;
}

/*Responsive for Tablets*/
@media (min-width: 801px) and (max-width: 1279px) {
    article { flex-direction: column; }

    article div.recetas {
        flex-direction: row;
        width: 90vw;
        min-height: 100px;
    }

    article div.recetas .cuadrado {
        width: 12vw;
        height: 20vh;  
    }

    article div.recetas .cuadrado:hover {
        width: 20vw;
        margin: 0px 24px;
    }

    article iframe {
        width: 95vw;
        height: 80vh;
    }
}

/* Adaptabilidad para Mobile */

article div#mobile { 
    visibility: hidden;
    min-width: 0px;
    min-height: 0px;
    max-width: 0px;
    max-height: 0px;
}

/*Responsive for Mobile*/
@media (max-width: 800px) {
    article div#mobile { 
        visibility: visible;
        max-width: 95vw;
        max-height: 200vh;
    }

    article div#desktop { display: none; }
    article iframe { display: none; }

    article { 
        flex-direction: column;
        justify-content: center;     
        min-height: 100vh;
    }

    article div.recetas {
        flex-flow: row wrap;
        width: 95vw;
    }

    article div.recetas .cuadrado {
        width: 65vw;
        height: 25vh;  
    }
    
    article div.recetas .cuadrado:hover {
        width: 70vw;
        height: 40vh;
        margin: 12px 0px;
    }
}
