/**
 * Global base styles for Yang2020.
 */

/**
 * Variables.
 */

:root {
  --primary-dark: #13294b;
  /* dark-slate-blue */
  --primary-light: #f2f5f7;
  /* ice-blue */
  --primary-light-active: #6cace4;
  /* soft-blue */
  --primary-accent: #da3248;
  /* faded-red */
  --primary-accent-active: #ff3751;
  /* light-red */
  --primary-neutral: #828fa1;
  /* blue-grey */
  --primary-neutral-light: #f2f5f7;
  /* light-grey */
  --primary-neutral-active: rgba(130, 143, 161, 0.25);
  /* blue-grey-light */
  --secondary-accent: #f2a00f;
  /* butterscotch */
  --secondary-accent-active: #ffbd3d;
  /* squash */
  --tertiary-accent: #1fb919;
  /* green */
  --tertiary-accent-active: #23cb1e;
  /* light-green */
  --white: #ffffff;
  /* white */
}

html,
body,
input {
  font-family: 'Montserrat';
  font-size: 16px;
}

.hidden {
  display: none;
}

/**
 * Base typography.
 */

.montserrat {
  font-family: 'Montserrat';
}

body {
  color: var(--primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

b, strong {
  font-weight: 600;
}

blockquote {
  margin: 40px 60px;
}

blockquote, cite, em, i {
  font-style: italic;
}

cite {
  font-weight: 500;
  color: var(--secondary-accent);
  display: block;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 2;
  margin-bottom: 40px;
  width: 100%;
}

tbody {
  border-bottom: 1px solid #ddd;
}

table th, table td {
  text-align: inherit;
  padding: .769em 1em;
  border: 1px solid #eee;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.fw4 {
  font-weight: 400;
}

.fw5 {
  font-weight: 500;
}

.fw6 {
  font-weight: 600;
}

.fw7 {
  font-weight: 700;
}

/**
 * Typography.
 */

.headline {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  padding-bottom: 8px;
}
.headline2 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  padding-bottom: 8px;
}
.headline3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  padding-bottom: 20px;
}
.headline4 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  padding-bottom: 8px;
}
.subheadline {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  padding-bottom: 16px;
}
/* .description {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  padding-bottom: 8px;
} */
.copy1, .description {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  padding-bottom: 8px;
}
.copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  padding-bottom: 8px;
}
.copy2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  padding-bottom: 8px;
}
.copy3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  padding-bottom: 6px;
}
.copy4 {
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  padding-bottom: 14px;
}
.copy5 {
  font-size: 11px;
  font-weight: 500;
}
.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
/**
 * Base colors.
 */

.bg-light {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.bg-dark {
  background-color: var(--primary-dark);
  color: white;
}

.text-white {
  color: white;
}

.text-dark {
  color: var(--primary-dark);
}

/**
 * Links.
 */

.link-default {
  text-decoration: none;
  color: white;
}

.link-title {
  text-decoration: none;
  color: white;
  line-height: 18px;
  letter-spacing: 1.3px;
  font-size: 1.125rem;
  font-weight: 500;
}

.link-title.invalid {
  color: var(--primary-neutral);
  cursor: not-allowed;
  pointer-events: none;
}

.link-title:hover,
.link-default:hover {
  color: var(--primary-light-active);
}

.link-cta {
  text-decoration: none;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--secondary-accent-active);
  font-size: 1rem;
  font-weight: 600;
}

.link-cta:after {
  content: url(../svg/link-cta-arrow-secondary-accent.svg);
  position: relative;
  line-height: 2.4;
  top: 5px;
  left: 0;
  padding-top: 50px;
  padding: 0px 12px;
  transition: all 0.5s;
}

.link-cta:hover {
  color: white;
}

.link-cta:hover:after {
  content: url(../svg/link-cta-arrow-white.svg);
  left: 8px;
  transition: left 0.2s linear;
}

.copy a:not(.button) {
  color: var(--primary-light-active);
}

.copy a:not(.button):hover {
  text-decoration: underline;
}

/**
 * Dark mode.
 */

.bg-light .link-cta:after {
  content: url(../svg/link-cta-arrow-primary-dark.svg);
}

.bg-light .link-cta:hover {
  color: var(--primary-light-active);
}

.bg-light .link-cta:hover:after {
  content: url(../svg/link-cta-arrow-primary-light-active.svg);
}

@keyframes moveLinkCtaArrow {
  from {
    left: 30px;
  }

  to {
    left: 50px;
  }
}

/**
 * Buttons.
 */

.button {
  font-size: 18px;
  font-family: 'Montserrat';
  min-width: 40px;
  padding: 8px 26px;
  letter-spacing: 1.13px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  border-width: 2px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.button:focus:active {
  outline: 0;
}

.button-default {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition: background-color 0.2s ease-in;
}

.button-default:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s ease-in;
}

.button-default:active {
  border: 2px solid var(--primary-neutral);
}

.button-donate {
  background-color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  color: white;
}

.button-donate:hover {
  background-color: var(--primary-accent-active);
  border-color: var(--primary-accent-active);
  color: var(--primary-neutral-light);
}

.button-submit {
  background-color: var(--tertiary-accent);
  border: 2px solid var(--tertiary-accent);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease-in;
}

