/* -- Updated 07/03/13, CB Digital Production-- */

/* ---- GENERAL ---- */
html, body { margin: 5px; padding:0; border-width: 0; 
	-webkit-hyphens:none;
	-epub-hyphens:none;
}

/* ---- EMBEDDED FONTS: normal is for regular text, italic & bold change the <strong> and <em> tags // do not use span classes for bold and italics ---- */
@font-face {
	font-family: "AvantGardeBook";
	src: url("../fonts/AvantGardeBook.otf");
}
@font-face {
	font-family: "AvantGardeBook";
	src: url("../fonts/AvantGarde-BookOblique.otf");
        font-style: italic;
}

@font-face {
	font-family: "ITCAvantGardeGothicExtraLight";
	src: url("../fonts/ITCAvantGardeGothicExtraLight.otf");
}
@font-face {
	font-family: "Rockwell";
	src: url("../fonts/Rockwell.otf");
}
@font-face {
	font-family: "Rockwell";
	src: url("../fonts/Rockwell-Bold.otf");
        font-weight: bold;
}
@font-face {
	font-family: "Rockwell";
	src: url("../fonts/Rockwell-BoldItalic.otf");
        font-weight: bold;
        font-style: italic;
}
@font-face {
	font-family: "Rockwell";
	src: url("../fonts/Rockwell-Italic.otf");
        font-style: italic;
}
@font-face {
	font-family: "RockwellLight";
	src: url("../fonts/RockwellLight.otf");
}
@font-face {
	font-family: "RockwellLight";
	src: url("../fonts/RockwellLightItalic.otf");
        font-style: italic;
}

/* ---- ALL MAIN P STYLES ARE HERE, NO NEED TO DUPLICATE ATTRIBUTES ---- */
p {
	margin: 0;
	text-align: left;
	font-size: 0.8em;
	text-indent: 0em;
	line-height: 1.4em;
	font-family: "Rockwell", serif;
	/* -- ePub 3 -- */	
	widows: 3;
	orphans: 3;
	word-wrap: break-word;
	overflow-wrap: normal;
	text-wrap: normal;
}

/* ---- LINKS ---- */	
a {
	color: RGB(0,157,224); 	/* or RGB(0,0,0) */
	text-decoration: none;
} 

/* ---- TITLE PAGE should be image only ---- */
img.title { 
        margin:15% 0 0 0;
	text-align: center;
	vertical-align: central;
	max-width: 100%;
}

/* ---- FRONT MATTER ---- */
.dedication {
	margin-top: 10%;
	text-align: center;
	font-size: 1.2em;
	line-height: 1.5em;
}
.acknowledgements {
}

/* ---- COPYRIGHT ---- */
div#copyright {
	font-family: "AvantGardeBook";
	font-size: 0.8em;
	line-height: 1.1em;
	margin-top: 2em;
}

div#copyright p {
	font-family: "AvantGardeBook";
	margin-top: 1.2em;
	font-size: 0.8em;
	line-height: 1.1em;
}
/* ---- TOC ---- */
.toc {
	font-family: "ITCAvantGardeGothicExtraLight";
	margin-top: 1.5em;
	font-size: 1.2em;
}
.toc1 {
	font-family: "RockwellLight";
	margin-top: .2em;
}

/* ---- HEADER STYLES - Do not use margins greater than 2em ---- 
					  - Headers that follow text should have a top margin ----*/
h1 {
	font-family: "ITCAvantGardeGothicExtraLight";
	margin: 5% 0 0 0;
	text-align: left;
}
.h1_text {
	font-family: "ITCAvantGardeGothicExtraLight";
	margin: 5% 0 1em 0;
        text-align: center;
}

h2 {
	font-family: "ITCAvantGardeGothicExtraLight";
	margin: 5% 0 0 0;
	text-align: left;
}
.h2_text {
	margin-bottom: 2em;
}

h3 {
	font-family: "RockwellLight";
	margin: 2% 0 0 1.8em;
	font-style: italic;
	text-align: left;
}
.h3_text {
	margin-bottom: 2em;
}

h4 {
	text-align: left;
}

h5 {
}

h6 {
}

/* ---- Use the following with h tags, for subheads that are different from other subheads ---- */

.section_title {
}

.section_head {
}

h2.chapter_title {
	font-family: "RockwellLight";
	margin: 5% 0 2% 0;
	text-align: center;
}

.chapter_head {
}


/* ---- TEXT STYLES  - Do not use margins greater than 2em ---- */
/* ---- IMPORTANT!   - Do not duplicate styles; only change code that is different from the default p tag
                     - .running_first) should be used on paragraphs with NO indent, followed by (running_text_indent)
                     - Use (running_first) only when the header bottom margin is too small; otherwise use (running_text) */

p.running_first {
	font-family: "RockwellLight";
	margin: 0 0 0 0;
}
p.indexmain {
	font-family: "AvantGardeBook";
	margin: 0 0 0 0;
}
p.indexmain-indent {
	font-family: "AvantGardeBook";
	margin: 0 0 0 1.5em;
}

/* Use (running_top) when there's no header, no indent */

p.running_top {
	font-family: "RockwellLight";
	margin: 1.5em 0 0 0;
}

/* (running_text) is the default p tag, noindent, with bottom margin */

p.running_text {
	font-family: "RockwellLight";
	margin: 0 0 1em 0;
}

/* The next set are indented text; never add bottom margin when there is indented text 
Use (running_first_indent) with header above it */

p.running_first_indent {
	text-indent: 1.5em;
	margin: 1em 0 0 0;
}

/* Use (running_top_indent) for larger top margin, no header above it */

