*{
    margin: 0;
    padding: 0%;
    box-sizing: border-box; 
}

img {
    width: 100%;
}

: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;
}

.header-logo{
    width: 60px;
    margin: 5px 0;
}
.org-name{
    align-self: center;
    margin: 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;
filter: opacity(.5);
margin-top: 14px; 
}

.navbar-item span{
    text-transform: lowercase;
    font-weight: 500;
    color: #AAA;
}

.navbar-item:hover, .navbar-item.activepage{
    background:gold
}
.page-title{
    background-color:#6B8E23;
    font-family: 'Open Sans', sans-serif;
    color:#FFF;
    padding: 30px 0 30px 0;
}
#page-title{
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content:space-between;
    align-items: center;
}
.page-title-recipe{
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 3px;
}
.page-title-recipe-name{
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 2px;
}
.page-title-recipe-name img{
    margin-right: 1px;
    width: 30px;
    filter: invert(1);
}
/*main ********************************/
main{
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    font-family: 'Open Sans', sans-serif;
    color:#333;
    font-size: 14px;

    display: flex;
    flex-direction: column;
}
/* recipe-quick info **********************************/
#main-content{
    display: flex;
    justify-content: space-between;
}
.recipe-quick-info{
    max-width: 290px;
    margin-right: auto;
    padding: 20px 20px 20px 20px;
    background-color:#F5F5F5;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}
.recipe-quick-info p{
    line-height: 140%;
}
.recipe-quick-info-item{
    margin-bottom: 15px;
}
#main-content h3{
    font-weight: 600;
    font-size: 16px;
    align-self: center;
    margin-bottom: 15px;
}
.user{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 400;
}
.recipe-quick-info img{
    width: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.table{
    display: flex;
    align-items: baseline;
}
.table ul{
    list-style: none;
}
.table ul:first-child{
    margin-right: 10px;
}
.table span{
    font-weight: 400;
}
#main-content img:last-child{
    max-width: 670px;
}
#main-content-2{
    background-color:#FFF;
    display: flex;
    justify-content: space-between;
}
.ingredients{
    max-width: 290px;
    word-wrap: break-word;
    padding: 20px 20px 20px 20px;
}
.instructions{
    max-width: 670px;
    word-wrap: break-word;
    padding: 20px 20px 20px 20px;
}
#main-content-2{
    display: flex;
    padding: 35px 0px 35px 0px;;
    border-style: dashed;
    border-width: thin;
    border-color:#DDD;
}
#main-content-2 h3{
    font-weight: 400;
    font-size: 21px;
    text-align: left;
    margin-bottom: 10px;
}
#main-content-2 ul{
    list-style: none;
    line-height: 175%;
}
#main-content-2 ol{
    line-height: 140%;
    margin-left: 15px;
}
.instructions ol li{
    padding-bottom: 8px;
}
#main-content-2 span{
    font-weight: 600;
}

/*ratings ****************************/
.ratings{
    background-color:firebrick;
    color: #fff;
    padding: 0 0 0 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.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: orangered;
    padding: 10px;
    font-size: 12px;
    display:flex;
    align-items: center;
    flex-direction: column;
}

.ratings-item .ratings-icon:first-of-type{
    margin-right: 5px;
}

