/* || VARIABLES
***************/
/* || FONTS
***********/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Carter+One&display=swap");
/* || GENERAL
*************/
body {
  background-image: url("../../images/nothin-but-recipes/lukas-blazek-EWDvHNNfUmQ-unsplash-tan.jpg");
  padding: 35px 30px;
  color: #392111;
}

section {
  max-width: 900px;
  margin: 0 auto;
}

.hide {
  display: none !important;
}

* {
  font-family: Montserrat, Helvetica, sans-serif;
}

h1 {
  font-size: 2em;
  font-weight: 600;
  margin: 0 0 30px;
  font-family: "Carter One", Montserrat, Helvetica, sans-serif;
}

h2, h3 {
  margin: 0;
}

p {
  font-size: 1.5em;
  margin: 0;
}

button, .button {
  border: none;
  background-color: inherit;
  padding: 0;
  border-radius: 10px;
}
button:focus-within, .button:focus-within {
  box-shadow: inset 0 0 1pt 2pt #7CC7FA;
}
button:focus, .button:focus {
  outline: none;
}

.item {
  background-color: #FFF;
  border-radius: 20px;
  -webkit-box-shadow: 2px 5px 7px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 2px 5px 7px 0px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}
.item h2 {
  padding: 15px 20px;
  font-size: 1.5em;
  font-weight: 500;
}
.item h3 {
  padding: 15px 20px;
  font-size: 1.3em;
  font-weight: 500;
}

.scroll {
  direction: rtl;
  overflow-y: scroll;
  overflow-x: visible;
  padding-left: 15px;
  margin-left: -15px;
}
.scroll::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
  height: 100%;
}
.scroll::-webkit-scrollbar-track {
  background: #EDE7D9;
  border-radius: 50px;
}
.scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #5D4738;
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 2.6875em;
  }
  button, .button {
    border-radius: 100px;
  }
  .item {
    border-radius: 50px;
  }
}
/* || ACTIVE FILTERS
********************/
#filters {
  display: flex;
  flex-direction: row;
  justify-content: left;
  flex-wrap: wrap;
  margin: 15px 0 20px;
}
#filters button {
  margin: 0 10px 11px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 50px;
  padding: 7px 14px;
  border: 2px solid #5D4738;
  -webkit-box-shadow: 2px 5px 7px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 2px 5px 7px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}
#filters button:focus {
  outline: none;
  box-shadow: 0 0 0pt 2pt #7CC7FA;
}
#filters button.active {
  background-color: #5D4738;
  color: #FFF;
}
#filters button.active:hover {
  background-color: #392111;
  border-color: #392111;
  color: #FFF;
}
#filters button p {
  font-weight: 600;
  font-size: 0.95em;
  text-transform: uppercase;
}
#filters button span {
  font-size: 0.95em;
  padding-right: 5px;
}
#filters button:hover {
  color: #392111;
  background-color: #EDE7D9;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.02s;
}
#filters button:hover .fas {
  color: #D32020;
}

@media screen and (min-width: 768px) {
  #filters {
    display: flex;
  }
}
/* || RECIPE ITEM
*****************/
#recipe-home_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
#recipe-home_head h1 {
  margin: 0;
}
#recipe-home_head div {
  display: flex;
  align-items: center;
}
#recipe-home_head div button {
  font-size: 1em;
  color: #FFF;
  background-color: #5D4738;
  height: 35px;
  width: 35px;
  margin-right: 10px;
  border-radius: 100px;
  transition: all 0.1s ease;
}
#recipe-home_head div button:hover, #recipe-home_head div button:active {
  background-color: #392111;
}
#recipe-home_head div a {
  width: 45px;
  opacity: 0.7;
  transition: all 0.2s ease;
}
#recipe-home_head div a:hover {
  transform: scale(1.1) rotate(-10deg);
  opacity: 1;
}

#recipe-home .scroll {
  padding-right: 6px;
}

#recipe-list {
  direction: ltr;
  margin-top: 10px;
}

