/*CSS DOCUMENT*/

html, body, div, 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;} /*My edited version of the Eric Meyer’s reset tool. You may want to include this in all of your future CSS files. */

body {
	font-family: sans-serif;
}

div.home-container { 
	background: url("home-background.jpg") center center fixed;
	background-size: cover;
	position: relative;
	min-height: 100vh; 
}

div.container { 
	position: relative;
	padding-bottom: 5rem;
	min-height: 100vh; 
}

/* >>> IMPORTANT: you have to change the wrap the content of your home page (index) in a div with a class home-container to make it work. If you used a div with the class container on your home, you’ll only need to change the name of the class.  */


img {
    width: 100%; /*Please leave this line.*/
     display: block;
}

header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: rgb(204, 204, 204);
	padding: 1rem 0.5rem;
	margin-bottom: 3em;
}

h1 {
	width: 12em;
}

h2, h3, h4 {
		font-weight: bold;
}

h2 {
	font-size: 2em;
	margin: 1rem 2rem 0rem;
}
	
h3 {
	font-size: 1.5rem;
	margin: 1.5rem 2rem 0.5rem;
}

a {
	text-decoration: none;
}

nav ul  {
	text-align: right;
}
	
ul li 	{
	list-style-type: none;
}

figure {
	margin: 1em 2em 2em;
}

main.menu ul {
		margin: 0.5rem 2rem;
}	

main.menu ul li {
		margin: 1rem 0rem 1.5rem;
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
}	

p {
	margin: 0.5em 2em 0em;
}
	
p.description {
	margin: 0.5em 0em;
}
	
p.price {
	grid-row: 1/2;
	grid-column: 2/3;
	color: rgb(255, 0, 0);
	text-align: right;
	margin: 0em;
}
	
nav ul li {
	text-transform: uppercase;
	font-weight: bold;
	margin-bottom: 1.3em;
}
	
nav ul li a {
	color: rgb(255, 255, 84);
	background-color: rgb(0, 0, 245);
	padding: 0.5em;
}

nav ul li.selected a { 
	background-color: rgb(239, 142, 52);
}

p.slogan {
	font-size: 4em;
	font-family: Playfair Display;
	font-style: italic;
	margin: 1em 0.8em 2em;
	color: rgb(255, 255, 255);	
}
	
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3rem; 
  box-sizing: border-box;
  padding: 1rem 0.5rem;
  background: rgb(255, 255, 84);
}

p.address {
	color: rgb(241, 142, 53);
}

article {
	background-color: rgb(0, 255, 255);
	padding: 1em;
	margin: auto;
	max-width: 30em;
}

footer p {
	margin: 0;
}

@media screen and (min-width: 60em) {

	body {
		background-color: rgb(255, 0, 0);
		max-width: 90%;
		margin: auto auto;
	}
	
	nav ul li {
		display: inline-block;
		margin: 1.5em 0.5em;
		font-size: 1.5em;
	}
	
	div.container { 
		background-color: rgb(255, 255, 255);
	}

	main.menu ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 8em;
	}	

}

