@font-face {
	font-family: 'Avenir';
	src: url('fonts/Avenir.eot');
	src: local('☺'), url('fonts/Avenir.woff') format('woff'), url('fonts/Avenir.ttf') format('truetype'), url('fonts/Avenir.svg') format('svg');
	letter-spacing: 2px;
}

body {
	background-image: url("https://assets.stuff.co.nz/interactives/2017/nz-diet/recipe-generator/img/bg.jpg");
	background-size: 100%;
	opacity: 0;
	letter-spacing: 0.75px;
    -moz-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
}
body.display {
	opacity: 1;
}
.row-instructions, .row-recipes {
	margin: 30px auto;
	max-width: 600px;
	box-shadow: 1px 0 5px black;
}
.row-recipe {
	margin: 0 auto;
}
.row-instructions {
	background-color: white;
	padding-bottom: 15px;
}
	.instructions {
		font-family: "Avenir", sans-serif;
		letter-spacing: 2px;
		font-size: 18px;
    	padding-top: 20px;
    	font-weight: bold;
	}
.col-error {
	color: #ec425f;
	text-align: center;
    padding-top: 5px;
}
.col-recipe {
	position: relative;
	background-color: slategrey;
	color: white;
	padding: 0;
}
.col-recipe-img {
	height: 0;
	padding-bottom: 50%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	position: relative;
	cursor: pointer;
}
.img-overlay {
	width: 100%;
    height: 100%;
    position: absolute;
    background-color: white;
    opacity: 0;
    left: 0;
    top: 0;
}
.img-overlay.hover {
	opacity: 0.3;
}

.recipe-name {
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(112, 128, 144, 0.9);
    width: 100%;
    color: white;
    left: 0;
    padding: 10px 5px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: bold;
    font-family: "Avenir", sans-serif;
}
.tag {
    white-space: nowrap;
  	font-weight: bold;
    padding: 5px;
    display: inline-block;
    text-transform: lowercase;
    font-family: "Avenir", sans-serif;
    font-size: 13px;
}
	.tag-bf {
		background-color: #f73556;
	}
	.tag-lunch {
		background-color: #FA4600;
	}
	.tag-dinner {
		background-color: #FA6D04;
	}
	.tag-snacks {
		background-color: #ffac00;
	}
	.tag-qm {
		background-color: #bde500;
	}
	.tag-veg {
		background-color: #0ACC41;
	}
	.tag-vegan {
		background-color: #00BFA2;
	}
	.tag-df {
		background-color: #20B1C1;
	}
	.tag-gf {
		background-color: #00cce8;
	}
	.tag-sf {
		background-color: #4DB8F5;
	}
	.tag-seafood {
		background-color: #3196D5;
	}
	.tag-paleo {
		background-color: #48476d;
	}
.recipe-label {
	font-family: "Avenir", sans-serif;
	letter-spacing: 2px;
	font-size: 20px;
	padding: 30px 15px 5px 15px;
	text-transform: capitalize;
	font-weight: bold;
}
.toggle-content {
	display: none;
}
.recipe-content {
	padding: 0 15px;
}
.recipe-credit {
	font-family: "Avenir", sans-serif;
	font-weight: bold;
	letter-spacing: 2px;
	font-size: 20px;
	text-align: right;
	padding: 45px 15px 15px 15px;
}
#title {
	font-family: "Avenir", sans-serif;
	font-weight: bold;
	font-size: 25px;
	letter-spacing: 2px;
	line-height: 90px;
	text-align: center;
	background-color: rgba(112, 128, 144, 1);
	color: white;
	text-transform: capitalize;
	margin: 0 -15px;
}
#subtitle {
	padding-top: 15px;
}
.row-time, .row-prep, .row-servings {
	display: inline;
	float: left;
}
	.row-time.one, .row-prep.one, .row-servings.one {
		width: 100%;
	}
	.row-time.two, .row-prep.two, .row-servings.two {
		width: 50%;
	}
.row-prep {
	width: 31%;
}
.row-time {
	width: 38%;
}
.row-servings {
	width: 31%;
}

@media(max-width:410px) {
	.row-time, .row-prep, .row-servings {
		width: 100% !important;
		padding-bottom: 0;
	}
	.row-time .recipe-label, .row-prep .recipe-label, .row-servings .recipe-label {
		padding-bottom: 0 !important;
	}
}

.row-time .recipe-label, .row-prep .recipe-label, .row-servings .recipe-label {
	font-size: 16px;
	padding: 15px 0 10px 15px;
}

.row-back {
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	padding: 45px 0;
    background-color: rgba(224, 226, 229, 0.5);
    display: none;
}
.btn-generate {
	width: 100%;
	padding: 15px 0;
	margin-top: 15px;
	font-family: "Avenir", sans-serif;
	letter-spacing: 2px;
	font-weight: bold;
	font-size: 16px;
	background-color: rgba(224, 226, 229, 0.73);
	border: none;
	white-space:normal;
}
.btn.btn-default.btn-generate:hover,
.btn.btn-default.btn-generate:focus,
.btn.btn-default.btn-generate:active {
	background-color: rgba(224, 226, 229, 0.73);
	border: none;
	outline: 0;
}
.checkbox, .radio {
	margin: 5px 0;
}

.recipe-label.recipe-note .on {
	display: none;
}
.recipe-label.recipe-note {
	cursor: pointer;
	padding: 0;
    margin: 30px 15px 5px 15px;
    border-bottom: 2px solid white;
    display: inline-block;
    width: auto;
    text-transform: none;
}
.recipe-content.recipe-note {
	display: none;
}