/* -----------
Katie Reider
Culinary Creations
Stylesheet
2021
-------------- */

/* 
css reset
*/
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;
}

/*------------------------------*/


/* Variables */
:root {
	/* Font Size */
	--global--font-size-xxs: 1vw;
	--global--font-size-xs: 1.22vw;
	--global--font-size-s: 2vw;
	--global--font-size-m: 2.5vw;
	--global--font-size-lg: 3vw;
	--global--letter-spacing: normal;

	/* Colors */
	--global--color-rust: #7D1A15;
	--global--color-dark-brown: #530F0E; 
	--global--color-brown: #92441D;
	--global--color-light-brown: #96614A;
	--global--color-pink: #E9806E;

}
/* 
* all font sizes. h6 excluded 
*	==============================================
*/ 
h1 {font-size: var(--global--font-size-lg);}
h2 {font-size: var(--global--font-size-m);}
h3 {font-size: var(--global--font-size-s);}
h4, p, .m-bold, .lght-brwn a, li {font-size: var(--global--font-size-xs);}
h5, a {font-size: var(--global--font-size-xxs);}

/* 
* Fonts 
*	==============================================
*/
@font-face {
	font-family: martel-light;
	src: url('../fonts/martel/martel-light.ttf');
	font-weight: normal;
}
@font-face {
	font-family: martel-bold;
	src: url('../fonts/martel/martel-extrabold.ttf');
	font-weight: normal;
}
@font-face {
	font-family: rasa;
	src: url('../fonts/rasa/static/rasa-medium.ttf');
	font-weight: normal;
}
@font-face {
	font-family: heebo;
	src: url('../fonts/heebo/static/heebo-light.ttf');
	font-weight: normal;
}
@font-face {
	font-family: heebo-bold;
	src: url('../fonts/heebo/static/heebo-bold.ttf');
	font-weight: normal;
}

/* Change all fonts right here */
.title, .m-bold 
{font-family: "martel-bold"}
.hdr a, .information h1
{font-family: "martel-light";}
.preview h3, button a, .information h2, .information h4, .instructions h3, .steps h3  
{font-family: "rasa";}
nav ul li a, p, .ingredients, .amount, .information a, li
{font-family: "heebo";}
.h-bold
{font-family: "heebo-bold";}




/**
 * Responsive Styles | Root Media Query Variables
 *  ====================================================
 */
 :root {
	--global--spacing-horizontal: 25px;

	--responsive--spacing-horizontal: calc(2 * var(--global--spacing-horizontal) * 0.6);
	--responsive--aligndefault-width: calc(100vw - var(--responsive--spacing-horizontal));
	--responsive--alignwide-width: calc(100vw - var(--responsive--spacing-horizontal));
	--responsive--alignfull-width: 100%;
}

@media only screen and (min-width: 200px) {

	:root {
		--responsive--aligndefault-width: min(calc(100vw - 4 * var(--global--spacing-horizontal)), 699px); 
		--responsive--alignwide-width: calc(100vw - 4 * var(--global--spacing-horizontal));
	}
}
@media only screen and (min-width: 700px) {

	:root {
		--responsive--aligndefault-width: min(calc(115vw - 8 * var(--global--spacing-horizontal)), 999px); 
		--responsive--alignwide-width: min(calc(115vw - 8 * var(--global--spacing-horizontal)), 999px); 
	}
}
@media only screen and (min-width: 1000px) {

	:root {
		--responsive--aligndefault-width: min(calc(105vw - 10 * var(--global--spacing-horizontal)), 2250px); 
		--responsive--alignwide-width: min(calc(105vw - 10 * var(--global--spacing-horizontal)), 2250px); 
	}
}



/*
* Button Styling
*	==============================================
*/
.btn {
	border: .1vw solid white;
	color: black;
	background-color: white;
    border-radius: 5px;
	padding: .75vw 2vw;
	text-align: center;
    text-decoration: none;
	cursor: pointer;
	position: absolute;
	margin: 1vw 0;

}
.btn:hover {
	text-decoration: none;
}
.space {
	height: 4vw;
	position: relative;
}
/*colors for buttons */
.brown {
	border-color: var(--global--color-brown);
    color: var(--global--color-brown);
}
.brown:hover {
	border-color: white;
	background-color: var(--global--color-brown);
	color: white;
}
.rust {
	border-color: var(--global--color-rust);
    color: var(--global--color-rust);
}
.rust:hover {
	border-color: white;
	background-color: var(--global--color-rust);
	color: white;
}



/*
* Links & nav hovering
*	==============================================
*/
a {
	text-decoration: none;
	color: white;
}
nav a.current-page {
	color: var(--global--color-pink);
	opacity: 75%;
}
a:hover {
	text-decoration: underline white;
	text-underline-offset: .25vw;;
}




