* {
    margin: 0;
    padding: 0; 
}
  
*,
*::before,
*::after {
  box-sizing: inherit; 
}

html {
  box-sizing: border-box;
  font-size: 62.5%; 
}
@media only screen and (max-width: 68.75em) {
  html {
    font-size: 50%; 
  } 
}

body {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #FFF;
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: calc(100vh - 2 * 4vw);
  position: relative;
}
  
.container {
  max-width: 120rem;
  margin: 4vw auto;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2rem 6rem 0.5rem rgba(101, 90, 86, 0.2);
  display: grid;
  grid-template-rows: 12rem minmax(100rem, auto);
  grid-template-columns: 1.1fr 2fr 1.1fr;
  grid-template-areas: "head head head" "list recipe shopping";
}

button {
  outline: none;
  border: none;
  cursor: pointer;
}

@media only screen and (max-width: 68.75em) {
  .container {
    width: 100%;
    margin: 0;
    border-radius: 0; 
  } 
}
  
.btn, .btn-small, .btn-small:link, .btn-small:visited {
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982);
  border-radius: 10rem;
  border: none;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all .2s; 
}
.btn:hover, .btn-small:hover {
  transform: scale(1.05); 
}
.btn:focus, .btn-small:focus {
  outline: none; 
}
.btn > *:first-child, .btn-small > *:first-child {
  margin-right: 1rem; 
}
  
.btn {
  padding: 1.3rem 3rem;
  font-size: 1.4rem; 
}
.btn svg {
  height: 2.25rem;
  width: 2.25rem;
  fill: currentColor; 
}
  
.btn-small, .btn-small:link, .btn-small:visited {
  font-size: 1.3rem;
  padding: 1rem 1.75rem;
  text-decoration: none; 
}
.btn-small svg, .btn-small:link svg, .btn-small:visited svg {
  height: 1.5rem;
  width: 1.5rem;
  fill: currentColor; 
}
  
.btn-inline {
  color: #F59A83;
  font-size: 1.2rem;
  border: none;
  background-color: #F9F5F3;
  padding: .8rem 1.2rem;
  border-radius: 10rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all .2s; 
}
.btn-inline svg {
  height: 1.5rem;
  width: 1.5rem;
  fill: currentColor;
  margin: 0 .2rem; 
}
.btn-inline span {
  margin: 0 .4rem; 
}
.btn-inline:hover {
  color: #F48982;
  background-color: #F2EFEE; 
}
.btn-inline:focus {
  outline: none; 
}
  
.btn-tiny {
  height: 1.75rem;
  width: 1.75rem;
  border: none;
  background: none;
  cursor: pointer; 
}
.btn-tiny svg {
  height: 100%;
  width: 100%;
  fill: #F59A83;
  transition: all .3s; 
}
.btn-tiny:focus {
  outline: none; 
}
.btn-tiny:hover svg {
  fill: #F48982;
  transform: translateY(-1px); 
}
.btn-tiny:active svg {
  fill: #F48982;
  transform: translateY(0); 
}
.btn-tiny:not(:last-child) {
  margin-right: .3rem; 
}
  
.heading-2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #F59A83;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-align: center;
  transform: skewY(-3deg); 
}
  
.copyright {
  color: #968B87;
  font-size: 1.2rem;
  margin-top: auto; 
}
  
.link:link,
.link:visited {
  color: #968B87; 
}
  
.loader {
  width: 100%;
  margin: 5rem auto;
  text-align: center; 
}
.loader svg {
  height: 5.5rem;
  width: 5.5rem;
  fill: #FFF;
  transform-origin: 44% 50%;
  animation: rotate 1.5s infinite linear; 
}
  
@keyframes rotate {
  0% {
    transform: rotate(0); 
  }
  100% {
    transform: rotate(360deg); 
  } 
}

.header {
  grid-area: head;
  background-color: #F9F5F3;
  padding: 0 10px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px
}

.header-bottom {
  display: flex;
  text-align: center;
  margin-top: -5px;
}

.header-bottom button {
  font-size: 1rem;
  text-transform: capitalize;
  padding: 7px;
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982);
  border-radius: 5px;
}

.header-logo {
  margin-left: 4rem;
  height: 4.5rem;
  display: block; 
}
  
.heart {
    font-size: 50px;
    cursor: pointer;
}
@keyframes heart {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.heart.active {
  animation: heart 1s linear 0s;
}

.search {
  background-color: #fff;
  border-radius: 10rem;
  display: flex;
  align-items: center;
  padding-left: 3rem;
  transition: all .3s; 
}
.search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 0.7rem 3rem rgba(101, 90, 86, 0.08); 
}
.search-field {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  font-size: 1.7rem;
  width: 30rem; 
}
.search-field:focus {
  outline: none; 
}
.search-field::placeholder {
  color: #DAD0CC; 
}


