/* we start off by resetting some redundant css properties on the body elemtn */

body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* now we'll to style our navbar */
/* we'll be uing css flex to achieve this */
/* now we'll use compound css targets to style the links that are children of our navbar */

nav {
	width: 100%;
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: space-around;
	background-color: black;
	color: white;

	-webkit-touch-callout: none;
	user-select: none;
}

#nav-buttons > a {
	margin-left: 3rem;
}

@media (max-width: 800px) {
	#card-container {
		flex-direction: column;
	}

	#logo {
		display: none;
	}

	nav {
		justify-content: flex-start;
	}
}

.card > img {
	width: 300px;
	height: 320px;
	border-radius: 0.5rem;
}

.card {
	padding: 1rem;
	background-color: white;
	width: 400px;
	text-align: center;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	border: 1px solid black;
	user-select: none;
	cursor: pointer;

	transition: box-shadow 200ms;
}

.card:hover {
	box-shadow: 0 2px 5px -1px gray;
}

#card-container {
	width: 100%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

main {
	padding-top: 2rem;
	text-align: center;
}

main p {
	margin-bottom: 2rem !important;
}

ul {
	list-style-position: inside;
}

ul li {
	line-height: 1.5;
}

#recipe p {
	text-align: justify;
	margin: 1rem;
	line-height: 1.6;
	font-size: 19px;
}

#article-main {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	padding: 1rem 25%;
}

#article-main img {
	border-radius: 0.5rem;
	max-width: 100%;
}

@media (max-width: 800px) {
	#artcile-main {
		padding: 1rem 0;
	}
}

#header-image {
	width: 100%;
	height: 200px;
	background-image: url("https://www.wellplated.com/wp-content/uploads/2020/01/Greek-yogurt-smoothie-peanut-butter.jpg");
	background-repeat: repeat;
	background-size: contain;
	border-radius: 0.5rem;
}

.avocado-image {
	background-image: url("https://imagesvc.meredithcorp.io/v3/mm/image?q=85&c=sc&poi=face&url=https%3A%2F%2Fimg1.cookinglight.timeinc.net%2Fsites%2Fdefault%2Ffiles%2Fstyles%2F4_3_horizontal_-_1200x900%2Fpublic%2Fimage%2F2018%2F07%2Fmain%2F1807w-avocado-toast-recipe.jpg%3Fitok%3DiTXSfI1Z") !important;
}
