#rName {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#rating {
  font-size: 1rem;
  color: gray;
  margin-bottom: 1rem;
}

#imgContainer img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#instructions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

#instructions li {
  font-size: 1rem;
  line-height: 1.5;
}

#ingredients {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  padding: 0;
  margin-bottom: 1rem;
}

#ingredients * {
  /* padding: 0.3rem 0.7rem; */
  border-radius: 10px;
  font-size: 1.1rem;
}
.ingBox {
  width: 100px;
}

input[type="checkbox"] {
  opacity: 1;
}

input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: grey;
}
label:hover {
  cursor: pointer;
}
label {
  transition: 0.2s ease;
}

@media (min-width: 800px) {
  #head_img {
    display: grid;
    grid-template-columns: 1fr 2fr 5fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
  }

  #head_box {
    grid-column: 2 / 3;
    justify-self: center;
    margin-right: 10px;
  }

  #rName {
    margin-left: 0.5rem;
  }

  #rating {
    margin-left: 0.5rem;
  }

  #imgContainer {
    grid-column: 3 / 4;
    /* justify-self: center;
    height: 700px; */
    object-position: 0 0;
    overflow: hidden;
    background-color: red;

    img {
      min-height: 100%;
      min-width: 100%;
      max-width: 100%;
      /* height: 100%; */
      border-radius: 0;
      object-fit: cover;
      object-position: center left;

      display: block;
      margin-top: -75px;
      margin-bottom: -75px;
    }
  }

  #instructions {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    list-style-type: none;
    place-self: start left;
    padding: 40px 50px 0 70px;
  }

  #ingredients {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    gap: 0.5rem;
    position: relative;
    background-color: var(--tertiary);
    place-self: start right;
    padding: 40px 70px 200px 40px;
  }

  label {
    display: inline;
  }
}
