:root {
  --fiddle-gradient: linear-gradient(
    45deg,
    #ffb662 10.42%,
    #ff7a00 70.83%,
    #ff7a00 90.1%,
    #ff7a00 90.11%
  );
}

.tagline {
  font-size: 3rem;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  color: var(--ifm-color-white);
  font-weight: bolder;
  margin-bottom: 2rem;
}

.header {
  --ifm-button-size-multiplier: 0.9;
  background: var(--electron-color-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
  margin-bottom: 10rem;
}

.fiddleHeroScreenshot {
  margin-top: 2rem;
  margin-bottom: -10rem;
  max-width: min(800px, 95vw);
}

.heroEmphasis {
  background: var(--fiddle-gradient);
  font-style: normal;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blurb {
  text-align: center;
  font-size: 1.1rem;
  max-width: 60rem;
  padding: 0 4rem 4rem;
  margin: 0 auto;

  @media (max-width: 768px) {
    padding: 0 0 4rem;
    text-align: left;
  }
}

.downloadsContainer {
  padding-top: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

.downloadsCardsContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;

  @media (max-width: 768px) {
    grid-template-columns: none;
  }
}

.downloadsCard {
  --ifm-button-size-multiplier: 0.7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.downloadsCardFooter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

.downloadOS {
  path {
    fill: var(--electron-color-dark);
  }
}
:root[data-theme='dark'] {
  .downloadOS {
    path {
      fill: var(--electron-color-light);
    }
  }
}

.buttonFiddle {
  background: var(--fiddle-gradient);
  background-size: 200% 100%;
  background-position: 100% 0;
  font-weight: bold;

  transition: 0.2s background-position ease-in;

  &:hover {
    background-position: 0 0;
  }
}

.otherDownloadsLink {
  margin: 1rem 0;
  color: var(--ifm-color-white);

  a {
    color: var(--electron-color-light);
  }
}

// Like infima's default .button-group class,
// but instead removes the grouping for super narrow viewports.
.responsiveButtonGroup {
  display: flex;

  @media (min-width: 501px) {
    gap: var(--ifm-button-group-spacing);
    & > :global(.button):not(:last-child) {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
    }

    & > :global(.button):not(:first-child) {
      border-bottom-left-radius: 0;
      border-top-left-radius: 0;
    }
  }

  @media (max-width: 500px) {
    flex-direction: column;
    gap: 1rem;
  }
}