/*recommendations ******************************/
#main-content-3{
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 75px 10px 75px 10px;
}
.heading{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 40px 10px;
}
.heading h1{
    font-size: 28px;
    letter-spacing: 15px;
    font-weight: 300;
}
.rec{
    display: flex;
    justify-content: center;
    padding: 10px 10px 10px 10px;
}
.rec-card{
    background-color:#FFF;
    flex-direction: column;
    justify-content: space-between;
    word-wrap: break-word;
    cursor: pointer;
}
.rec-card:not(:first-child){
    margin-left: 20px;
}
.rec-img {
    overflow: hidden;
    height: 165px;
}
.rec-img img{
    max-width: 300px;
}
.rec-card .rec-img img{
    transition: transform 500ms;
    will-change: contents;
}
.rec-card .rec-img img:hover{
    transform: scale(1.1);
}
.rec-item{
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rec-item h3{
    font-size: 16px;
    font-weight: 600;
}
.rec-stars {
    padding-bottom: 15px;
}
.rec-icon{
    width:12px;
}
.rec-desc{
    padding-bottom: 30px;
}
.rec-user{
    max-width: 260px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rec-user img{
    width: 50px;
    border-radius: 50%;
    margin: 5px 0;
}
.rec-user p{
    align-self: center;
    margin-right: auto;
    margin-left: 10px;
}
.rec-user-rating{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #6B8E23;
    color: #FFF;
    border-radius: 5%;
    padding: 5px 5px;
}
.rec-user-rating span{
    font-weight: 600;
    font-size: 16px;
}
.rec-user-rating p{
    font-size: 12px;
    margin-left: 0;
}

/* footer *****************************************************/
.footer{
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: #555;
}
#footer{
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 15px;
    padding-bottom: 21px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
#footer:not(:first-child){
    padding-left: 100px;
}
.footer-logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-right: 70px;
}
.footer-logomark{
    width:100px;
    margin:5px 0;
    padding-bottom: 5px;
} 
.footer-logotype{
    align-self: center;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    font-weight: 500;
    color: #FFF;
}
.footer-info{
    margin-right: auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer-info-item:first-child{
    width: 150px;
}
.footer-info-item{
    display: flex;
    align-items: center;
}
.footer-info-item:not(:last-child){
    padding-bottom: 6px;
}
.footer-icon{
    width:14px;
    filter: invert(1);
}
.footer-icon:first-child{
    align-self: flex-start;
}
.footer span{
    font-weight: 300;
    color:#FFF;
    font-size: 12px;
    padding-left: 10px;
}
.footer-socmed{
    list-style: none;
    display: flex;
}
.footer-socmed li:not(:first-child){
    margin-left: 20px;
}
.footer-icon-socmed{
    width: 32px;
    filter: invert(0.6);
    cursor: pointer;
}
.footer-icon-socmed:hover{
    filter:invert(1);
    width: 36px;
    height: 36px;
}
#subfooter{
    background-color: #333;
    font-weight: 300;
    font-family: 'Open Sans', sans-serif;
    color:#AAA;
    font-size: 12px;
}
.subfooter{
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.subfooter li{
    display: flex;
    align-items: center;
}
.subfooter-icon{
    width:14px;
    filter: invert(0.6);
    margin-right: 5px;
}

/*media queries********************************/
@media only screen and (max-width:360px) {
    .header{
        flex-direction: column;
        align-items: center;
    }
    .org-name{
        margin: 0;
        padding-bottom: 5px;
    }
    .line{
        border-top: 1px solid #EEE;
        width: 100%;
    }
    .navbar{
        max-width: 360px;
    }
    .navbar-item{
        padding: 0 10px;
        font-size: 80%;
    }
    .page-title{
        padding: 20px 20px;
    }
    #page-title{
        max-width: 360px;
    }
    .page-title-recipe p {
        font-size: 80%;
    }
    .page-title-recipe-name p{
        font-size: 80%;
    }
    #main-content{
        flex-direction: column;
        max-width: 360px;
    }
    .recipe-quick-info{
        max-width: 360px;
        order:2;
    }
    #main-content-2{
        flex-direction: column;
        padding: 0;
    }
    .ratings{
        flex-direction: column;
        padding: 0;
    }
    .ratings > * {
        margin-top: 20px;
    }
    .ratings-votes{
        align-self: stretch;
    }
    #main-content-3{
        padding: 0;
    }
    .heading h1{
        padding-top: 15px;
        letter-spacing: 2px;
    }
    .rec{
        flex-direction: column;
    }
    .rec > *:not(last-child){
        margin-bottom: 50px;
    }
    .rec-card:last-of-type{
        margin-bottom: 10px;
    }
    .rec-card{
        max-width: 320px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #footer {
        flex-direction: column;
        align-items: center;
        font-size: 80%;
    }
    .footer-logo{
        padding-right: 0;
    }
    .footer-info{
        margin-right: 0;
        padding: 30px 0;
    }
    .footer-socmed{
        padding-bottom: 15px;
    }
    .subfooter{
        flex-direction: column;
        align-items: center;
        max-width: 360px;
    }
    .subfooter li{
        padding-bottom: 5px;
    }
}