* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.html {
  scroll-behavior: smooth;
}

input,
textarea,
body {
  font-family: var(--body-font);
  font-size: var(--h3-font-size);  
  overflow-x: hidden;
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  margin: 0;
  padding: 3rem 0 0 3rem;
  width: 100%;
  z-index: -10;
}

input,
textarea,
button {
  outline: none;
  border: none;
}

h1,
h2,
h3 {
  color: var(--title-color);
}

ul {
  list-style: none;
}

li {
  padding-left: 20px;
}

a {
  color: orangered;
  text-decoration: none;
}

section a:visited,
p a:visited,
div a:visited {
  color: orangered;
}

img {
  display: block;
}
/*============ REUSABLE CSS CLASSES ============*/
.container {
  max-width: 75rem;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
}

.section__title {
  color: var(--first-color-alt);
  font-family: "Vidaloka", sans-serif;
}
/*============ HEADER & NAV ============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--first-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  border-bottom: 0.1px solid var(--first-color-alt);
}

.header a {
  color: var(--text-color) !important;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 0.6rem;
  margin-right: 1rem;
}

.nav__logo {
  font-family: "Vidaloka", sans-serif;
  font-size: x-large;
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  padding: 0.3rem 0.3rem 0.3rem 0.3rem;
  margin-left: 1rem;
  border-radius: 0.2rem;
  transition: box-shadow 0.6s, background-color 0.4s;
}

.nav__logo:hover {
  box-shadow: 0 8px 24px hsla(var(--hue), 10%, 10%, 0.25);
  outline: 1rem;
}

.nav__logo span {
  color: hsl(32, 27%, 45%);
}

.nav__header {
  display: flex;
  flex-direction: row;
  row-gap: 2rem;
  margin-left: 7rem;
}

.nav__link {
  color: hsl(32, 27%, 45%);
  font-weight: var(--font-semi-bold);
  font-size: var(--h3-font-size);
  transition: color 0.4s;
}

.nav__link:hover {
  color: orangered !important;
}

.nav__item:hover {
  color: var(--body-color);
}

.active-link {
  color: var(--first-color-alt);
}

.search-container {
  display: flex;
  margin-left: 1rem;
}

.nav__social-link {
  display: flex;
  background-color: var(--first-color-alt);
  padding: 0.5rem;
  color: var(--body-color);
  font-size: 1.4rem;
  border-radius: 0.4rem;
  transition: transform 0.3s, background-color 0.8s;
}

.nav__social-link:hover {
  transform: translateX(0.3rem);
  background-color: hsl(0, 90%, 45%);
}

.nav__home-link {
  display: flex;
  background-color: var(--first-color-alt);
  padding: 0.5rem;
  margin-left: .5rem;
  color: var(--body-color);
  font-size: 1.4rem;
  border-radius: 0.4rem;
  transition: transform 0.3s, background-color 0.8s;
}

.search-input {
  padding: 0.5rem;
  width: 12rem;
}

.search-button {
  padding: 0.5rem 1rem;
  background-color: var(--first-color-alt);
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  color: hsla(var(--first-color), 100%, 40%, 0.25);
  cursor: pointer;
}

.search-button:hover {
  background-color: hsl(32, 27%, 38%);
}

/*============ HOME ============*/
.home {
  background-color: var(--body-color);
}

.home__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  justify-items: center;
  align-items: center;
  max-width: 1300px;
  position: relative;
}

.home__content {
  display: grid;
  row-gap: 2rem;
}

.home__data {
  margin: 2rem 0 0 0;
  text-align: center;
}

.home__subtitle {
  font-size: var(--bigger-font-size);
}

.home__subtitle span,
.home__title {
  color: var(--first-color-alt);
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  font-family: "Vidaloka", sans-serif;
  padding-bottom: 0.5rem;
}

.home__description {
  margin-block: 1rem 1.5rem;
  width: 20rem;
}

.profile__img {
  border-radius: 50%;
  overflow: hidden;
  transform: scale(0.8);
  filter: brightness(115%);
}

.profile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% 60%;
  transform: scale(1.07);
}

.recipe__vid {
  padding: 4rem 4rem 2rem 4rem;
  align-items: center;
}

.recipe__vid iframe {
  border-radius: 1rem;
  width: 100%;
  max-width: 70rem;
}

