:root {
  --yec-page-bg-color: #18232F;
  --yec-button-color: #15141A;
  --yec-button-bg-color: #B6E368;
  --yec-button-bg-color-hover: #cbeb93;
  --yec-button-bg-color-active: #e0f3be;
  --yec-button-border-color-focus: #000;
  --yec-donate-text-color: #FFF;
}

@font-face {
    font-family: "Jacquard 12";
    src: url("../fonts/jacquard12/Jacquard12-Regular.ttf");
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter/UcCo3FwrK3iLTcviYwY.woff2") format("woff2");
}

/* Don't move down content w banner. Navbar isn't fixed. */
.page {
  padding-top: 0 !important;
}

.banner {
  background-color: var(--yec-page-bg-color);
  z-index: 1000 !important;
  position: relative;
  right: 0;
  left: 0;
  top: 0;
}

.banner-content {
  height: auto;
  min-height: 360px;
  margin-inline: auto;
  padding: 0px;
  min-height: inherit;
  max-height: inherit;
}

.banner-content-spacer {
    margin-top: auto;
    margin-bottom: auto;
    padding: 2rem 1rem;
    min-height: inherit;
    max-height: inherit;
    @include media-breakpoint-up(md) {
      padding: 40px;
    }
}

.banner-close {
  position: absolute;
  right: 1rem;
  top: 2rem;
  z-index: 1;
  visibility: inherit;
  border-radius: 6px;
  color: #05161C !important;

  @include media-breakpoint-up(md) {
    right: 40px;
    top: 40px;
  }

  img {
    padding: 0 !important;
  }

  button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;

    &:hover {
      opacity: 0.75;
    }
    &:focus-visible {
      border-radius: 0.25rem;
      box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
    }
    &:active {
      opacity: 0.25;
      pointer-events: none;
    }
  }
}

.eoy-sr-only {
  height: 1px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

#trigger {
  position: absolute;
  top: -9999px;
}

#trigger:checked ~ #banner-header, .banner > #trigger:checked, #trigger:checked + label {
  display: none;
  visibility: hidden;
}

#banner-header {
  h1, p {
    color: var(--yec-donate-text-color);
  }

  h1 {
    display: inline;
    @include media-breakpoint-down(sm) {
      /* centered text */
      display: block;
      margin: 0 auto;
      width: fit-content;
    }
    font-family: "Jacquard 12", sans-serif;
    line-height: 85%;
    margin-bottom: 0px;
    font-size: 3.75rem;
    font-weight: 400;
    @include media-breakpoint-up(md) {
      font-size: 5rem;
    }
  }

  p {
    font-size: 1rem;
    font-family: "Inter", "SourceSans3-Regular", sans-serif;
    line-height: 150%;
    margin-top: 16px;

    strong {
      color: #B6E368;
    }
  }

}

.banner-content-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 54rem;
  gap: 2.5rem;

  @include media-breakpoint-up(md) {
    flex-direction: row-reverse;
    flex-wrap: nowrap;
  }
}

#yec-donate-button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0.625rem;
  align-self: stretch;
  margin-top: 1rem;

  @include media-breakpoint-up(md) {
    width: fit-content;
  }
}

#yec-donate-button {
  display: flex;
  background-color: var(--yec-button-bg-color);
  padding: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  align-self: stretch;
  color: var(--yec-button-color);
  border-radius: 0.4rem;

  font-weight: 700;
  line-height: 120%; /* 1.05rem */

  .donate-heart {
    height: 1rem;
    width: 1rem;
  }
  @include media-breakpoint-up(lg) {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

#yec-donate-button:hover, #yec-donate-button:focus {
  background-color: var(--yec-button-bg-color-hover);
}

#yec-donate-button:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(203, 235, 147, 0.5);
}

#yec-donate-button:active {
  background-color: var(--yec-button-bg-color-active);
}

.yec-illo {
  height: 8rem;
  @include media-breakpoint-up(md) {
    height: 12rem !important;
  }
}

/* send close button to left on rtl languages */
html:dir(rtl) {
  .banner-close {
    left: 1rem;
    right: auto;
    @include media-breakpoint-up(md) {
      left: 40px;
    }
  }
  .eoy-sr-only, #trigger {
    right: 0;
  }
}