.recipe-item {
  margin: 0 6px 30px 0;
}

.recipe-item:last-child {
  margin-bottom: 10px;
}

.recipe-item_favorite {
  height: 45px;
  width: 45px;
  margin: 0 auto -45px;
  z-index: 20;
  display: block;
  border-radius: 5px;
  position: relative;
}
.recipe-item_favorite button {
  background: #FFF url("../../images/nothin-but-recipes/icon-star-outline.png") center no-repeat;
  background-size: 20px;
  width: 100%;
  height: 100%;
  margin-top: 10px;
}
.recipe-item_favorite.active button {
  background: #FFF url("../../images/nothin-but-recipes/icon-star-red.png") center no-repeat;
  background-size: 20px;
}
.recipe-item_favorite.active button:hover {
  background: #FFF url("../../images/nothin-but-recipes/icon-star-dark.png") center no-repeat;
  background-size: 20px;
}
.recipe-item_favorite:hover button {
  background: #FFF url("../../images/nothin-but-recipes/icon-star-tan.png") center no-repeat;
  background-size: 20px;
}

.favorite .recipe-item_favorite {
  background: #FFF url("../../images/nothin-but-recipes/icon-star-red.png") center no-repeat;
  background-size: 20px;
}
.favorite .recipe-item_favorite:hover {
  background: #FFF url("../../images/nothin-but-recipes/icon-star-dark.png") center no-repeat;
  background-size: 20px;
}

.recipe-item_select {
  width: 100%;
  background-color: #FFF;
  border-radius: 20px;
  padding: 60px 20px 20px;
  z-index: 10;
  position: relative;
}
.recipe-item_select:hover .recipe-item_arrow, .recipe-item_select:focus-within .recipe-item_arrow {
  color: #D32020;
  transition: color 0.1s;
}

h2.recipe-item_name {
  padding-top: 0;
}

.recipe_time {
  display: flex;
  justify-content: center;
}
.recipe_time img {
  width: 13px;
  height: 13px;
  margin: 3px 5px 0 0;
}
.recipe_time p {
  font-size: 1.15em;
  color: #818181;
}

.recipe-item_arrow {
  font-size: 1.7em;
  padding: 15px 0 0;
  color: #5D4738;
}

@media screen and (min-width: 768px) {
  #recipe-home_head button {
    display: none;
  }
  .recipe-item {
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
    margin: 0 0 20px 0;
    width: 100%;
  }
  .recipe-item:hover {
    width: 101%;
    margin-left: -5px;
  }
  .recipe-item_favorite {
    height: 45px;
    width: 45px;
    border-radius: 50px 0 0 50px;
    margin: 0 auto;
    padding-left: 10px;
  }
  .recipe-item_favorite button {
    margin: 0;
    background-color: initial;
  }
  .recipe-item_select {
    display: flex;
    align-items: center;
    padding: 0 20px 0 0;
    margin: 0 0 0;
    z-index: 10;
    border-radius: 0 50px 50px 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .recipe-item_select .recipe-item_name {
    padding: 16px 0;
    width: 100%;
    text-align: left;
  }
  .recipe-item_select .recipe_time {
    min-width: 150px;
    justify-content: flex-end;
    margin-right: 15px;
  }
  .recipe-item_select .recipe-item_arrow {
    padding: 0;
  }
}
/* || RECIPE INFO
*****************/
.recipe-head {
  padding-bottom: 30px;
}

.recipe-head_block {
  display: flex;
  flex-flow: column;
}
.recipe-head_block h1 {
  margin: 0 15px 0 0;
  max-width: 555px;
  font-size: 1.5em;
  line-height: 1.2;
}
.recipe-head_block .recipe-head_block_nav {
  margin-bottom: 20px;
}
.recipe-head_block #start {
  background-color: #D32020;
  padding: 8px 15px;
  color: #FFF;
  border-radius: 100px;
  text-transform: uppercase;
  font-weight: 800;
  margin-right: 10px;
  transition: all 0.1s ease;
}
.recipe-head_block #start:hover {
  background-color: #901818;
  padding: 8px 19px;
  margin-right: 6px;
}
.recipe-head_block .home {
  color: #FFF;
  background-color: #5D4738;
  border-radius: 100px;
  padding: 8px 8px 8px 9px;
  text-align: center;
  transition: all 0.08s ease-out;
}
.recipe-head_block .home:hover {
  background-color: #392111;
}

