*{
	margin:0;
	padding:0;
	box-sizing:border-box;
}

:root{
--color-gray-light-1:#F5F5F5; /* whitesmoke */

--color-gray-dark-1:#DDD;
--color-gray-dark-2:#AAA;
--color-gray-dark-3:#999;
--color-gray-dark-4:#555;
--color-gray-dark-5:#333;

--color-green-1:#008000; /*green*/
--color-green-2:#6B8E23; /*olivedrab*/

--color-yellow:#FFD700; /*gold*/

--color-red-1:#FF4500; /*orangered*/
--color-red-2:#B22222; /*firebrick*/
}

body {
	font-weight: 300;
	font-family:"Open Sans", sans-serif;
	color: #333;
	font-size: 14px;
}

/*header****************************************/
.header{
	max-width:960px;
	margin-left: auto;
	margin-right: auto;
	font-size: 16px;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
}
.header-logo{
	width: 60px;
	margin: 5px 0;
}
.org-name{
	align-self: center;
	margin-right: auto;
	margin-left: 10px;
	font-size: 24px;
	font-weight: 400;
	color: green;
}
.nav{
	display: flex;
	align-items: stretch;
}
.navbar{
	display: flex;
}
.navbar-item{
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 20px;
	cursor: pointer;
}

.navbar-item img{
	width: 20px;
	height: 20px;
	margin-top: 14px;
	filter: opacity(.5);
}

.navbar-item span{
	text-transform: lowercase;
	font-weight: 500;
	color: #AAA;
}

.navbar-item:hover, .navbar-item.activepage{
	background:#FFD700;
	
}

/*main ********************************************/
.main{
	max-width:960px;
	margin-left: auto;
	margin-right: auto;
	font-size: 14px;
}

/*ratings ****************************************/
.ratings {
  background-color: #B22222;
  color: #FFF;
  padding: 0 0 0 20px;
  width: 100%; 
  max-width: 960px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto; 
}

.ratings-location{
	display: flex;
	align-items: center;
}
.ratings-tags{
	display: flex;
	align-items: center;
}

.ratings-icon{
	width: 18px;
	height: 18px;
	filter: invert(1);
	
}

.ratings ul{
	display: flex;
}

.ratings li{
	list-style: none;
}

.ratings li:not(:first-child)::before{
	content:" | "; 
}

.ratings-stars{
	display: flex;
	align-items: center;
}

.ratings-votes{
	background-color: #FF4500;
	padding: 10px;
	font-size: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ratings-item .ratings-icon:first-of-type{
	margin-right: 5px;
}

/* Recipe Title Section */
.recipe-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    background-color: #6B8E23;
    color: #FFF;
	max-width: auto;
	margin: 0 auto;
}

.recipe-category {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFF;
    text-transform: lowercase;
	
}

.recipe-main-title {
    display: flex;
    align-items: center;
}

.recipe-title-text {
    font-family: "Open Sans", serif;
    font-size: 16px;
    font-weight: normal;
	color: #FFF;
}
.recipe-title-chevron {
    width: 16px;
    height: 16px;
    filter: invert(1);
}
/* Recipe Section */
.recipe-section {
	font-family: "Open Sans", serif;
    display: flex;
    max-width: 960px;
    margin: 0 auto;
	padding: 0;
}
/* Main Recipe Image (60%) */
.recipe-image-container {
    flex: 3;
}
.recipe-image {
    width: 100%;
    height: auto;
}
/* Recipe Info Section (40%) */
.recipe-info {
	background-color: #F5F5F5;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px; 
}
/* Recipe Title */
.recipe-title-main {
    font-family: "Open Sans", serif;
    font-size: 16px;
    color: #333;
	display: flex;
	flex-direction: column;
    align-items: center;
	text-align: center;
	padding-top: 20px;
	padding-left: 20px;
	padding-right: 20px;
}
/* Author Info */
.author-info {
    display: flex;
	flex-direction: column;
    align-items: center;
	text-align: center;
    margin-bottom: 20px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.author-name {
	font-size: 14px;
    font-weight: normal;
    color: #333;
	margin-top: 8px;
}
/* Recipe Details */
.recipe-details {
    list-style-type: none;
    font-size: 14px;
    color: #555;
	padding-left: 20px;
	padding-right: 20px;
}
/* Recipe Description */
.recipe-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
	padding-left: 20px;
	padding-right: 20px;
}

/* Ingredients and Instructions Section */
.recipe-ingredients-instructions {

  display: flex;
  font-family: "Open Sans", serif;
  justify-content: space-between;
  width: 100%; 
  max-width: 960px; 
  margin: 0 auto; 
  border-left: 1px dashed #333; 
  border-right: 1px dashed #333; 
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 30px;
}
.ingredients-container {

	flex: 1;
	padding: 10px;
 }

.instructions-container {
	flex: 3;
	padding: 10px;
 }
 
/* Left Container for Ingredients */
.ingredients-container .instructions-container {
  background-color: white;
  padding: 20px;
}

