@charset "UTF-8";
/* CSS Document */

/*================== font basics ==================== */
@font-face {
    font-family: 'andadaregular';
    src: url('../fonts/andada-regular-webfont.woff2') format('woff2'),
         url('../fonts/andada-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
	font-family: 'open_sansbold';
	src: url('../fonts/opensans-bold-webfont.woff2') format('woff2'),  url('../fonts/opensans-bold-webfont.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}
@font-face {
	font-family: 'open_sansregular';
	src: url('../fonts/opensans-regular-webfont.woff2') format('woff2'),  url('../fonts/opensans-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'open_sansitalic';
	src: url('../fonts/opensans-italic-webfont.woff2') format('woff2'),  url('../fonts/opensans-italic-webfont.woff') format('woff');
	font-weight: normal;
	font-style: italic;
}


@font-face {
    font-family: 'dancing_script_otregular';
    src: url('../fonts/dancingscript-regular-webfont.woff2') format('woff2'),
         url('../fonts/dancingscript-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

ol{
	list-style-type: decimal;
}

body{
	font-size: 100%;
	line-height: 1.4;	
	background-image: url(../images/background_detail_warm.jpg), url(../images/clean_textile_warm.jpg); /* Background pattern from Subtle Patterns */
	background-repeat: no-repeat, repeat;
	background-position: center top;
	font-family: open_sansregular, arial, helvetica, sans-serif;
	color: #232426;
	height: 100%;
}

strong, li span {
	font-weight: bold;
	font-family: open_sansbold, sans-serif;
	color: #37373b;
}
em {
	font-family: 'open_sansitalic', arial, helvetica, sans-serif;
	font-style: italic;
}
sup {
	vertical-align: top;
	font-size: 0.8em;
}
sub{
	
	font-size: 0.8em;
}
.small{
	display: block;
	font-size: 0.5em;	
}
/*================== wrapper, header ==================== */

#wrapper{
	display: block;
	width: 320px;
	margin: 0 auto;
	min-height: 500px;	
	overflow: hidden;
	overflow-x: hidden;
}
main{
	padding: 15px;	
}
header, footer, nav {
	display: block;	
}
header{
	position: relative;	
	height: 230px;
	clear: both;
}
#utilities{
	/*background-color: #fff;*/
	display: block;
	width: 100%;
	overflow: auto;
	min-height: 10px;
	color: #333;
	font-size: 0.65em;
	text-transform: uppercase;
	/*box-shadow: rgba(0,0,0, 0.1) 0 1px 2px;	*/
}
#utilities a{
	border-radius: 3px;
	text-decoration: none;
	color: 	#ff7aac;
	display: block;
	width: 100%;
	height: 100%;
	padding: 7px;
	transition: background-color 0.35s, color 0.35s;
}
#utilities a:hover{
	background-color: #ff7aac;
	color: #fff;
}
#utilities a img{
		width: 10px;
		margin-right: 7px;
		margin-bottom: -1px;
}
#utilities > div {
	margin: 0 auto;
	width: 100%;
	max-width: 1100px;	
}
#sign-in, #register{
	float: right;
}
#register{
	display: none;
	border-right: 1px solid #E0DFDA;	
}
#register a{
	color: #E0DFDA;	
}
.search{
	display: block;
	width: 150px;
	position: absolute;
	bottom: 50px;
	left: 50%;
}