#recipe-info {
  display: flex;
  margin-top: 15px;
}
#recipe-info p {
  font-size: 16px;
}
#recipe-info .recipe-source {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid #5D4738;
  font-weight: 800;
  max-width: 118px;
  min-width: 55px;
}
#recipe-info .recipe-source a {
  color: #D32020;
}
#recipe-info .recipe-source a:hover {
  color: #901818;
}
#recipe-info .recipe_time img {
  width: 15px;
  margin-right: 7px;
}
#recipe-info .recipe-categories {
  display: none;
  margin-left: 15px;
}
#recipe-info .recipe-categories p {
  padding: 0 15px;
  border-left: 1px solid #5D4738;
  color: #818181;
}

#recipe-body .recipe-ingredients h2 {
  font-size: 1.1em;
  direction: ltr;
}
#recipe-body .recipe-ingredients .item {
  margin-right: 6px;
  border-radius: 10px;
}
#recipe-body .recipe-ingredients .additional {
  color: #AAA;
  font-size: 0.8em;
}
#recipe-body .recipe-steps {
  margin-top: 30px;
  display: none;
}
#recipe-body .recipe-steps p {
  font-size: 16px;
  margin-top: 10px;
}

@media screen and (min-width: 768px) {
  .recipe-head_block {
    align-items: center;
    flex-flow: row;
    justify-content: space-between;
  }
  .recipe-head_block h1 {
    font-size: 2.6875em;
  }
  .recipe-head_block .recipe-head_block_nav {
    order: 2;
    margin: 0;
  }
  #recipe-info .recipe-categories {
    display: flex;
  }
  #recipe-body {
    display: flex;
  }
  #recipe-body .recipe-ingredients {
    width: 75%;
  }
  #recipe-body .recipe-ingredients .item {
    border-radius: 100px;
  }
  #recipe-body .recipe-steps {
    width: 25%;
    margin: 0 0 0 30px;
    display: block;
  }
}
/* || RECIPE START
******************/
#ingredients {
  background-color: #D32020;
  padding: 10px 11px 10px 11px;
  margin-right: 5px;
  border-radius: 100px;
  color: #FFF;
  transition: all 0.1s ease;
}
#ingredients:hover {
  background-color: #901818;
}

#recipe-active h2 {
  margin-bottom: 15px;
  font-size: 1.1em;
}
#recipe-active .item {
  display: flex;
  align-items: center;
  border-radius: 10px;
}
#recipe-active .item span {
  margin-right: 10px;
  color: #999;
  font-size: 0.9em;
}
#recipe-active .item button {
  width: 100%;
  transition: all 0.15s ease;
  background-color: initial;
}
#recipe-active .item button.complete {
  color: #BBB;
}
#recipe-active .item button.complete span {
  color: #6BD985;
}
#recipe-active .recipe-active_item {
  direction: ltr;
  margin-bottom: 35px;
}
#recipe-active .recipe-active_item h3 {
  text-align: left;
  display: flex;
  align-items: baseline;
  line-height: 1.6;
}
#recipe-active .recipe-active_item h3 span {
  display: block;
}

@media screen and (min-width: 768px) {
  #recipe-active .scroll {
    padding-right: 7px;
  }
  #recipe-active .recipe-active_item .item {
    border-radius: 100px;
    width: 100%;
    transition: all 0.1s ease;
  }
  #recipe-active .recipe-active_item .item:hover {
    width: 101%;
    margin-left: -5px;
  }
}