.search-results {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
}

.results {
  list-style: none;
  margin-bottom: 2rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 3.5rem;
}

.pagination::after {
  content: '';
  display: table;
  clear: both;
}

.preview-link:link, .preview-link:visited {
  display: flex;
  align-items: center;
  padding: 1.5rem 3.25rem;
  transition: all 0.3s;
  border-right: 1px solid #fff;
  text-decoration: none;
}

.preview-link:hover {
  background-color: #f9f5f3;
  transform: translateY(-2px);
}

.preview-link:active {
  background-color: #f9f5f3;
}

.preview-fig {
  flex: 0 0 5.8rem;
  border-radius: 50%;
  overflow: hidden;
  height: 5.8rem;
  margin-right: 2rem;
  position: relative;
  backface-visibility: hidden;
}

.preview-fig::before {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right bottom, #f9f5f3, #f2efee);
  opacity: 0.4;
}

.preview-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.preview-data {
  display: grid;
  width: 100%;
  grid-template-columns: 2fr 1fr;
  row-gap: 0.1rem;
  align-items: center;
}

.preview-title {
  grid-column: 1/-1;
  font-size: 1.45rem;
  color: #f38e82;
  text-transform: uppercase;
  font-weight: 600;
  text-overflow: ellipsis;
  max-width: 25rem;
  white-space: nowrap;
  overflow: hidden;
}

.preview-publisher {
  font-size: 1.15rem;
  color: #918581;
  text-transform: uppercase;
  font-weight: 600;
}

.preview-user-generated {
  background-color: darken(#f2efee, 2%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: 10rem;
  margin-left: auto;
  margin-right: 1.75rem;
}

.preview-user-generated svg {
  height: 1.2rem;
  width: 1.2rem;
  fill: #f38e82;
}
  
.results, .likes {
  padding: 3rem 0; 
}
.results-list, .likes-list {
  list-style: none; 
}
.results-link:link, .results-link:visited, .likes-link:link, .likes-link:visited {
  display: flex;
  align-items: center;
  padding: 1.5rem 3rem;
  transition: all .3s;
  border-right: 1px solid #fff;
  text-decoration: none; 
}
.results-link:hover, .likes-link:hover {
  background-color: #F9F5F3;
  transform: translateY(-2px); 
}
.results-link-active, .likes-link-active {
  background-color: #F9F5F3; 
}
.results-fig, .likes-fig {
  flex: 0 0 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  height: 5.5rem;
  margin-right: 2rem;
  position: relative;
  backface-visibility: hidden; 
}
.results-fig::before, .likes-fig::before {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982);
  opacity: .4; 
}
.results-fig img, .likes-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s; 
}
.results-name, .likes-name {
  font-size: 1.3rem;
  color: #F59A83;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .3rem; 
}
.results-author, .likes-author {
  font-size: 1.1rem;
  color: #968B87;
  text-transform: uppercase;
  font-weight: 600; 
}
.results-pages, .likes-pages {
  margin-top: 3rem;
  padding: 0 3rem; 
}
.results-pages::after, .likes-pages::after {
  content: "";
  display: table;
  clear: both; 
}
.results-btn-prev, .likes-btn-prev {
  float: left;
  flex-direction: row-reverse; 
}
.results-btn-next, .likes-btn-next {
  float: right; 
}

