@import "variables";
@import "mixins";

section.timeline {
  .timeline {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: $space-sm;
    @include bp("md") {
      row-gap: 0;
    }
    .point-wrapper {
      position: relative;
      flex: 1 0 20%;
      @include bp("md") {
        flex: 1 0 100%;
        width: 100%;
        display: flex;
      }
      .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        @include bp("md") {
          margin-left: 1em;
        }
      }
      .complete {
        color: $col-prm;
      }
      p {
        padding-right: 2em;
      }
      &.empty {
        &::after {
          content: none;
        }
        @include bp("md") {
          display: none;
        }
      }
      &::after {
        content: "";
        top: 16px;
        right: 0;
        z-index: -1;
        width: 100%;
        position: absolute;
        height: 1px;
        background-color: $gray300;
        @include bp("md") {
          width: 1px;
          height: 100%;
          top: 0;
          left: 16px;
          right: unset;
        }
      }
      &.last {
        &::after {
          content: none !important;
        }
      }
      &:nth-of-type(4),
      &:last-of-type,
      &:nth-of-type(10),
      &:nth-of-type(14) {
        &::after {
          content: none;
          @include bp("md") {
            content: "";
          }
        }
      }
      &:last-of-type {
        p {
          padding-right: 0;
        }
        &::after {
          content: none;
          @include bp("md") {
            content: none;
          }
        }
      }
    }
    a {
      transition: 0.3s;
      &:hover {
        transform: scale(1.1);
      }
    }
    .point {
      width: 32px;
      height: 32px;
      min-height: 32px;
      min-width: 32px;
      display: block;
      background-color: $gray200;
      border-radius: 100%;
      border: 1px solid $gray200;
      margin-bottom: 0.5em;
      &.active {
        background-color: $col-prm;
        border-color: $col-prm;
      }
    }
  }
}