/*
* Header & Navigation
*	==============================================
*/
header {
	background: var(--global--color-dark-brown);
}
.header {
	width: var(--responsive--aligndefault-width);
	margin: auto;
	padding: .5vw 0;

	display: flex;
	justify-content: space-between;
	align-items: center;
}
.hdr {
	padding: 1vw 0;
}
nav ul {
	display: flex;
	flex-direction: row;
}
nav ul li a {
	padding: 1vw;
}


/*
* Hero banner
*	==============================================
*/
.hero-banner {
    background-image: linear-gradient(to left, rgba(0,0,0, .35), rgba(0,0,0, .35));
    position: relative;
	height: 30vw; /* to set height of image*/ 
}
.img-bkg {
    width: 100%;
	height: 100%;
	object-fit: cover;
    position: relative;
    z-index: -1;
}
.hero-banner .title {
    position: absolute;
    top: 45%; /* for 'centering' of the text */
    left: 35%;
    color: white;
}




/*
* Blurb
*	==============================================
*/
.margins {
	width: calc( .75 * var(--responsive--aligndefault-width));
	margin: auto;
	padding: 3vw;
}

#blurb {
	color: white;
	background-color: var(--global--color-light-brown);
	padding: 5vw;
	line-height: 2;
}



/*
* Gallery
*	==============================================
*/
#gallery {
	background-color: var(--global--color-pink);
}
.photos {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}
#gallery img {
	width: 15vw;
	height: 15vw;
	object-fit: cover;
	padding: 1.5vw;
}

/*
* Recipes Section
*	==============================================
*/
#recipes {
	width:  var(--responsive--aligndefault-width);
	margin: auto;
	padding: 2vw 0 3vw 0;
}
.r-section {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}
#recipes img {
	width: 30vw;
	height: 30vw;
	object-fit: cover;
}
.preview {
	color: white;
	flex-basis: 37.5%;
	padding: 2vw;
	margin: 1vw;

	display: flex;
	flex-direction: column;
	align-items: center;
}
.preview *:not(.btn) {
	width: 30vw;
}
.preview *:not(a) {
	padding: .25vw 0;
}
.preview h3 {
	padding-top: 2vw;
}


@media only screen and (max-width: 900px) {
	.r-section{
		flex-direction: column;
		align-items: center;
	}
	.preview {
		padding: 2vw 10vw;
	}
}

/* background color */ 
.preview:nth-child(1),
.preview:nth-child(4) {
	background-color: var(--global--color-dark-brown);
}
.preview:nth-child(2), 
.preview:nth-child(3){
	background-color: var(--global--color-light-brown);
}

.preview:nth-child(4) img {
	transform: rotate(-90deg);
}

/*
* Footer
*	==============================================
*/
footer {
	background: var(--global--color-dark-brown);
}
.footer {
	width: var(--responsive--aligndefault-width);
	margin: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.ftr {
	color: white;
	padding: 5vw 0;
}
.ftr * {
	padding-top: 1vw;
}
#ftr-links {
	padding-right: 2.5vw;
}
#ftr-links ul {
	flex-direction: column;
}
#ftr-links li {
	padding: .75vw 0;
}
.ftr .m-bold {
	display: inline;
}


/*---------------------------------------*/

/*
* Individual Recipes Pages
*	==============================================
*/
svg {
	height: 1vw;
	width: 1vw;
}
.intro img {
	height: 15vw;
	width: 15vw;
	object-fit: cover;
}
#bread {
	transform: rotate(-90deg);
}
.intro {
	display: flex;
	justify-content: space-around;
	line-height: 1.5;
}
.ingredients {
	display: flex;
}

.section {
	background-color: var(--global--color-light-brown);
}
.intro {
	width: var(--responsive--aligndefault-width);
	margin: auto;

	color: white;
	padding: 2vw 0 3vw 0;
}
.information h1 {
	padding-top: 1vw;
}

.ingredients li {
	list-style-type: circle;
}
.name, .amount {
	padding: 1vw;
}
.amount {
	padding-left: 5vw;
}
.extra-images {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.extra-images img {
	height: 12vw;
	width: 12vw;
	background-color: var(--global--color-pink);
	padding: 3vw 4vw;;
	margin: .5vw;
}


.steps ul:not(.no-space) {
	padding: 1vw;
}
.no-space{ 
	padding: 0 1.5vw;
}
.steps li {
	list-style-type: circle;
}
.instructions {
	width: calc( .8 * var(--responsive--aligndefault-width));
	margin: auto;
	padding: 2vw 0 4vw 0;
	line-height: 1.5;
}
.instructions h3, .steps h3 {
	color: var(--global--color-brown);
}