.search input{
	padding: 5px;
	 border-radius: 10px;
	border: 1px solid #E0DFDA;
	display: block;
	width: 150px; 
	float: left;
}
.search div {
	margin-left: -50%;	
}
.search  a {
	
	width: 49px;
	height: 45px;
	display: block;
	float: left;
	margin-top: -10px;
	background-image: url('../images/search_icon.png');
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 15px;
	-webkit-transition: all 0.55s;
	-moz-transition: all 0.55s;
	transition: all 0.55s;
}
.search a:hover{
	background-color: #fff;
		
}
/*================== nav ==================== */
nav{
	height: 50px;	
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 100%;
}
nav ul{
	display: table;
	height: 100%;
	width: 100%;
	margin-left: -50%;
	
}
nav li{
	display: table-cell;
	width: 24%;	
	height: 100%;
	vertical-align: middle;
	text-align: center;
	transition: all 0.35s;
	border-radius: 5px;
}
nav a{
	padding: 15px 9px; /* bump out hit area */
	color: #ff7aac;
	text-decoration: none;
	position: relative;
	
}
nav a::before{
	content: ' ';
	opacity: 0;
	display: block;
	width: 50px;
	height: 30px;
	position: absolute;
	top: -5px;
	left: 50%;
	margin-left: -10px;
	background-image: url(../images/heart.png);
	background-repeat: no-repeat;
	transition: all 0.5s;
	
}
nav a:hover::before{
	opacity: 0.75;
	z-index: 999;
}
#logo{
	position: absolute;
	left: 50%;	
}
#logo img{
		
	margin-left: -50%;
	margin-top: 10px;
}
/*================== main photo ==================== */
#main-photo{
	display: block;
	width: 100%;	
	min-height: 350px;
	background-size:cover;
	background-image: url(../images/cupcake.jpg);

}

h1, h2, h3, h4, h5, h6{
	font-family: andadaregular, serif;	
	text-align: left;
	color: #ff7aac;
}
h1{
	font-size: 2.2em;
	margin-bottom: 0.65em;
	text-align: center;
}
h2{
	font-size: 1.7em;
	margin-bottom: 0.65em;
	margin-left: 20px;
}
h3{
	font-size: 1.1em;	
	margin-bottom: 0.65em;
	margin-left: 20px;
	text-transform: uppercase;
}

#chefs-tip h2{
	margin-left: 0;
	text-align: center;	
}
/*================== links ==================== */
a.button, a.button:link,a.button:visited {
	display: block;
	width: 115px;
	border: 1px solid #50b5a8;
	padding: 10px;
	text-align: center;
	text-decoration: none;	
	border-radius: 4px;
	transition: all 0.35s;
	border-bottom: 2px solid #3c8e83;
	background-color: #50b5a8;
	color: #fff;
	float: left;
	margin: 5px 5px 20px 5px;
	font-size: 1em;
}

a.button:hover{
	background-color: #67cbbe;	
}
/*================== divs ==================== */
#print{
	float: right;
	display: none;
	width: 115px;
	height: 40px;
	margin-top: 3px;
}
#print a{
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px 7px 7px 42px;
	background-image: url(../images/print_icon.png);
	background-repeat: no-repeat;
	background-position: 10px 6px;
	font-size: 0.75em;
	text-decoration: none;
	color: #50b5a8;
	text-transform: uppercase;
}
#print a:hover{
	text-decoration: underline;	
}

.holder{
	display: block;
	overflow: auto;	
}
 #instructions, .holder{
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: rgba(0,0,0, 0.1) 0 5px 30px;	
}

#reviews{
	display: block;
	position: relative;
	overflow: auto;
	margin: 0 auto 0 auto;	
	
}
#reviews p {
	display: block;
	float: left;
	margin-top: 8px; /* vertical align with review button */
}
#reviews p a, #reviews p a:visited{
	color: #50b5a8;	
	text-decoration: none;
	margin: 0 5px;
}
#reviews p a:hover{
	text-decoration: underline;	
}

#reviews img{
	display: block;
	float: left;
	margin: 4px 8px 15px 0;
}

.author{
	text-align: center;	
	margin-bottom: 10px;
	font-family: open_sansitalic, arial, helvetica, sans-serif;
}
.recipe-info {
	display: block;
	margin: 30px 0;
	clear: left;
}