.recipe__data {
  padding: 0 4rem 2rem 4rem;
}

h3 .ingredient {
  display: inline-block;
  text-indent: -15px;
  margin-bottom: 5px;
}

/*============ FAV RECIPES ============*/

.fav-recipes__title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 52.8px;
  background-color: var(--first-color);
  padding: 0 0.4rem 0 0.4rem;
  text-align: center;
  font-size: 1rem;
  color: var(--first-color-alt);
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 0.2rem 0.2rem;
  margin-top: -0.1rem;
}

.video__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 1rem 2rem 1.5rem;
}

.video__preview {
  display: inline-block;
  vertical-align: center;
  justify-content: center;
  width: 200px;
}

.thumbnail {
  width: 200px;
  height: 160px;
  object-fit: cover;
  object-position: left;
  align-items: center;
  border-radius: 0.2rem 0.2rem 0 0;
  box-shadow: 4px 0 6px rgba(0, 0, 0, 0.3);
  filter: saturate(85%);
}

.thumbnail__row {
  margin-bottom: 8px;
  object-position: center;
  cursor: pointer;
}

.share-button {
  background: none;
  cursor: pointer;
  vertical-align: bottom;
  margin-left: 1rem;
}

.share-icon {
  width: 2rem;
  height: 2rem;
}

.video__line {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

/*============ Recipe pages info box ============*/

.recipe-info-container {
  display: inline-flex;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: var(--first-color);
  padding: .8rem;
  border-radius: .5rem;
  align-items: center;
}

.recipe-info-item {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.recipe-info-item img {
  margin-right: 1rem;
}

.recipe-info-item span {
  font-size: 0.875rem;
  white-space: nowrap;
}

.ingredients-list {
  margin: 0;
  padding: 0;
}

.ingredients-list dt {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: .5rem;
}

.ingredients-list dd {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.ingredient-point {
  min-width: 1rem;
  padding-right: 0.5rem;
  flex-shrink: 0;
}

/*============ BUTTON ============*/
.button {
  display: inline-block;
  background-color: var(--first-color-alt);
  padding: 1rem 1rem;
  border-radius: 0.5rem;
  color: var(--first-color) !important; 
  font-weight: var(--font-semi-bold);
  font-family: "Vidaloka", sans-serif;
  transition: box-shadow 0.3s, background-color 1s;
}

.button:hover {
  background-color: hsl(0, 90%, 45%);
  color: white !important;
  box-shadow: 0 8px 24px hsla(var(--first-color), 100%, 40%, 0.25);
  outline: none;
}
/*============ ABOUT ============*/
.wave-top svg,
.wave-bottom svg {
  display: block;
}

.wave-top svg {
  transform: translateX(-10%);
  width: 130%;
}

.wave-bottom svg {
  transform: translateY(0.1rem) translateX(-15%);
  width: 150%;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 0 0 0;
  background-color: var(--body-color-alt);
}

.about h3 {
  color: var(--first-color-alt);
}

.text {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: left;
}

.text img {
  max-width: 100%;
  border-radius: 0.2rem;
  border: 2px dashed var(--first-color-alt);
  filter: brightness(90%);
  filter: blur(0.4px);
}

.row {
  width: 90%;
  max-width: 100rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem 1rem;
  margin-bottom: 1rem;
}

.row .right-img,
.row .left-img {
  overflow: hidden;
}

.row .right-img img,
.row .left-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row .left-text,
.row .right-text {
  display: flex;
  align-items: center;
}

.row .left-text .content {
  padding-right: 2rem;
}

.row .right-text .content {
  padding-left: 2rem;
}

/*============ SCROLL UP ============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--first-color-alt);
  padding: 6px;
  display: inline-flex;
  border-radius: 0.25rem;
  color: var(--body-color);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsla(228, 15%, 8%, 0.4);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
}

.show-scroll {
  bottom: 3rem;
}
/*--================ PRIVACY POLICY ================*/
.policy__section {
  justify-content: center;
  align-items: center;
  background-color: var(--body-color);
  margin: 2rem 0 3rem 0;
}

.policy__section h1 {
  padding: 1rem;
  border: 2px dashed var(--first-color-alt);
}

.policy__section h3 {
  padding: 2rem 1rem 1rem 0;
  text-align: left;
}
