/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #2e8555;
  --ifm-color-primary-dark: #29784c;
  --ifm-color-primary-darker: #277148;
  --ifm-color-primary-darkest: #205d3b;
  --ifm-color-primary-light: #33925d;
  --ifm-color-primary-lighter: #359962;
  --ifm-color-primary-lightest: #3cad6e;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #25c2a0;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: #4fddbf;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

/* Component Grid */

article .component-grid {
  max-width: 800px;
  margin-bottom: 22px;

  .component {
    border: 1px solid var(--ifm-color-emphasis-500);
    border-radius: var(--ifm-global-radius);
    margin: 0 auto 24px;
    width: 100%;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    overflow: hidden;

    &:hover {
      transform: scale(1.05);
    }

    > a {
      display: block;
      height: 100%;
      border-bottom: none;
    }

    h3 {
      font-size: 16px;
      font-weight: 600;
      margin: 0;
      padding: 0 10px;
      background-color: var(--home-button-primary);
      color: var(--home-button-primary-text);
      line-height: 36px;

      a {
        color: white;
      }
    }

    p {
      padding: 10px;
      font-size: 15px;
      margin: 2px;

      code {
        font-size: 15px;
        padding: 0 1px;
      }
    }
  }
}

html[data-theme="dark"] .component {
  border: 1px solid var(--ifm-color-emphasis-200);
}

@supports (display: grid) {
  article .component-grid {
    display: grid;
    grid-column-gap: 22px;
  }
}

@media only screen and (min-width: 768px) {
  article .component-grid.component-grid-border {
    border-bottom: 1px solid var(--ifm-table-border-color);
  }

  article .component {
    width: 30%;
    height: 150px;
    margin: 0 22px 22px auto;
    vertical-align: top;
  }

  @supports (display: grid) {
    article .component-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    @media only screen and (min-width: 1440px) {
      article .component-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    article .component {
      width: auto;
      height: auto;
      margin: 0;
    }
  }
}