#ingredients ul, #instructions ol{
		  /*list-style-type:disc;*/
		  font-size: 0.85em;
		  margin-left: 20px;
		  margin-bottom: 30px;
}
#instructions ol{
	margin-left: 40px;	
}
#ingredients li, #instructions li{
	padding: 10px;
	border-bottom: dashed 1px #d2cfc8; 	
}
/* override so no border on last item (not needed ) */
#ingredients li:last-child, #instructions li:last-child{
	border-bottom: none;
}

#ingredients ul li{
	
	position: relative;	
	padding-left: 50px;
	
}

#ingredients li span{
	padding-top: 9px;
	position: absolute;
	top: 0;
	left: 0;
	display: inline-block;
	height: 100%;
	font-family: open_sansbold;
	width: 40px;
	text-align: right;
	color: #4d4d55;
}

#intro, #ingredients, #instructions, #newsletter, #chefs-tip, #suggested-recipes {
	display: block;
	margin-bottom: 45px;	
	overflow: auto;
	padding: 10px;
	
}
	#ingredients {
		margin-top: 50px;	
	}
	#instructions{
		margin-top: 50px;
		padding-top: 30px;	
	}
#intro{
	padding: 25px;	
	font-size: 0.875em;
}
#intro > p{
	max-width: 90%;
	font-size: 1.2em;
	line-height: 1.55;
}
/* ==================== chef tip  ============== */
#chefs-tip{
	text-align: center;
	display: block;
	width: 100%;
	height: 300px;
	background-image: url(../images/paper.png);
	background-size: 140%;
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	overflow: visible;
}

#chefs-tip h2{
	font-size: 3em;
	margin-bottom: 10px;
	font-family: dancing_script_otregular, script;		
}
#chefs-tip > div{
	width: 200px;
 	position: absolute;
	top: 40px;
	left: 40px;
}

/* ==================== newsletter ============== */
#newsletter{
	display: block;
	padding: 30px 25px 50px 25px;
	text-align: center;
	background-color: #a34cd4;	
	color: #fff;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}

#newsletter p{
	margin: 0 auto 30px auto;
	font-size: 2.2em;
	line-height: 1.1;
	max-width: 500px;
	font-family: dancing_script_otregular, script;	
}

#newsletter input{
	padding: 5px;
	 height: 40px;
	 border-radius: 10px;
	border: 1px solid #E0DFDA;
	display: block;
	width: 100%; 	
	margin-bottom: 8px;
}
#newsletter input[type="submit"]{
	border: none;
	height: 40px;	
	display: block;
	width: 100%;
	padding: 10px;
	text-align: center;
	text-decoration: none;	
	border-radius: 4px;
	transition: all 0.35s;
	border-bottom: 2px solid #3c8e83;
	font-size: 0.8em;
	background-color: #50b5a8;
	color: #fff;
	float: left;
	margin: 5px 5px 20px 5px;
}

#newsletter input[type="submit"]:hover{
	background-color: #67cbbe;	
}
/*================== suggested receipes ==================== */
#suggested-recipes{
	display: block;
	height: 500px;	
	position: relative;
	width: 290px; /* used to be 100% but IE was rendering differently */
	max-width: 1000px;
	overflow: hidden;
	margin: 0 auto 50px auto;	
}
#suggested-recipes h2{
	text-align: center;	
}

#suggested-recipes a{
	display: block;	
	overflow: auto;
	float: left;
}
#arrow-right, #arrow-left { 
	position: absolute;
	display: block;
	top: 280px;
	right : 0;
	height: 65px; /* increase hit area */
	width: 65px;	
	z-index: 999;
	background-repeat: no-repeat;
	transition: opacity 0.5s, transform 0.5s;
	transform: scale(0.85);
}
#arrow-right:hover, #arrow-left:hover{
	transform: scale(1);
}
#arrow-right{
	background-image: url(../images/right.png);	
}
#arrow-left{
	left: 0;
	background-image: url(../images/left.png);
}
#suggested-recipes .inner {
	position: absolute;
	top: 150px;
	left: 0;
	display: block;
	width: 3000px; /* make super big so don't have to worry about changing this value at each layout size as imgs get bigger */
	height: 390px;
	transition: all 0.5s;
}
#suggested-recipes .inner img{
		/* disable highlight of img causing it to be blue (happened sometimes on click) */
	 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
     -khtml-user-select: none; /* Konqueror */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version */
	height: 290px;
	
	border-radius: 10px;
}
#suggested-recipes h3.first{
	clear: left;
}

