/* Entry point for your PostCSS build */

.preview-iframe {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.25rem;
  width: 100%;
}

.button-full-width {
  width: 100%;
}

/* Filter chips are short labels; wrapping inside one reads as a typo, so
   only allow line breaks between chips. */
.project-filters a {
  white-space: nowrap;
}
.omniauth-button {
  display: inline-flex;
  padding: 0.625rem 1.25rem;
  align-items: center;
  border-radius: 0.5rem;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
}
.omniauth-button :hover {
    opacity: 0.8;
  }
.omniauth-button img {
    margin-right: 0.5rem;
    margin-left: -0.25rem;
    width: 1rem;
    height: 1rem;
    filter: invert(100%);
  }

/* Twitterボタンの背景色 */
.twitter-omniauth-button {
  background: #1da1f2;
}

/* Discordボタンの背景色 */
.discord-omniauth-button {
  background: #5865f2;
}

.internal-link {
  color: #3b82f6;
}

.internal-link :hover {
    color: #1d4ed8;
  }

.internal-link ::after {
    content: "_↗";
  }

.user-profile-image {
  width: 100%;
}

.flash-wrapper {
  display: flex;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.flash-wrapper  > .icon {
    margin-right: 0.5rem;
    width: 1rem;
  }

.notice-color {
  color: #1d4ed8;
  background-color: #dbeafe;
}

.alert-color {
  color: #b91c1c;
  background-color: #fee2e2;
}

/*
 * Mobile page margins: the bundled Polaris only gives .Polaris-Page
 * horizontal padding from 30.625em up, so on phones every page's cards
 * and content sit flush against the screen edges while the page header
 * (wrapped in a Polaris Box) keeps a 16px inset. Give the page the same
 * 16px inset below that breakpoint, and let the header Box drop its own
 * inline padding there so the title aligns with the content, matching
 * the relationship the layout already has on wider screens.
 */
/* stylelint-disable selector-class-pattern -- Polaris class names are PascalCase by design */
@media (width <= 30.6225em) {
  body .Polaris-Page {
    padding-inline: var(--p-space-400);
  }

  .Polaris-Page > .Polaris-Box {
    --pc-box-padding-inline-start-xs: var(--p-space-0) !important;
    --pc-box-padding-inline-end-xs: var(--p-space-0) !important;
  }
}
/* stylelint-enable selector-class-pattern */