.button-submit:hover {
  background-color: var(--tertiary-accent-active);
  border-color: var(--tertiary-accent-active);
  transition: background-color 0.2s ease-in;
}

.button-neutral {
  background-color: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  cursor: pointer;
}

.button-neutral:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.button-donate:active,
.button-submit:active,
.button-neutral:active {
  border: 2px solid white;
}

.button-arrow {
  position: relative;
}

.button-arrow:after {
  border-left: 2px solid white;
  border-top: 2px solid white;
  width: 8px;
  content: '';
  height: 8px;
  transform: rotate(135deg);
  position: absolute;
  right: 8%;
  top: 39%;
  transition: right 0.4s ease-in-out;
}

.button-arrow:hover:after {
  right: 3%;

  transition: right 0.4s ease-in-out;
}

.button.invalid {
  pointer-events: none;
}

.button.valid {
  pointer-events: all;
}

/**
 * Labels and Inputs.
 */

.label-tag {
  font-size: 14px;
  line-height: 18px;
  color: var(--white);
  background-color: var(--secondary-accent);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 24px;
}

.label-input {
  font-size: 0.875rem;
  line-height: 14px;
  font-weight: 600;
}

.label-input-sub {
  font-size: 0.75rem;
  font-weight: 400;
}

/**
 * Inputs.
 */

input:focus {
  outline: none;
}

.input-group {
  position: relative;
  margin: 6px 0 32px 0;
}

.input-text {
  background: transparent;
  border-width: 0px;
  border: none;
  border-bottom: 2px solid var(--primary-neutral);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 14px;
  font-size: .8rem;
  margin: 10px 0px;
  border-radius: 0;
  padding: 8px 0;
  text-indent: 10px;
}

.input-group .input-text-validation {
  position: absolute;
  top: 26px;
  right: 0;
  display: none;
}

.input-group .input-text-error-message {
  color: var(--primary-accent);
  display: none;
  font-size: 0.75rem;
  letter-spacing: 0.14px;
  font-weight: 600;
  line-height: 12px;
  margin-left: 18px;
}

.input-text.valid ~ .input-text-validation {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background-color: var(--tertiary-accent);
  display: inline-block;
}

.input-text.valid ~ .input-text-validation:after {
  content: url(../svg/checkmark-white.svg);
  color: white;
  display: inline-block;
  width: 20px;
  height: 20px;
  padding-left: 5px;
}

.input-text.invalid ~ .input-text-validation {
  content: url(../svg/exclamation-mark-red.svg);
  width: 20px;
  height: 20px;
  display: inline-block;
}

.input-text.invalid~.input-text-error-message {
  display: block;
  bottom: -18px;
  position: absolute;
}

/**
 * Footer stuff.
 */

.paid-for-by {
  color: var(--primary-dark);
  font-size: .5rem;
  font-weight: 500;
  border: 1px solid var(--primary-dark);
  max-width: 204px;
  margin: 14px auto;
  padding: 6px 19px;
}

/**
 * Interaction stuff.
 */

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/**
 * Responsive.
 */

@media screen and (min-width: 700px) {
  .headline {
    font-size: 32px;
    line-height: 40px;
    padding-bottom: 16px;
  }
  .headline2 {
    font-size: 26px;
    line-height: 34px;
    padding-bottom: 14px;
  }
  .headline3 {
    font-size: 24px;
    line-height: 32px;
    padding-bottom: 24px;
  }
  .headline4 {
    font-size: 22px;
    line-height: 28px;
  }
  .subheadline {
    font-size: 18px;
    padding-bottom: 32px;
  }
  .copy {
    font-size: 18px;
    line-height: 30px;
  }
  .copy2 {
    font-size: 20px;
  }
  .copy3 {
    font-size: 15px;
    line-height: 26px;
    padding-bottom: 8px;
  }
  .copy4 {
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
  }
  .copy5 {
    font-size: 14px;
  }
  .label-tag {
    font-size: 18px;
    padding: 7px 16px;
  }
}

/**
 * Min desktop.
 */

@media screen and (min-width: 1000px) {
  .headline {
    font-size: 36px;
    line-height: 44px;
    padding-bottom: 24px;
  }
  .headline2 {
    font-size: 30px;
    line-height: 38px;
    padding-bottom: 20px;
  }
  .headline3 {
    font-size: 26px;
    line-height: 34px;
  }
  .headline4 {
    font-size: 24px;
    line-height: 32px;
  }
  .subheadline {
    font-size: 20px;
    line-height: 20px;
    padding-bottom: 40px;
  }
  .copy {
    font-size: 20px;
    line-height: 34px;
  }
  .copy2 {
    font-size: 24px;
  }
  .copy3 {
    font-size: 16px;
    line-height: 30px;
  }
  .copy5 {
    font-size: 16px;
  }
  .label-tag {
    font-size: 20px;
    padding: 8px 16px;
  }
  .label-input {
    font-size: 18px;
  }

  .input-text {
    padding: 18px 0 21px 0;
    font-size: 18px;
  }

  .input-text.valid ~ .input-text-validation {
    top: 40px;
  }

  .input-text.invalid ~ .input-text-validation {
    top: 40px;
  }

  .button {
    font-size: 20px;
    padding: 8px 26px;
  }

  .button-arrow:after {
    top: 39%;
  }
}