#suggested-recipes h3{
	display: block;
	float: left;
	text-align: center;
	margin-top: 10px;
	margin-left: 0;
	background-color: #fff;
	border-radius: 10px;
	padding: 10px;
	font-size: 1.6em;
	text-transform:capitalize;
	line-height: 1;
	font-family: dancing_script_otregular, script;
}
#suggested-recipes h3, #suggested-recipes .inner img{
	width: 290px;
}
#suggested-recipes .move-recipe-1{
	left: -290px;	
}
#suggested-recipes .move-recipe-2{
	left: -580px;	
}
#arrow-right.disable, #arrow-right.disable:hover, #arrow-left.disable,  #arrow-left.disable:hover{
	opacity: 0.5;
	transform: scale(0.85);
}
/*================== footer ==================== */
footer{
	min-width: 320px;
	display: block;
	height: 100%;
	min-height: 200px;
	background-color: #50b5a8;
	text-align: center;
	border-radius: 10px 10px 0 0 ;
	overflow: visible; /*  has to be this in order for the cake to not get cut off*/
	position: relative;
	
}
footer ul{
	margin: 15px auto;
	text-transform: uppercase;
	font-size: 0.8em;	
	max-width: 800px;
}
footer li{
	border-bottom: 1px dashed #8ae5d9;
	padding: 10px;
}
/* remove border for last item */
footer li:last-child{
	border-bottom: none;	
}
footer a{
	color: #8ae5d9;
	text-decoration: none;	
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px;
}

footer a:hover{
	color: #fff;	
}
footer > div{
	font-family: dancing_script_otregular, script;	
	font-size: 1.5em;
	color: #50b5a8;
	padding: 40px;
	margin-bottom: 20px;	
	background-color: #f7f5dd;
	background-image: url(../images/scallop.png);
	background-repeat: repeat-x;
	background-position: bottom;
	height: 230px;
}

footer > div img{
	margin-top: 15px;	
}

footer::before{
	content: '';
	display: block;
	width: 101px;
	height: 65px;
	background-image: url(../images/cake.png);	
	background-repeat: no-repeat;
	position: absolute;
	top: -40px;
	left: 50%;
	margin-left: -50px;
	z-index: 999;
}
/*================== media queries ==================== */

