/*

*/

:root {
  --color-blue-main: hsl(227, 100%, 50%, 0.6);
  --color-blue-indigo: #364fc7;
  --color-red-main: #c92a2a;
  --color-red-light: #ffe3e3;
  --color-orange-light: #ffe8cc;
  --color-purple: hsl(270, 73%, 53%);
  --color-green-main: hsl(167, 72%, 60%);
  --color-green-light: hsl(162, 100%, 58%);
  --color-teal-light: #c3fae8;
  --color-gray-dark: #212529;
  --color-tuna: #495057;
  --color-gray-light: #f8f9fa;
  --color-whisper: #eee;
  --color-white-main: #ffffff;
  --color-yellow-5: #fcc419;
  --color-orange-5: #ffa94d;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  overflow-x: hidden;
}

li {
  list-style: none;
  font-size: 1.4rem;
  line-height: 1.5;
}

/*********************/
/*****HEADER**********/
/*********************/

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: var(--color-whisper);
  padding: 0 4.8rem;
}

.logo {
  width: 10rem;
  height: 10rem;
}

.logo-img {
  width: 100%;
  height: auto;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.8rem;
  padding: 1rem;
  color: var(--color-gray-dark);
  cursor: pointer;
  position: relative;
  transition: all cubic-bezier(0, 0.96, 0.58, 1.1) 1s;
}

.main-nav-link:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--color-blue-indigo);
  width: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all cubic-bezier(0, 0.96, 0.58, 1.1) 1s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: var(--color-purple);
}

.main-nav-link:hover::after {
  width: 50%;
  background: linear-gradient(0.25turn, #0037ff, #50e2c3, #8730df);
}
/***************/
/*STICKY NAVBAR*/
/***************/
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
  transition: 0.3s ease;
}

.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: var(--color-gray-dark);
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

.container {
  background: url(../images/ffflux.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-bottom-right-radius: 100px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  padding: 15rem;
  gap: 5rem;
}
.header-primary-hero,
.header-primary {
  font-size: 6.4rem;
  margin-bottom: 4rem;
  font-weight: 700;
  color: var(--color-gray-dark);
}

.header-secondary {
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--color-gray-dark);
}

.prim-line {
  background-image: url(../images/llline.svg);
  background-repeat: no-repeat;
}

.header-description {
  font-size: 2.2rem;
  line-height: 1.1;
  padding-right: 15rem;
  color: var(--color-tuna);
}

