@import '../../../styles/main';

.FoundingMembersPage {
  &__period {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 1;
    width: 878px;
    height: 354px;
    margin: 0 auto;
    background-color: #4038ff;

    &__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 75px;
      padding: 0 32px;
      border-bottom: 1px solid #322af1;
    }

    &__title {
      font-family: $font-primary;
      font-size: 24px;
      line-height: 32px;
      letter-spacing: 0;
      color: white;
    }

    &__subtitle {
      margin-left: 8px;
      font-family: $font-primary;
      font-size: 24px;
      line-height: 32px;
      letter-spacing: 0;
      color: white;

      span {
        font-family: $font-secondary;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -.4000000059604645px;
        color: #dfe4ea;
      }
    }

    &__content {
      display: grid;
      height: 279px;
      grid-template-columns: 1fr 1fr;
    }

    &__counter {
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      width: 422px;
      height: 214px;
      margin: auto 0 auto 32px;
      background-color: #322af1;

      &__subtitle {
        margin-bottom: 16px;
        font-family: $font-secondary;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -.4000000059604645px;
        color: #dfe4ea;
      }
    }

    &__percentage {
      width: 350px;
      margin-top: 20px;

      &__line {
        width: 100%;
        height: 8px;
        background-color: #4038ff;

        &--secondary {
          background-color: $c_han-purple;
        }
      }

      &__filled {
        height: 8px;
        background-color: white;
      }

      &__dates {
        display: flex;
        justify-content: space-between;
        margin-top: 8px;

        p {
          font-family: $font-secondary;
          font-size: 12px;
          line-height: 16px;
          letter-spacing: -.4000000059604645px;
          color: #dfe4ea;
        }
      }
    }

    &__buttons {
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;

      a {
        width: 280px;
        height: 60px;
      }
    }

    &__summary-button {
      margin-bottom: 12px;
      background-color: black;
    }

    &__summary-button:hover {
      background-color: black;
    }

    &__announcement-button {
      margin-top: 12px;
      border: 2px solid white;
    }
  }

  &__counter {
    display: flex;
    flex-direction: row;
    min-height: 88px;

    &__segment {
      display: flex;
      align-items: center;
      flex-direction: column;
      width: 72px;
      margin: 0 16px;
    }

    &__number {
      margin-bottom: 6px;
      font-family: $font-primary;
      font-size: 56px;
      font-weight: 700;
      line-height: 62px;
      letter-spacing: -2.4000000953674316px;
      color: white;
    }

    &__label {
      font-family: $font-secondary;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 20px;
      letter-spacing: -.4000000059604645px;
      color: #dfe4ea;
    }
  }

  @media #{$screen-max-lg} {
    &__period {
      margin-top: 40px;
    }
  }

  @media #{$screen-max-md} {
    &__period {
      width: 75%;
      height: 451px;
      margin-top: 0;

      &__content {
        display: flex;
        align-items: center;
        flex-direction: column;
      }

      &__counter {
        width: unset;
        margin-top: 20px;
        margin-left: 0;
        background: none;
      }

      &__header {
        padding: 0 20px;
      }

      &__title,
      &__subtitle {
        font-family: $font-primary;
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0;
      }

      &__subtitle {
        span {
          display: none;
        }
      }

      &__percentage {
        width: 295px;

        &__line {
          background-color: #322af1;
        }
      }

      &__buttons {
        margin-top: 25px;
      }

      &__summary-button {
        margin-bottom: 7px;
      }

      &__announcement-button {
        margin-top: 7px;
      }
    }
  }

  @media (max-width: 462px) {
    &__period {
      width: 335px;
    }
  }
}