@media (min-width:690px){
	
	body{
		font-size: 106.25%;	
	}
	#wrapper{
		width: 680px;	
	}
	
	/* shorten header */
	header{
		height: 190px;	
	}
	
	/* move nav to left and shorten so make room for seach bar */
	nav{
		position: static;
		width: 430px;	
	}
	nav ul{
		margin: 0;	
	}
	
	/* put search bar on same level as nav */
	.holder-search-nav{
		display: block;
		width: 680px;
		/*overflow: hidden;*/
		position: absolute; 
		bottom: 0;
		left: 0;	
	}
	/* show register quicklink */
	#register{
		display: block;	
	}
	.search{
		width: 210px;
			position: static;
			float: right;
			margin: 10px 0 0 0;
	}
	
	.search div{
		position: static;	
		margin: 0;
	}
	/* show print button */
	#print{
		display: block;	
	}
	h1{
		display: block;
		float: left;
		text-align: left;
		width: 500px;
	}
	#reviews{
		margin: 0;
		width: 280px;	
	}
	.col1{
		margin-right: 10px;	
	}
	.col1, .col2{
		float: left;
		width: 310px;
	}
	
	footer li{
		display: inline-block;
		width: 130px;
		border-right: 1px dashed #8ae5d9;
	}
		footer  ul li:first-child{
		border-left: 1px dashed #8ae5d9;
	}
	#main-photo{
		height: 500px;	
	}
		.author {
		text-align: left;	
	}
	#chefs-tip{
		height: 450px;
			background-size: auto;
	}
	#chefs-tip > div{
		top: 110px;
	left: 220px;	
	}
	/* reduce width of newsletter components*/
	#newsletter input{
		border-radius: 10px 0 0 10px;	
	}
	#newsletter input, #newsletter input[type="submit"]{
		width: 200px;	
		float: left;
		margin: 0;
	}
	#newsletter form{
		display: inline-block;
		width: auto;
		overflow: auto;
		margin: 0 auto;	
	}
	/* modify suggested recipe size*/
	#suggested-recipes {
		width: 640px;	
	}
	#suggested-recipes .inner{
		top: 80px;	
	}
	#suggested-recipes #arrow-right, #suggested-recipes #arrow-left{
		top: 210px;	
	}
	#suggested-recipes h3, #suggested-recipes .inner img{
		margin-right: 10px;
	width: 315px;
}
#suggested-recipes .move-recipe-1{
	left: -325px;	
}
#suggested-recipes .move-recipe-2{
	left: -630px;	/* 315 times 2 */
}
	
	/* float footer items left */
	footer li{
		float: left;	
	}
	/* create 2 row layout */
	footer ul{
		max-width: 390px;	
	}
	footer  ul li:last-child{
		border-bottom: 1px dashed #8ae5d9;
	}
	footer  ul li:nth-child(3), footer  ul li:nth-child(6) {
		border-right: none;	
	}
	footer  ul li:nth-child(1){
		border-left: none;	
	}
	footer  ul li:nth-child(4), footer  ul li:nth-child(5), footer  ul li:nth-child(6){
		border-bottom: none;
	}
	
	/* increase footer size */
	footer {
		min-height: 400px;	
	}

}

@media (min-width:1150px){
	body{
		font-size: 112.5%;	
	}
	#wrapper{
		width: 1100px;	
	}
	
	#logo{
		display: block;
		position: static;
		margin-top: 15px;
		margin-left: 30px;
	float: left;
	
}
#logo img{
	margin: 0;
}
/* move nav and search up beside logo */
.holder-search-nav{
	overflow: hidden; /*needs to be hidden to avoid random scrollbar */
	position: static;
	width: 900px;
}
.search{
	margin-top: 70px;	
}
	nav{
		position: static;
		float: left;	
		width: 670px;
		height: 100%;
		margin-top: 70px;
	}
	nav ul {
		margin: 0;	
	}
	
	/* shorten header */
	header{
		height: 150px;	
	}
	#reviews{
		width: 300px;	
	}
	
	.holder{
	clear:both;	
	}
	#main-photo{
		float: right;
		width: 50%;	
		height: 700px;
	}
	#intro {
		float: left;
		width: 50%;		
	}
	
	#ingredients{
		clear: both;
	}
	
	.col1{
		margin-right: 40px;	
	}
	.col1, .col2{
		width: 500px;	
	}
	#intro .col1, #intro .col2{
		width: 230px;
	}
	#intro a.button{
		float: right;	
		margin-bottom: 5px;
	}
		#chefs-tip > div{
		top: 100px;
	left: 430px;	
	}
	#suggested-recipes {
		width: 1000px;	
	}
	/* disable buttons for related recipes */
	#arrow-right, #arrow-left{
		display: none;	
	}
	footer ul{
		max-width: 780px;	
	}
	footer li{
		border-bottom: none;	
	}
	footer ul li:nth-child(3){
		border-right: 	1px dashed #8ae5d9;
	}
	footer li:last-child{
		border-right: none;	
	}
	footer ul li:first-child{
		border-left: none;	
	}
}