.form-box {
  background-color: var(--color-white-main);
  padding: 3rem 10rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.form-title {
  margin-bottom: 3rem;
}
.title {
  font-size: 2.8rem;
  color: var(--color-gray-dark);
  font-weight: 400;
}

.inputs {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.group-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

label {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--color-tuna);
}

input {
  font-size: 1.5rem;
  font-family: inherit;
  color: inherit;
  padding: 1.5rem 2rem;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

input:focus {
  outline: none;
}

.btn-cta {
  width: 100%;
  outline: none;
  padding: 1rem 3rem;
  border-radius: 9px;
  border: none;
  background-image: linear-gradient(
    to right,
    #364fc7 0%,
    #50e2c3 51%,
    #364fc7 100%
  );
  background-size: 200% auto;
  color: var(--color-whisper);

  font-size: 1.8rem;

  cursor: pointer;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);

  transition: 0.5s;
}

.btn-cta:hover {
  background-position: right center;
}

.bmi-result {
  margin-top: 3rem;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.animated {
  animation: slide-in 2s ease 0s 1 normal forwards;
}

@keyframes slide-in {
  0% {
    transform: scale(0.5);
    transform-origin: 50% 100%;
  }

  100% {
    transform: scale(1);
    transform-origin: 50% 100%;
  }
}

.bmi-range {
  font-size: 1.8rem;
  color: var(--color-tuna);
  font-weight: 400;
}

/*************/
/*****ABOUT***/
/*************/

.section-about,
.section-recipes {
  padding: 9rem 15rem;
}

.about-box,
.recipes-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10rem;
}

.about-img {
  width: 100%;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

/*******************/
/********CARDS******/
/*******************/
.container-details {
  padding: 0 15rem;
  background-color: rgba(0, 55, 255, 0.02);
  border-top-right-radius: 10rem;
  border-bottom-right-radius: 10rem;
}

.cards {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card {
  padding: 5rem;
  width: 40rem;
}

.card-icon {
  padding: 1rem;
  width: 5rem;
  height: 5rem;
  border-radius: 100px;
  margin-bottom: 3rem;
}

.food-icon {
  background-color: var(--color-red-light);
}

.dumbbell-icon {
  background-color: var(--color-orange-light);
}

.sleep-icon {
  background-color: var(--color-teal-light);
}

.heading-tertiary {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.card-description {
  font-size: 1.6rem;
  line-height: 1.1;

  color: var(--color-tuna);
}

/************************/
/*****SEARCH SECTION*****/
/************************/

.btn-info:link,
.btn-info:visited {
  font-size: 1.6rem;
  margin-top: 3rem;
  display: inline-block;
  text-decoration: none;
  padding: 1.5rem 2rem;
  background-color: var(--color-blue-main);
  border: 2px solid transparent;
  border-radius: 1rem;
  color: var(--color-white-main);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in;
}

.btn-info:hover,
.btn-info:active {
  color: var(--color-blue-main);
  background-color: transparent;
  border: 2px solid var(--color-blue-main);
}

.section-search {
  padding: 10rem 25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgba(0, 55, 255, 0.02);
}

.search-box {
  margin-top: 5rem;
  margin-bottom: 3rem;
  display: flex;
  width: 100%;
  justify-content: center;
}

.ingredients-search {
  width: 40rem;
}
.search-button:link,
.search-button:visited {
  margin-left: 1rem;
  padding: 1.5rem 2rem;
  background-color: var(--color-blue-main);
  border: 2px solid transparent;
  border-radius: 1rem;
  color: var(--color-white-main);
  font-size: 1.6rem;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in;
}

.search-button:hover,
.search-button:active {
  color: var(--color-blue-main);
  background-color: transparent;
  border: 2px solid var(--color-blue-main);
}

.ingredients-items {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 50rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.icon-close {
  font-weight: 400;
}

.ingredients-title {
  font-size: 1.8rem;
  color: var(--color-tuna);
  font-weight: 400;
  padding: 1.5rem 0;
}

.ingredient-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--color-tuna);
  color: var(--color-tuna);
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.ingredient-btn:hover {
  border: 2px solid var(--color-blue-main);
  color: var(--color-blue-main);
}
.meal-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.notFound {
  font-size: 3rem;
  grid-template-columns: 1fr;
  color: var(--color-red-main);
}

.meal-item {
  text-align: center;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  overflow: hidden;
}
.meal-img {
  width: 100%;
}

.meal-title {
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

.recipe-btn:link,
.recipe-btn:visited {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  border: 2px solid transparent;
  border-radius: 1rem;
  background-color: var(--color-blue-main);
  color: var(--color-white-main);
  transition: 0.3s ease-in;
}

.recipe-btn:hover,
.recipe-btn:active {
  color: var(--color-blue-main);
  background-color: var(--color-white-main);
  border: 2px solid var(--color-blue-main);
}

/***************/
/*POPUP DETAILS*/
/***************/

.recipe-details {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  background: rgba(0, 0, 0, 0.9);
  color: var(--color-whisper);

  height: 80%;
  overflow-y: scroll;
  padding: 3rem 5rem;
  text-align: center;
  border-radius: 1rem;

  visibility: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  transition: transform 0.5s, top 0.5s;
}

.recipe-details::-webkit-scrollbar {
  width: 1rem;
}

.openInstructions {
  visibility: visible;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
}
.recipe-details-box {
  margin: 2rem;
  text-align: left;
}

.recipe-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.6rem;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-whisper);
  background: transparent;
}

.recipe-title {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-align: left;
}

.recipe-category {
  background: var(--color-white-main);
  color: var(--color-blue-indigo);
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.instructions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}
.instructions-title {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--color-purple);
  font-weight: 700;
  margin-bottom: 2rem;
}

.ingredient-box {
  border-right: 1px solid var(--color-whisper);
  padding-right: 3rem;
}
.ingredient-list {
  width: 15rem;
}

.recipe-description {
  display: inline-block;
  font-size: 1.6rem;

  text-align: left;
}

.recipe-image {
  margin-bottom: 2rem;
}

.recipe-details-img {
  width: 25rem;

  display: block;
  margin: 0 auto;
  border-radius: 1rem;
}

.recipe-video {
  margin-top: 3rem;
}

.video-link:link,
.video-link:visited {
  text-decoration: none;
  font-size: 2rem;
  padding: 1rem;
  color: var(--color-blue-indigo);
  background-color: var(--color-whisper);
  border-radius: 1rem;
  transition: all 0.2s ease-in;
}

.video-link:hover,
.video-link:active {
  color: var(--color-whisper);
  background-color: var(--color-blue-indigo);
}

/*****************/
/*CONTACT SECTION*/
/*****************/

.section-contact {
  padding: 12rem 0 12rem 0;
  background: #0037ff66;
}

.contact-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.contact-box {
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  background-color: var(--color-whisper);
}

.contact-title {
  font-size: 3.6rem;
  margin-bottom: 2rem;
  color: var(--color-gray-dark);
}

.contact-text-box {
  padding: 4.8rem;
  background-image: url(/images/llline.svg);
  background-repeat: no-repeat;
  background-position: center;
}

.contact-text {
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--color-tuna);
  margin-bottom: 4rem;
}

.contact-img-box {
  background-image: url(/images/nutritionist.jpg);
  background-size: cover;
  background-position: center;
}

.cta-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.input-details {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}

.input-name {
  width: 100%;
}

.input-email {
  width: 100%;
}
.msg-text {
  width: 100%;
  height: 10rem;
  border: none;
  padding: 1.5rem;
  border-radius: 1rem;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 400;

  outline: none;
  resize: none;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: 0 0rem 1rem rgba(0, 0, 0, 0.1);
}

.msg-text::placeholder {
  color: #bbb;
}

.btn--form {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  width: 10rem;
  padding: 1rem 0;
  border: 2px solid transparent;
  background: var(--color-blue-main);
  color: var(--color-whisper);
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 0rem 1rem rgba(0, 0, 0, 0.1);
  transition: 0.3s ease-in;
}

.btn--form:hover {
  background: var(--color-whisper);
  color: var(--color-blue-main);
  border: 2px solid var(--color-blue-main);
}
.cta-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.cta-form input,
.cta-form select {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #ffffff;
  border-radius: 9px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-form input::placeholder {
  color: #aaa;
}

/****************/
/*FOOTER SECTION*/
/****************/

.footer-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 4rem;
}

.header-footer {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-gray-dark);
  margin-bottom: 2rem;
}
.social-links {
  display: flex;
  gap: 2rem;
}

.social-link:link,
.social-link:visited {
  text-decoration: none;
}

.social-icon {
  width: 3.4rem;
  height: 3.4rem;
  color: var(--color-blue-main);
  transition: 0.5s;
}

.social-link:link,
.social-icon:hover {
  transform: rotateY(360deg);
  color: var(--color-purple);
}
