@import '../../styles/_main';

.Card {
  $_r: &;

  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  color: $c_white;
  background-color: $c_blue-ribbon;
  border-radius: $border-radius;

  &--error {
    background-color: $c_rose;

    #{$_r} {
      &__header {
        background-color: $c_raspberry;
      }
    }
  }

  &--info {
    background-color: $c_blue-ribbon;

    #{$_r} {
      &__header {
        background-color: $c_han_purple;
      }
    }
  }

  &__header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    font-size: 26px;
    font-weight: 700;
    color: $c_white;
    text-transform: uppercase;
    background-color: $c_han_purple;
    border-radius: inherit;
  }

  &__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-right: 20px;
  }

  &__content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 30px;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
      margin-bottom: 12px;
      font-size: 18px;
      font-weight: 400;
      line-height: 24px;
      color: $c_white;
      text-align: center;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-bottom: 20px;
      font-size: 14px;
      text-transform: uppercase;
    }

    a {
      color: $c_white;
      text-decoration: underline;
    }
  }

  @media #{media-min-width(550px)} {
    &__content {
      padding: 20px 50px 40px;
    }

    &__header {
      padding: 30px 50px;
      font-size: 30px;
    }

    &__icon {
      width: 40px;
      margin-right: 30px;
    }
  }
  @media #{$screen-sm} {
    &__content {
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p {
        font-size: 16px;
        text-align: left;
      }
    }
  }

  @media #{$screen-lg} {
    margin: initial;

    &__header {
      justify-content: flex-start;
    }
  }
}
