@import '../../styles/partials/colors';

.Party {
  line-height: 25px;
  &__headInfo {
    display: flex;
    justify-content: center;
    text-align: center;
    padding-top: 5px;
    margin-bottom: 12px;
  }
  &__seal {
    width: 150px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  &__flag {
    display: inline-block;
    width: auto;
    height: 40px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  &__title {
    font-size: 1.25rem;
  }
  &__engTitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
  }
  &__abbreviation {
    font-size: 1.5rem;
    font-weight: 600;
  }
  &__partyPolicy {
    background-color: $primary-color;
    color: #ffffff;
    font-size: 0.85rem;
    border-radius: 30px;
    padding: 5px 10px;
    box-shadow: 0px 2px 4px rgba($color: $primary-color, $alpha: 0.25);
    transition: all 0.2s linear;
    &:hover {
      opacity: 0.95;
      box-shadow: 0px 2px 6px rgba($color: $primary-color, $alpha: 1);
    }
  }
  &__region {
    font-size: 0.875rem;
  }
  &__info {
    margin-bottom: 12px;
  }
  &__flagInfo {
    display: flex;
    align-items: center;
  }
  &__infoLabel {
    font-size: 0.875rem;
    color: rgba($color: #000000, $alpha: 0.85);
  }
  &__infoAnswer {
    font-size: 1rem;
  }
  &__timeline {
    background: rgba($color: $primary-color, $alpha: 0.25);
    padding: 5px;
    .timeline-item {
      margin: 5px 0;
      .date {
        font-weight: 600;
        font-size: 1.15rem;
      }
      .time {
        padding-left: 0;
      }
      &:last-child { // Tricky hack
        .description {
          &::before {
            display: none;
          }
        }
      }
      .description {
        position: relative;
        &::before {
          content: '';
          display: inline-block;
          position: absolute;
          top: 14px;
          left: 0px;
          width: 2px;
          height: 100%;
          background-color: $primary-color;
        }
        &::after {
          content: '';
          display: inline-block;
          position: absolute;
          border-radius: 100%;
          top: 8px;
          left: -5px;
          width: 12px;
          height: 12px;
          background-color: $primary-color;
        }
      }
    }
  }
}

@media (min-width: 1200px) {
  .Party {
    &__headInfo {
      text-align: left;
      margin-bottom: 15px;
    }
    &__infoLabel {
      color: $primary-color;
    }
    &__timeline {
      padding: 5px 0px 15px 0px;
    }
  }
}
