@page {
    size: landscape;
}

html {}

body {
    background-color: grey;
    min-width: 11in;
    min-height: 8.5in;
    margin: 0;
    padding: 0;
}

.recipe {
    background-color: white;
    page-break-inside: avoid;
    width: 11in;
    height: 8.5in;
    margin: 1in auto;
    padding: 0.25in 0.25in 0.2in 0.25in;
}

.recipe_front {
    width: 49%;
    height: 52%;
    float: left;
    clear: none;
    position: relative;
    padding:0;
    border: solid 1px black;
    border-radius: 10px;
    overflow:auto;
}

.recipe_back {
    width: 49%;
    height: 100%;
    float: right;
    clear: none;
    padding: 0;
    padding-left: 0.25in;
}

/*************************/
.recipe_name {
    padding: 9mm 2mm 4mm 2mm;
    margin: 0;
    opacity: 50;
    float: left;
    width: 100%;
    clear: none;
    /*white-space: nowrap; allow to wrap! */
    font-size: 30px;
}

.recipe_name a {
    color: #333;
}


.recipe_image {
    float: left;
    clear: none;
    width: 50%;
    overflow: hidden;
}

.recipe_image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.recipe_description {
    float: right;
    clear: none;
    width: 50%;
    background-color: white;
}

.recipe_description p {
    padding: 2mm;
}

.recipe_qr {
    background-color: white;
    position: absolute;
    padding: 2mm 2mm 4mm 2mm;
    bottom: 0;
    left: 0;
}

.recipe_footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
    padding: 2mm 2mm 5mm 2mm;
}

.recipe_details {
    font-size: .85em;
}


table.recipe_grid {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-collapse: collapse;
}

table.recipe_grid tbody {
    display: flex;
    width: 100%;
    position: relative;
    align-items: stretch;
    padding: 0;
}

table.recipe_grid tr {
    background: white;
    flex-basis: 33.33333333%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 0;
    position: relative;
    margin: 0;
    margin-left: 0.025in;
    margin-right: 0.025in;
}

table.recipe_grid th,
table.recipe_grid td {
    flex-basis: 100%;
    padding: 0.025in;
    margin: 0;
}

table.recipe_grid th {
    background-color: #e3f0db;
    border-radius: 7px 7px 0 0;
    border: solid 1px black;
    border-bottom: 0;
}


table.recipe_grid td {
    border: solid 1px black;
    border-top: 0;
    border-bottom: solid 1px #eee;
}

table.recipe_grid td:last-child,
table.recipe_grid td:has(+ th) {
    border-radius: 0 0 7px 7px;
    border-bottom: solid 1px black;
    margin-bottom: 10px;
}

table.recipe_grid th:last-child,
table.recipe_grid th:has(+ th) {
    border-radius: 7px 7px 7px 7px;
    border-bottom: solid 1px black;
    margin-bottom: 10px;
}







table.recipe_grid div.tile_name {
    font-size: 15px;
    text-align: center;
    width: 100%;
    font-weight: bold;
}

.recipe_grid div.tile_detail {
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.step_title {
    position: relative;
    display: flex;
    align-items: center;
    color: black;
    font-weight: 400;
}

.step_title_number {
    display: inline;
    float: left;
    margin: 2px;
    padding: 2px;
    font-size: 25px;
    line-height: 25px;
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.17);
    color: white;
    border-radius: 4px;
}

.step_title h2 {
    font-size: 1.6rem;
    font-weight: inherit;
    letter-spacing: 1px;
    margin: 0 4px;
}

.step_title h2 small {
    display: block;
    font-size: 1rem;
    margin: 0;
}

step {
    background-color: #e3f0db;
}

step.step_BAKE {
    background-color: rgba(236, 77, 43, 0.2);
}

step.step_MIX {
    background-color: rgba(0, 108, 227, 0.2);
}

step.step_MELT {
    background-color: rgba(239, 148, 0, 0.2);
}

step.step_SERVE {
    background-color: #FFEC8B;
}


@media print {
    .recipe {
        margin: 0 auto;
    }
    
    .recipe_front{
        -webkit-transform: rotate(-180deg);
        transform: rotate(-180deg);
        padding: 0;
    }
}