@import "../../vars.scss";

:host {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contents, .recipe {
  width: 100%;
  display: flex;
  gap: 3rem;
  justify-content: space-between;


  div {
    width: calc(50% - 2.5rem);
  }

  p {
    background-color: var(--text-color);
    color: var(--background-color);
    font-weight: 500;
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin: 0;
  }

  ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
    column-gap: 5rem;

    li {
      min-height: 1.5rem;
      padding: 0.5rem 1rem;
      border-bottom: 0.1rem solid var(--text-color);
      display: flex;
      align-items: center;
    }

    .indent:before {
      content: ">";
      margin-right: 1rem;
    }

  }

  span {
    margin-left: auto;
  }
}

.recipe {
  margin-top: 2rem;
  display: inline;

  ol {
    list-style: none;
    counter-reset: item;
  }

  li {
    counter-increment: item;
  }

  li:before {
    margin-right: 2rem;
    content: counter(item);
    width: 1.2em;
    text-align: center;
    display: inline-block;
  }

}

@media only screen and (max-width: $small-screen) {
  .contents {
    gap: 0;
    flex-direction: column;

    div {
      width: 100%;
    }

    div:last-child {
      p {
        display: none;
      }
    }
  }

  .recipe {
    margin-top: 1rem;
  }
}