/* Titles for Ingredients and Instructions */
.ingredients-container h2,
.instructions-container h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  padding-top: 50px;
}

/* Ordered List Styling */
.ingredients-container ol,
.instructions-container ol {
  list-style-type: decimal;
  padding-left: 20px;
}

/* List Items */
.ingredients-container li,
.instructions-container li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

/* Recommendations Section Styles **********************************/
.recommendations-container {
	
    background-color: #F5F5F5;
    padding: 50px;
	justify-content: space-between;
	width: 100%; 
	max-width: 960px; 
	margin: 0 auto;
 
}

.recommendations-heading {
    text-align: center;
	font-family: "Open Sans", serif;
    font-size: 32px;
    font-weight: normal;
	letter-spacing: 15px;
	margin-top: 50px;
    margin-bottom: 5px;
}

.sub-heading {
	font-family: "Open Sans", serif;
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-bottom: 30px;
}

.recommendations-boxes {
	font-family: "Open Sans", serif;
    display: flex;
    justify-content: space-between;
    gap: 20px;
	padding: 0px;
}

.recommendation-box {
	flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    padding: 0px;
    width: 30%;
	min-width: 200px;
    text-align: center;
}

.food-image {
    width: 100%;

}

.food-name {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.star-rating {
    font-size: 18px;
    margin-top: 5px;
}

.food-comment {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

.comment-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
    width: 100%;
}

.commentor-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.commentor-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.commentor-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.rating-box {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}
.footer {
	width:100%;
	background-color: #555;
	color: #DDD;
	
}

.footer-content {
	max-width: 960px;
	margin: auto;
	padding: 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	
}

.footer-logo {
	display:flex;
	flex-direction: column;
	align-items: center;
	
}

.footer-logo img {
	width: 100px;
	margin-bottom: 10px;
	
}

.footer-contact {
	margin-left:50px;
	margin-right: auto;
	
}

.footer-contact ul {
	display: flex;
	flex-direction: column;
	
}

.footer-contact li {
	list-style: none;
	display: flex;
	margin-bottom: 6px;
	
}

.footer-contact li img {
	width: 14px;
	height: 14px;
	filter: invert(1);
	flex: 0 0 30px;
	
}

.footer-contact li span {
	flex: 1;
	font-size: 12px;
	
}

.footer-scoial {
	display: flex;
	
}

.footer-social img {
	width: 30px;
	height: 30px;
	filter: invert(.6);
	margin-left: 20px;
	transition: transform .2s;
	
}

.footer-social img:hover {
	filter: invert(1);
	cursor: pointer;
	transform: scale(1.2,1.2) !important;
	
}

.footer-social img:focus {
	cursor:pointer;
	
}

.subfooter {
	background-color: #333;
	font-size: 12px;
	color: #999;
	
}

.subfooter-box {
	max-width: 960px;
	margin: auto;
	padding: 5px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	
}

.subfooter img {
	width: 14px;
	height:14px;
	filter: invert(.6);
	margin: 0 5px;
	margin-left: auto;
}


@media only screen and (max-width:960px) {
	.header,
	.page-title,
	.footer-content,
	.subfooter {
		padding-left: 20px;
		padding-right: 20px; 
	}
}

@media only screen and (max-width:960px) {
	.recipe-section {
		flex-direction: column;
		
	}
	.recipe-image-container {
		order: 0;
	}
	.recipe-info {
		order: 2;
		
	}
	
}

@media only screen and (max-width:675px) {
	.header {
		flex-direction: column;
		align-items: center;
	}
	.org-name {
		margin: 0;
		padding-bottom: 10px;
	}
	.line {
		border-top: 1px solid #EEES;
		width: 100%;
		display: block;
	}
	
	.ingredients-container {
		flex: 0 1 40%;
	}
	
	.instructions-container {
		flex: 1 1 60%;
	}
	
	.recommendations-container {
		flex-direction: column;
	}
	.recommendations-container > *:not (:last-child) {
		margin-bottom: 50px;
	}
}

@media only screen and (max-width:540px) {
	.navbar-item {
		padding: 0 7px;
	}
	.ratings {
		flex-direction: column;
		padding: 0;
	}
	.ratings > * {
		margin-top: 20px;
	}
	.ratings-votes {
		align-self: stretch;
		margin: 0;
	}
	
	.recommendations-container h1 {
		letter-spacing: 0;
	}
	.footer-content {
		flex-direction: column;
		align-items: center;
	}
	.footer-contact {
		margin: 0;
		padding: 10px 0;
	}
	.footer-social img {
		margin: 0 10px;
	}
	.subfooter-box {
		flex-direction: column;
		align-items: center;
	}
	.subfooter-box img {
		margin: 0;
	}
}

@media only screen and (max-width:360px) {
	.navbar-item,
	.page-title {
		font-size:80%;
	
	}
	.instructions-container,
	.ingredients-container {
		display: flex;
		flex-direction: column;
	}
	.ingredients-container {
		order: 1; 
	
	}
	.instructions-container {
		order: 2;
	}
}