* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

::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: 300l;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #333;
}

/* header ******************/
.header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

.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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    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: gold;
}

/* main **********************/
main {
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
	flex:1;
}

/* recipe *******************/
.greenbar {
    background-color: #008000;
}

.recipe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    max-width: 960px;
    height: 100px;
    margin: 0 auto;
    padding: 0 30px;
}

.recipeheading {
    color: white;
    font-weight: 600;
    letter-spacing: 5px;
}

.recipeitems {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chevron {
    width: 18px;
    height: 31px;
    filter: invert(100%);
}

.recipe ul {
    display: flex;
    font-size: 20px;
    color: white;
}

.recipe li {
    list-style: none;
    margin-right: 15px;
}

/* summary ******************/
.summary {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100vw;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
    background-color: #F5F5F5;
    height: auto;
}

.tbbp {
    display: flex;
    flex-direction: column;
    max-width: 240px;
    margin-right: 20px;
    margin-top: 0;
    padding-bottom: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.author {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    border-radius: 50%;
    overflow: clip;
    background-color: #007bff;
    color: white;
    font-size: 24px;
}

.author-info span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.deets li {
    margin-top: 20px;
    list-style: none;
}

.pasta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.pasta img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* ii ******************/
.ii {
    display: flex;
    flex-direction: row;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
    height: auto;
}

.ingredients {
    display: flex;
    flex-direction: column;
}

.ingredients h2 {
    font-weight: 400;
}

.ingredients ul {
    margin-top: 24px;
}

.ingredients li {
    list-style: none;
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex: 1;
    margin-left: 40px;
}

.instructions h2 {
    font-weight: 400;
}

.instructions ol {
    margin-top: 10px;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ratings ******************/
.ratings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin-top: 20px;
    margin-left: 18.3%;
    padding: 0 0 0 20px;
    background-color: firebrick;
    color: #FFF;
}

.ratings-location {
    display: flex;
    align-items: center;
}

.ratings-tags {
    display: flex;
    align-items: center;
}

.ratings-icon {
    width: 18px;
    height: 10px;
    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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: orangered;
    font-size: 12px;
}

.ratings-item .ratings-icon:first-of-type {
    margin-right: 5px;
}

/* recommendations ******************/
.recommendations {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100vw;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
    background-color: #F5F5F5;
    height: auto;
}

.recommendations h2 {
    font-weight: 300;
    letter-spacing: 10px;
}

.recs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: auto;
}

.recsheader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 20px;
}

.therecs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.reccard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    max-width: 300px;
    height: 450px;
    max-height: 450px;
    margin: 10px;
    margin-top: 20px;
    background-color: white;
}

.rectitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 0px;
}

.recimage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.recimage img {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
}

.recinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30%;
}

.ratings-stars-black {
    display: flex;
    align-items: center;
    filter: invert(100%);
}

.recpara {
    text-align: center;
    align-items: center;
}

.authorsection {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.recauthor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.user {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    border-radius: 50%;
    overflow: clip;
    background-color: #007bff;
    color: white;
    font-size: 24px;
}

.userrating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 3px 3px;
    background-color: olivedrab;
    border-radius: 4px;
    color: white;
}

.headfooter {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 960px;
    height: 190px;
    margin: 0 auto;
    padding: 20px;
    background-color: #555;
    color: #F5F5F5;
}

.headfooterbg {
    height: 200px;
    background-color: #555;
}

.logofooter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logofooter img {
    height: 130px;
}

.logofooter p {
    margin-top: 5px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0px 50px;
    margin-right: auto;
    list-style: none;
    white-space: nowrap;
}

.icon {
    height: 18px;
    padding-right: 5px;
    filter: invert(100%);
}

.footeritem {
    width: 200px;
    margin: 0 auto;
    padding: 5px 5px;
    font-size: 12px;
}

.socmed {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    height: 30px;
    filter: invert(80%);
}

.socmed img {
    width: 50%;
    height: auto;
}

.subfooter {
    background-color: #333;
}

.subfooterinfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    max-width: 960px;
    margin: 0 auto;
    font-size: 12px;
    color: #F5F5F5;
}

/* media queries ******************/
@media (max-width: 360px) {
.header {
    flex-direction: column;
    align-items: center;
    text-align: center;
	justify-content:center;
}

.org-name{
	margin: 5px 0 0 0;
	text-align:center;
}

.nav {
	max-width:360px;
    width: 100%;
	justify-content:center;
	align-items:center;
}

.navbar {
    flex-direction: row;
    gap: 10px;
}

.navbar-item {
    padding: 5px 0;
}

.recipe {
    flex-direction: column;
    align-items: center;
    height: auto;
    text-align: center;
}

.recipe ul {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 16px;
}

.summary {
    flex-direction: column;
    padding: 15px;
    text-align: center;
}

.tbbp {
    max-width: 100%;
    margin: 0 0 20px 0;
}

.pasta img {
    max-height: 200px;
}

.ii {
    flex-direction: column;
    padding: 15px;
}

.instructions {
    margin-left: 0;
    margin-top: 20px;
}

.ratings {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    margin-left: 0;
}

.ratings-item,
.ratings-stars,
.ratings-votes {
    margin-bottom: 10px;
}

.therecs {
    flex-direction: column;
    align-items: center;
}

.reccard {
    width: 100%;
    max-width: 320px;
}

footer{
	flex-direction:column;
}

.headfooter {
    flex-direction: column;
    align-items: center;
    text-align: center;
	height:auto;
    gap: 30px;
	max-width:320px;
}

.logofooter{
	flex-direction:column;
	align-items: center;
	text-align:center;
	gap: 5px;
}

.contact {
    padding: 0;
    align-items: center;
	flex-direction:column;
}

.socmed {
    justify-content: center;
	flex-direction:row;
}

.subfooter{
	margin-top: 0;
}
.subfooterinfo {
    flex-direction: column;
    text-align: center;
    gap: 5px;
}
}
