/* RESET */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* APP */
@page {
    size: landscape;
}

html {}

body {
    background-color: grey;
    min-width: 11in;
    min-height: 8.5in;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

}

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

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

cb-back {
    display:block;
    width: 49%;
    height: 100%;
    float: right;
    clear: none;
    padding: 0;
}

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

cb-name a {
    margin-left: 4mm;
    text-decoration: none;
    color: #333;
}


cb-image {
    display: block;
    float: left;
    clear: none;
    width: 50%;
    overflow: hidden;
}

cb-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

cb-description {
    float: right;
    clear: none;
    width: 50%;
    background-color: white;
}

cb-description table {
    text-align: center;
    width: 100%;
    font-size: 0.85em;
}

cb-description table th,
cb-description table td {
    padding: 2mm;
}

cb-description table th{
    font-weight: bold;
}

cb-description table thead {
    border-bottom: solid 2px #aaa;
}

cb-description table td {
    background-color: #ddd;
}


cb-description p {
    padding: 2mm;
}





cb-step {
    background-color: #e3f0db;
}

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

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

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

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


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


/* COOKBLOX */
cb-steps {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    overflow: hidden;
    row-gap: 4mm;
    column-gap: 0;
  }
  
  cb-step {
    display: block;
    border: solid 1px black;
    border-radius: 5px;
    padding: 1mm;
    width: 144px;
  }
  
  cb-instruction {
   display: block; 
  }
  
  cb-step-number {
    display: inline;
    float: left;
  
    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;
  }
  
  cb-step-title {
    display: block;
    overflow: hidden;
    padding: 0 2px;
  
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  cb-step-detail {
    display: block;
    overflow: hidden;
    padding: 0 2px;
    font-size: 10px;
  }
  
  cb-ingredient {
    display: block;
    clear: both;
    text-align: center;
    background-color: white;
    padding: 1mm;
    overflow: auto;
    border-radius: 4px;
    margin-top: 1mm;
  }
  
  
  cb-ingredient-name {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
  }
  
  cb-ingredient-amount {
    display: block;
  }
  
  cb-comment {
    display: block;
    clear: both;
    text-align: left;
    padding: 1mm;
    overflow: auto;
    border-radius: 4px;
    margin-top: 1mm;
  }
  
  cb-comment-from {
    display: block;
    overflow: auto;
    padding: 0 2px;
    font-size: 10px;
    text-align: right;
  }
  
  cb-comment-from:before {
    content: 'says ';
  }

  brk {
    flex-basis: 100%;
  }