@import '../../constants/colors.scss';

#roadmap-wrapper {
  .roadmap-show-all {
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
    color: $blue;
  }
  .roadmap-node {
    width: 100%;
    min-height: 50px;
    display: inline-block;

    border-left: 2px solid $blue;

    &.ellipsis {
      border-left: 2px dashed $blue;
      padding-left: 20px;
    }

    &.month,
    &.year {
      position: relative;
      padding-left: 20px;
      padding-top: 10px;
      color: $blue;
      font-weight: bold;
      font-size: 1.1rem;

      &:before {
        left: -7px;
        top: 20px;
        position: absolute;
        content: '';
        background-color: $blue;
        width: 12px;
        height: 12px;
        border-radius: 10px;
      }
    }
    &.year {
      font-size: 2rem;
      padding-top: 20px;
      &:before {
        top: 30px;
      }
    }

    > .date {
      display: inline-block;
      padding: 10px;
      max-width: 600px;
      border-radius: 6px;
      border: 2px solid #ccc;
      margin: 10px 0 10px 40px;
      position: relative;

      &.content {
        padding: 20px;

        > div.label {
          font-weight: bold;
          background-color: #fffda0;
          color: #5e3000;
          padding: 2px 8px;
          border-radius: 4px;
          display: inline-block;

          &.info {
            background-color: #cbffa0;
            color: #144707;
          }
        }
      }

      &:before {
        left: -52px;
        top: 13px;
        position: absolute;
        content: '';
        border: 2px solid $blue;
        background-color: #fff;
        width: 18px;
        height: 18px;
        border-radius: 10px;
      }
      &:after {
        left: -34px;
        top: 22px;
        position: absolute;
        content: '';
        background-color: #ccc;
        width: 34px;
        height: 2px;
      }
    }
  }
  @media only screen and (min-width: 600px) {
    padding: 20px 30px;
  }
}