.recipe {
background-color: #F9F5F3;
border-top: 1px solid #fff; 
}
.recipe-fig {
  height: 30rem;
  position: relative;
  transform: scale(1.04) translateY(-1px);
  transform-origin: top; 
}
.recipe-fig::before {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982);
  opacity: .6; 
}
.recipe-img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover; 
}
.recipe-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 20%) skewY(-6deg);
  color: #fff;
  font-weight: 700;
  font-size: 2.75rem;
  text-transform: uppercase;
  width: 70%;
  line-height: 1.95;
  text-align: center; 
}
.recipe-title span {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 1.3rem 2rem;
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982); 
}
.recipe-details {
  display: flex;
  align-items: center;
  padding: 8rem 3rem 3rem 3rem; 
}
.recipe-info {
  font-size: 1.5rem;
  text-transform: uppercase;
  display: flex;
  align-items: center; 
}
.recipe-info:not(:last-child) {
  margin-right: 4rem; 
}
.recipe-info-icon {
  height: 2rem;
  width: 2rem;
  fill: #F59A83;
  margin-right: 1rem; 
}
.recipe-info-data {
  margin-right: .4rem;
  font-weight: 600; 
}
.recipe-info-buttons {
  display: flex;
  margin-left: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  transition: all .4s; 
}
.recipe:hover .recipe-info-buttons {
  visibility: visible;
  opacity: 1;
  transform: translateY(0); 
}
.recipe-love {
  background-image: linear-gradient(to right bottom, #FBDB89, #F48982);
  color: #FFF;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  height: 4.5rem;
  width: 10rem;
  margin-left: auto;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center; 
}
.recipe-love:hover {
  transform: scale(1.07); 
}
.recipe-love:focus {
  outline: none; 
}
.recipe-love svg {
  height: 2.75rem;
  width: 2.75rem;
  fill: #fff; 
}
.recipe-ingredients {
  padding: 4rem 5rem;
  font-size: 1.5rem;
  line-height: 1.4;
  background-color: #F2EFEE;
  display: flex;
  flex-direction: column;
  align-items: center; 
}
.recipe-ingredient-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 1.5rem;
  grid-row-gap: 2.5rem;
  list-style: none;
  margin-bottom: 3rem; 
}
.recipe-item {
  display: flex; 
}
.recipe-icon {
  height: 1.8rem;
  width: 1.8rem;
  fill: #F59A83;
  border: 1px solid #F59A83;
  border-radius: 50%;
  padding: 2px;
  margin-right: 1rem;
  flex: 0 0 auto;
  margin-top: .1rem; 
}
.recipe-count {
  margin-right: .5rem;
  flex: 0 0 auto; 
}
.recipe-directions {
  padding: 4rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center; 
}
.recipe-directions-text {
  font-size: 1.5rem;
  text-align: center;
  width: 90%;
  margin-bottom: 3rem;
  color: #968B87; 
}
.recipe-by {
  font-weight: 700; 
}
  
.shopping {
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column; 
}
.shopping-list {
  list-style: none;
  max-height: 77rem;
  overflow: scroll; 
}
.shopping-item {
  display: flex;
  align-items: flex-start;
  padding: 1.3rem 0;
  border-bottom: 1px solid #F2EFEE;
  position: relative; 
}
.shopping-count {
  flex: 0 0 7.5rem;
  padding: .4rem .5rem;
  border: 1px solid #F2EFEE;
  border-radius: 3px;
  margin-right: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between; 
}
.shopping-count input {
  color: inherit;
  font-family: inherit;
  font-size: 1.2rem;
  text-align: center;
  border: none;
  width: 3.7rem;
  border-radius: 3px; 
}
.shopping-count input:focus {
  outline: none;
  background-color: #F2EFEE; 
}
.shopping-count p {
  font-size: 1.2rem; 
}
.shopping-description {
  flex: 1;
  font-size: 1.3rem;
  margin-top: .4rem;
  margin-right: 1.5rem; 
}
.shopping-delete {
  margin-top: .5rem;
  position: absolute;
  right: 0;
  background-image: linear-gradient(to right, transparent 0%, #fff 40%, #fff 100%);
  width: 3.75rem;
  padding-left: 2rem;
  visibility: hidden;
  opacity: 0;
  transition: all .5s; 
}
.shopping-item:hover .shopping-delete {
  opacity: 1;
  visibility: visible; 
}

.cart {
  width: 300px;
  height: 250px;
  border: 1px solid #000;
  overflow: auto;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #FEFEFE;
  padding: 10px;
  opacity: 0;
  transition: 300ms;
  pointer-events: none;
}

.cart-add {
  font-size: 1.3rem;
}

.cart.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  z-index: 100;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  color: #000;
  margin-bottom: 5px;
}

.cart-item img {
  width: 80px;
  border-radius: 10px;
}

.item-title {
  font-size: 1rem;
  margin: 0
}

.remove {
  cursor: pointer;
  font-size: 2rem;
}

.loader {
  margin: 20px auto;
  border: 16px solid #ccc;
  width: 100px;
  height: 100px;
  border-top-color: #F59A83;
  border-bottom-color: #F59A83;
  border-radius: 50%;
  animation: spin 4s linear infinite;
  -webkit-animation: spin 4s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none;
}

.error {
  font-size: 1.5rem;
  text-align: center;
}

.modal {
  position: absolute;
  top: 310px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 90vh;
  text-align: center;
  background-color: #FFF;
  padding: 3rem 6rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.recipe-con .recipe-details {
  padding: 0;
}

.recipe-con .recipe-directions {
  width: 95%;
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.recipe-image img {
  max-width: 100%;
  height: 200px;
}
/*# sourceMappingURL=index.fc33897e.css.map */
