* {
	font-family: "dm sans", "verdana", "playfair";
	font-size: 16px;	
	color: black;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body	{
	background-color: #f3efe5;
}


#wrapper 	{
		width: auto;
		min-height: 100vh;
		
		/*primary grid*/
		display: grid;
		grid-template-areas:
			"banner"
			"menu"
			"content"
			"footer";
		grid-template-columns: 1fr;
		grid-template-rows: minmax (150px, auto) 100px minmax(700px, auto) minmax(100px, auto);
		background-color: #f3efe5;
		}
		
		

header	{
	grid-area: banner;
	width: 100% auto;
	height: 150px;
	background-color: #000000;
	
	/* --- sub grid --- */
		display: grid;
		width: 100% auto;
		height: 150px;
		grid-template-areas:
				"logo cart";
		grid-template-rows: 1fr;
		grid-template-columns: 3fr 2fr;
}

header img	{
		grid-area: logo;
		width: 100% auto; 
		height: 150px auto;	
		text-align: left;
}

header h1 {
		width: 100% auto;
		padding: 0 0 0 0;
		text-align: right;
}

/*--- nav --- */
nav	{
	grid-area: menu;
	height: 100px;
	width: 100% auto;
	background-color: #f3efe5;
}

nav ul {
		list-style: none;
		color: #000000;
		display: flex; 
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-around;
		padding: 25px;
		border-radius: 25px;
		
}

nav a {
	text-decoration: none;
	display: block; 
	padding: 1em 2em 1em 2em;
	border-radius: 25px;
	background-color: #ecd4cb;
	color: #000000;
	
}

nav a:hover
{
			background-color: #dfc8b7;
}	

/*--- main ---*/

main {
	width: 100% auto;
	min-height: 700px;
	background-color: #ecd4cb;
	text-align: center;
	padding-top: 3em;
		

img {
	display: block;
	margin: auto;
}



footer	{
		width: 100% auto;
		height: 120px;
		background-color: #f3efe5;
		position: relative;
		color: #000000;
	

	
		
		/* --- sub grid --- */
	display: grid;
	grid-template-areas:
		"instagram facebook details copyright"
		"instagram facebook details copyright"
		"instagram facebook details copyright"
		"instagram facebook details copyright";
	grid-template-columns: 1fr 1fr 5fr 5fr;
	grid-template-rows: 1fr;
}


#instagram {
	grid-area: instagram;
	padding-top: 2em;
	padding-left: 2em;
	
}

#facebook {
	grid-area: facebook;
	padding-top: 2em;
	
}


#details {
		grid-area: details;
		padding: 1em;
		gap: 1em;
		color: #fdfbd4;
		position: absolute;
		bottom: 0;
}

#copyright {
		grid-area: copyright;
		padding: 1em;
		gap: 1em;
		color: #000000;
		position: absolute;
		bottom: 0;
		right: 0;
}
	
/* --- media query --- */

@media screen and (max-width: 600px) {
	#wrapper {
	/* --- change header height ---*/
	grid-template-rows: 70px 50px minmax (650px, auto)
	minmax(100px, auto);
	}	
header {
	height: 70px;
	font-size: 50%;
}

img {
	object-fit: contain;
	width: 100%;
}

nav {
	height: 70px
}
	
nav a {
	font-size: 75%;
	padding: 0.09em;
	} 	

#contactform {
	font-size: 50%;
	grid-column: 1/1;
	grid-row: 1/2;
	}