p.running_top_indent {
	text-indent: 1.5em;
	margin: 2em 0 0 0;
}
p.running_firstt {		/*when there's no header*/
	font-family: "Rockwell";
	margin: 1.5em 0 0 0;
}
p.running_text_indent {
	font-family: "RockwellLight";
	text-indent: 1.5em;
}

p.right {
	text-align: right;
}

p.center {
	font-family: "AvantGardeBook";
	text-align: center;
}

/* Use (chapter_head_note) for text that is an introduction, with header above it, but is different from running text */

p.chapter_head_note {		
}


/* -- RECIPE BOOKS -- */
p.recipe_hdnote {
	font-family: "AvantGardeBook";
	text-indent: 0;
	text-align: left;
	margin: 1em 0 1em 0;
}
.yield {
	font-family: "ITCAvantGardeGothicExtraLight";
	size: .75em;
	text-align: center;
}
p.method_txt {
	font-family: "RockwellLight";
	text-indent: 0;
	margin-top: 1.5em; 
}
p.method_txt1 {
	font-family: "RockwellLight";
	text-indent: 1.5em;
}
.tip
{
	font-family: "RockwellLight";
        margin: 1em 0 0 0;
}


/* ---- EXTRACT, PULL QUOTES, DISPLAY text ---- */
.drop_cap {
	font-size: 3em;
	font-weight: bold;
	height: auto;
}
.pull_quote {
	text-align:left;
	margin: 1em;
	font-size:1.5em;
}
.display_type {}


/* ---- CAPTIONS ---- */
.caption {
	font-family: "ITCAvantGardeGothicExtraLight";
	font-size: 0.6em;
	text-align: center;
}
.caption_1_hd {
	font-family: "ITCAvantGardeGothicExtraLight";
	font-size:1em;
	margin-top: 1.3em;
}

.caption_1_txt {
}

.caption_2_hd {
}

.caption_2_txt {
}

/* ---- SIDE BARS ---- */
/* ---- add font family and font size to div#sidebar ---- */

div#sidebar {
	margin: 0;
	page-break-inside: avoid;
	page-break-after: always;
}
	
.sidebar_1_hd {
	page-break-inside: avoid;
}

.sidebar_1_hdnote {
	page-break-inside: avoid;
}

.sidebar_1_txt {
	page-break-inside: avoid;
}

.sidebar_2_hd {
	page-break-inside: avoid;
}

.sidebar_2_hdnote {
	page-break-inside: avoid;
}

.sidebar_2_txt {
	page-break-inside: avoid;
}


/* ---- LISTS ---- */
ol {
	list-style-type: none;
	padding: 0px; 
	margin-bottom: 1em;
}

ul {
	margin:0;
	padding:0;
	text-align: left;
	font-size: 0.8em;
	line-height: 1.4em;
	font-family: "Rockwell", serif;
	
}

ul li{
	font-family: "Rockwell";
	list-style-type: none;
	padding: 0;
	margin: .5em 0 0 0;
}
ul.alternate_style li{
	font-family: "RockwellLight";
	list-style-type: none;
	margin: .5em;
}

.ingred_list_sub {
	margin-top: 4%;
}
	
.footnotes {}


/* ---- IMAGES ---- */

/* ---- Large images have no margin ---- */
div.image_wrap {
	vertical-align: top;
	text-align: center;
	margin:0;
	page-break-inside: avoid;
}


/* ---- Smaller images will have a margin ---- */
div.image_wrap_small {
	text-align: center;
	margin: 1em 0 1em 0;
	page-break-inside: avoid;
}

/* -- All images should have p tag -- */
p.image {
	text-align: center;
	margin:0;
}

/* -- images that are largest on the vertical side -- */
img.vertical {
	margin: 0;
	text-align: center;
	height: 90%;
	width: auto;
}
/* -- images that are largest on the horizontal side -- */
img.horizontal {
	margin: 0;
	text-align: center;
	width: 100%;
	height: auto;
}
.image_background {
	margin: 0;
	background-repeat: no-repeat;
	background-size: contain;
}
.floatleft {
	float: left;
	width: 40%;
	margin: 10px 10px 10px 0;
}
.floatright {
	float: right;
	width: 40%;
	margin: 10px 10px 10px 0;
}
/* -- to be used within floatleft, floatright, and gallery divs -- */
img.float {
	width: 100%; 
	height: auto;
}

/* -- used to create a grid of images -- */
.gallery_25 {
	width: 23%;
	float: left;
	padding: 1%;
}
.gallery_50 {
	width: 48%;
	float: left;
	padding: 1%;
}

div.clear {clear: both}
div.pagebreak {page-break-after:always;}

/* ---- FRACTIONS ---- */
sup {
	vertical-align: super;
	font-size: 0.7em;
	line-height: 0em;
}
sub {
	vertical-align: sub;
	font-size: 0.7em;
	line-height: 0em;
}

/* -- TABLES -- */
div.table {
	margin: 1em;
}
.table {
	font-family: "AvantGardeBook";
	border-collapse: collapse;
	margin: 1em 0 0 0;
	text-align: left;
}
td, th {
	padding: 3px 5px;
}
span.font {
	font-family: "ITCAvantGardeGothicExtraLight";
}
span.fontfb {
	font-family: "Rockwell";
}
span.underline {
	font-family: "Rockwell";
        text-decoration: underline;
}
/* ---- COLORS, ok to use span tags, change attributes if needed, don't add classes ---- */
.red {color: RGB(155,3,48);}
.yellow {color: RGB(87,92,2);}
.blue {color: RGB(32,28,63);}
.orange {color: RGB(241,90,34);}
.green {color: RGB(87,151,133);}
.pink {color: RGB(255,153,204);}
.purple {color: RGB(204,153,255);}
.gray {color: RGB(153,153,153);}