/* Step Styles */
#recipeSteps {
  height: 93dvh;
  background-color: #fff;
  flex-direction: column;
}

.instructions {
  padding: 2vh;
  height: 17dvh;
  font-size: 2.5dvh;
  box-sizing: border-box;
}

.layout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 66dvh;
  width: 100vw;
  padding-top: 3%;
  box-sizing: border-box;
}

.layout.one-big-thing {
  justify-content: center;
}

.ingredient-and-measure,
.source {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

#recipeSteps .starting-ingredient {
  width: 40vw;
  height: 40vw;
  max-height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: center;
  background-position-y: center;
  position: relative;
  display: flex;
  justify-content: center;
}


#recipeSteps .measure-box {
  width: 40vw;
  font-size: 3dvh;
  text-align: center;
}

#recipeSteps .ending-ingredient {
  height: 100%;
  object-fit: contain;
  object-fit: contain;
}

#recipeSteps .destination {
  width: 80%;
  text-align: center;
}


.layout.this-in-that.with-tool .ingredient-and-measure,
.layout.this-in-that.with-tool .destination,
.layout .source {
  height: 30%;
}

.layout .source {
  width: 80%;
}

.layout.this-in-that.with-tool .tool {
  height: 10%;
}


.layout.this-in-that .ingredient-and-measure,
.layout.this-in-that .destination {
  height: 30%;
}

.layout.layout.vessel-only .destination {
  height: 40%;
}

.layout.tool-and-vessel .tool {
  height: 60%;
}

.layout.tool-and-vessel .destination {
  height: 30%;
}



.layout.this-in-that .tool {
  width: 80%;

}

.layout.this-in-that .tool img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.layout.image-only {
  justify-content: flex-end;
  padding: 0 0 3dvh 0px;
  box-sizing: border-box;
}

.final-image {
  height: 40dvh;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: center;
  background-position-y: center;

}

.arrow-down {
  background: url(../img/arrow/down.svg) no-repeat;
  background-position: bottom;
  width: 120px;
  height: 97px;
  margin: 0 auto;
}

.with-tool .arrow-down {
  height: 10%;
}

#recipeSteps .one-big-thing div.tool {
  position: relative;
}

#recipeSteps .one-big-thing img.tool {
  height: 293px;
  width: 190px;
}

#recipeSteps .add-on-text {
  position: absolute;
  top: 40%;
  text-align: center;
  width: 190px;
  color: #fff;
  font-size: 2em;
  font-weight: 300;
}

.frying-pan-heat-level {
  margin: 1% auto;
  display: block;
  height: 25%;
  object-fit: contain;
}

img.image-only {
  height: 213px;
}

.vessel-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  gap: 5%;
}



.vessel-plate {
  width: 80%;
}

.vessel-bowl,
.vessel-bowl--serving {
  width: 60%;
}


.vessel {
  flex-grow: 1;
  width: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: center;
  background-position-y: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.label {
  background-color: #434343;
  color: #fff;
  padding: 2px 4px;
  position: absolute;
  top: 54%;
  font-size: .8em;
}

.label.fpo-label {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.placeholder-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  align-content: center;
  align-items: center;
}

.placeholder-image i {
  font-size: 5.3em;
  width: auto;
  color: #eeebeb;
}


.layout.tool-and-vessel img.tool {
  object-fit: contain;
  height: 100%;
}

.layout.vessel-only {
  justify-content: center;

}


@media (orientation: landscape) {
  #recipeSteps {
    flex-direction: row;
  }

  .pagination,
  .instructions {
    background: #f8f8f8;
  }


  .instructions,
  .layout {
    width: 50%;
  }

  .instructions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 
    Height calculation: 
    7vh is the height of the header, 10vw is the height of the pagination bar */
    height: calc(100vh - 7vh - 10vw);
    padding: 4.2vh 2vw 1.4vh 2vw;
    font-size: 4.5dvh;
  }

  .layout {
    height: 93dvh;
    padding: 5dvh 0;
  }

  #recipeSteps .starting-ingredient {
    width: 20vw;

  }

  #recipeSteps .measure-box {
    width: 20vw;
  }

  .ingredient-and-measure {
    max-width: 40vw;
  }

  .final-image {
    height: 100%;
  }

  .layout.image-only {
    padding: 0;
    height: 93dvh
  }
}