@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat/Montserrat-VariableFont_wght.ttf");
}

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

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Montserrat", "Trebuchet MS", "Lucida Sans Unicode",
    "Lucida Grande", "Lucida Sans", Arial, sans-serif;
  background-color: #272a2d;
  width: 100%;
  min-height: 100vh;
  background: url("../web-img/background.jpg");
  background-position: top;
  background-repeat: repeat-y;
  background-size: auto;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow-x: hidden;
}

.hide {
  opacity: 0;
  pointer-events: none;
}

.layout {
  position: relative;
  min-height: 100vh;
}

.layout__nav {
  height: 220px;
  background-color: rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav__back {
  width: 80px;
  height: 100%;
  color: white;
  font-size: 1.8rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 5px #202020;
  padding-top: 2rem;
}

.nav__img-container {
}

.search__layout {
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.search__bar-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.search__bar {
  height: 5rem;
  width: 100%;
  font-size: 2rem;
  text-align: center;
}

.search__bar-container::before {
  pointer-events: none;
  position: absolute;
  content: "";
  width: 101%;
  height: 100%;
  background-color: red;
  z-index: -1;
  top: 0px;
  left: -0.5%;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #ce9e26,
    #e67a2a,
    #e76b41,
    #e73aa4,
    #e0667b,
    #e3a562
  );
  filter: blur(8px);
  opacity: 1;
}

.recetas__layout {
  width: 100%;
  padding-bottom: 8rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.receta__layout {
  flex-basis: 1;
  width: 300px;
  margin: 20px 0px 100px 10px;
  height: 300px;
  position: relative;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: all 300ms ease-in-out;
}

.receta__layout::before {
  position: absolute;
  content: "";
  width: 206px;
  height: 306px;
  background-color: red;
  z-index: -1;
  border-radius: 25px;
  top: -3px;
  left: -3px;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #ce9e26,
    #e67a2a,
    #e76b41,
    #e73aa4,
    #e0667b,
    #e3a562,
    #f1ce75,
    #e3a562,
    #e0667b,
    #e73aa4,
    #e76b41,
    #e67a2a,
    #ce9e26
  );
  filter: blur(8px);
}

.receta__nombre {
  border-top: solid 8px rgba(255, 255, 255, 1);
  width: 300px;
  height: 100px;
  text-align: center;
  color: white;
  background-color: rgba(29, 29, 29, 0.8);
  font-size: 2.2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  transition: all 300ms ease-in-out;
  border-bottom-right-radius: 25px;
  border-bottom-left-radius: 25px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

.receta__nombre::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: #e73aa4;
  background: linear-gradient(45deg, #e73aa4, #e76b41, #e67a2a);
  pointer-events: none;
  left: 0;
  top: -16px;
  transition: all 200ms ease-in-out;
  opacity: 0;
}

.receta__layout:hover .receta__nombre::after {
  left: 0;
  top: -8px;
  opacity: 1;
}

.receta__img-container {
  overflow: hidden;
  width: 300px;
  height: 300px;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
  position: relative;
}

.receta__categorie {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(29, 29, 29, 0.8);
  padding: 1rem;
  border-bottom-left-radius: 25px;
}

.receta__img {
  width: 100%;
  height: 100%;
  transition: all 300ms ease-in-out;
}

@media (min-width: 400px) {
  .receta__layout {
    width: 180px;
    margin: 0px;
    height: 180px;
    margin-bottom: 120px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .receta__layout::before {
    position: absolute;
    content: "";
    width: 186px;
    height: 186px;
    top: -3px;
    left: -3px;
  }

  .receta__img-container {
    width: 180px;
    height: 180px;
  }

  .receta__nombre {
    width: 180px;
    font-size: 1.8rem;
  }
}

@media (min-width: 540px) {
  .receta__layout {
    width: 180px;
    margin: 0px;
    height: 180px;
    margin-bottom: 120px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .receta__layout::before {
    position: absolute;
    content: "";
    width: 186px;
    height: 186px;
    top: -3px;
    left: -3px;
  }

  .receta__img-container {
    width: 180px;
    height: 180px;
  }

  .receta__nombre {
    width: 180px;
    font-size: 1.8rem;
  }
}

@media (min-width: 700px) {
  .receta__layout {
    width: 200px;
    margin: 0px;
    height: 200px;
    margin-bottom: 120px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .receta__layout::before {
    position: absolute;
    content: "";
    width: 206px;
    height: 206px;
    top: -3px;
    left: -3px;
  }

  .receta__img-container {
    width: 200px;
    height: 200px;
  }

  .receta__nombre {
    width: 200px;
  }
}

.layout__detalles {
  background-color: rgba(29, 29, 29, 0.8);
  margin: 2rem;
  padding: 2rem;
  padding-bottom: 4rem;
  margin-bottom: 0rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 20rem;
}

.layout__detalles::before {
  border-radius: 25px;
  position: absolute;
  content: "";
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #ce9e26,
    #e67a2a,
    #e76b41,
    #e73aa4,
    #e0667b,
    #e3a562
  );
  filter: blur(10px);
  clip-path: polygon(
    -8% -8%,
    -8% 108%,
    0% 108%,
    0% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 108%,
    108% 108%,
    108% -8%
  );
}

.detalles__receta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.detalles__video-container {
  margin-top: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 404px;
  height: 404px;
  position: relative;
  z-index: 1;
}

.detalles__video {
  width: 400px;
  height: 400px;
  object-fit: cover;
}

.detalles__info {
  margin: 2rem;
}

.detalles__titulo {
  color: white;
  font-size: 3rem;
  width: 100%;
  text-align: center;
  background-color: rgba(29, 29, 29, 0.8);
  text-shadow: 2px 2px 5px #202020;
  padding: 2rem;
  position: relative;
}

.detalles__titulo::before {
  border-radius: 25px;
  position: absolute;
  content: "";
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #ce9e26,
    #e67a2a,
    #e76b41,
    #e73aa4,
    #e0667b,
    #e3a562
  );
  filter: blur(10px);
  clip-path: polygon(
    -8% -8%,
    -8% 108%,
    0% 108%,
    0% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 108%,
    108% 108%,
    108% -8%
  );
}

.ingredientes__pasos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  flex-wrap: wrap;
}

.lista__ingredientes {
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  min-width: 300px;
}

.ingredientes__titulo {
  color: white;
  font-size: 2.4rem;
  padding-bottom: 1rem;
  background-color: #e73aa4;
  text-shadow: 2px 2px 5px #202020;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0px 0px 25px 5px #e73aa4;
}

.ingrediente {
  color: white;
  font-size: 1.8rem;
  padding-bottom: 0.8rem;
}

.lista__pasos {
  padding: 2rem;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  min-width: 300px;
  position: relative;
}

.detalles__video-container::before {
  position: absolute;
  content: "";
  width: 408px;
  height: 408px;
  z-index: -1;
  top: -2px;
  left: -2px;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #ce9e26,
    #e67a2a,
    #e76b41,
    #e73aa4,
    #e0667b,
    #e3a562,
    #f1ce75,
    #e3a562,
    #e0667b,
    #e73aa4,
    #e76b41,
    #e67a2a,
    #ce9e26
  );
  filter: blur(10px);
}

.pasos__titulo {
  color: white;
  font-size: 2.4rem;
  padding-bottom: 1rem;
  background: #e3a562;
  text-shadow: 2px 2px 5px #202020;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  margin-bottom: 1rem;
  top: calc(-5.4rem - 5px);
  box-shadow: 0px 0px 25px 5px #e3a562;
}

.paso {
  color: white;
  font-size: 1.8rem;
  padding-bottom: 0.8rem;
}

.layout__footer {
  height: 80px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer__text {
  color: white;
  font-size: 1.6rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.svg__icon {
  width: 100%;
  height: 100%;
}

.filter__layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  z-index: 99;
}

.filter__item {
  width: 50px;
  height: 50px;
  opacity: 0.5;
  transition: all ease-in-out 300ms;
  cursor: pointer;
  position: relative;
}

.filter__item::after {
  position: absolute;
  content: "";
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  opacity: 0;
  transition: all 300ms ease-in-out;
}

.filter__item:hover {
  filter: drop-shadow(0px 0px 1px #ffffff);
}

.filter__item:hover::after {
  opacity: 1;
}

.filter__item__delete--active {
  opacity: 1;
  position: relative;
}

.filter__item--active {
  opacity: 1;
  position: relative;
}

.filter__item--active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  bottom: -8px;
  left: 0;
  background-color: #e73aa4;
  opacity: 1;
}

@media (max-width: 500px) {
  .filter__item {
    width: 35px;
    height: 35px;
  }

  .detalles__video-container {
    margin-top: 80px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 304px;
    width: 100%;
    height: 304px;
  }

  .detalles__video-container::before {
    position: absolute;
    content: "";
    width: calc(100% + 6px);
    height: 308px;
    z-index: -1;
    top: -3px;
    left: -3px;
    background: conic-gradient(
      from 90deg at 50% 50%,
      #ce9e26,
      #e67a2a,
      #e76b41,
      #e73aa4,
      #e0667b,
      #e3a562,
      #f1ce75,
      #e3a562,
      #e0667b,
      #e73aa4,
      #e76b41,
      #e67a2a,
      #ce9e26
    );
    filter: blur(10px);
  }

  .detalles__video {
    width: 300px;
    height: 300px;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 400px) {
  .filter__item {
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 400px) {
  .lista__ingredientes {
    width: 100%;
  }

  .lista__pasos {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .lista__ingredientes {
    min-width: 300px;
    width: 50%;
  }

  .lista__pasos {
    min-width: 300px;
    width: 50%;
  }

  .detalles__video-container {
    margin-top: 80px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 404px;
    height: 404px;
    position: relative;
  }

  .detalles__video {
    width: 400px;
    height: 400px;
    object-fit: cover;
  }
}
