/* recipeDetails.css */
main {
  padding: 20px;
}

#recipeDetails {
  background-color: #fff;
  padding: 1.5vh 2vw 10vh 2vw;
}

.details-header {
  display: flex;
  flex-direction: column;
  gap: 2dvh;
}

.details-header-text {
  display: flex;
  flex-direction: column;
}

.details-body {
  display: flex;
  flex-direction: column;
}

.recipe-image {
  height: 25vh;
  width: 100%;
  border-radius: 1vw;
  object-fit: cover;
}


.description {
  margin-bottom: 10px;
}

.metadata {
  margin-top: 2vh;
}

table.metadata,
table.ingredients,
table.tools {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-spacing: 0;
}

td.name-col {
  width: 65%;
}

td.name-col:first-letter {
  text-transform: uppercase;
}

td.ingredient-check,
td.tool-check {
  width: 5%;
}

td.measure-col-number,
td.metadata-value-number {
  text-align: right;
  width: 15%;
}

td {
  border-bottom: 1px solid #eee;
  padding: 8px 8px 8px 0;
}

#recipeDetails h3 {
  margin-top: 1vh;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 1vh;
}


.cta-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  display: flex;
  padding: 2vh;
  box-sizing: border-box;
  gap: 2vw;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
}

.servings-qty-btns {
  display: flex;
  gap: 4px;
  position: relative;
}

.servings-qty-btns button {
  background: #ddd;
  padding: 6px 6px 4px 6px;
  color: #333;
  text-align: center;
  display: flex;
  border-radius: 3px;
}

.servings-qty-btns button i {
  color: #333;
  width: auto;
  font-size: .7em;
}

@media screen and (orientation: landscape) {
  #recipeDetails {
    height: 100%;
  }

  .details-header {
    display: flex;
    flex-direction: row-reverse;
    gap: 2vw;
    height: 20dvh;
    min-height: 250px;

  }

  .details-header-text {
    display: flex;
    flex-direction: column;
  }

  .recipe-image {
    height: 100%;
    border-radius: 1vw;
    object-fit: cover;

  }

  .details-header-text,
  .recipe-image {
    width: 49vw;
  }

  .details-body {
    margin-top: 2vw;
    display: flex;
    flex-direction: row;
    gap: 2vw;
  }



  .ingredients-section,
  .tools-section {
    width: 49vw;
  }
}