/**
 * This stylesheet is for styles you want to include only when displaying demo
 * styles for grids, animations, color swatches, etc.
 * These styles will not be your production CSS.
 */

/**
 * Force body to have a white background as wood defines it as #f1f1f1
 */
body {
  /*background-color: #f1f1f1;*/
}

#sg-patterns {
  -webkit-box-sizing: border-box !important;
          box-sizing: border-box !important;
  max-width: 100%;
  padding: 0 0.5em;
}

.demo-animate {
  background: #ddd;
  padding: 1em;
  margin-bottom: 1em;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}

.sg-colors {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sg-colors li {
  -webkit-box-flex: 1;
      -ms-flex: auto;
          flex: auto;
  padding: 0.3em;
  margin: 0 0.5em 0.5em 0;
  min-width: 5em;
  max-width: 14em;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.sg-swatch {
  display: block;
  height: 4em;
  margin-bottom: 0.3em;
  border-radius: 5px;
  padding: 0;
  border-width: 3px;
  line-height: 4em;
}

.sg-label {
  padding-top: 5px;
  font-size: 80%;
  line-height: 1;
}

.sg-text {
  font-size: 100%;
  line-height: calc(4em - 5px);
}

/**
 * Reset patternlab titles as they got messed up with wood styles (because of Metapro font)
 */
.sg-main .sg-pattern-category-title,
.sg-main .sg-pattern-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}

.sg-main .sg-pattern-category-title {
  font-size: 2.5rem !important;
  background-color: #ddd;
}

.sg-main .sg-pattern-title {
  font-size: 2rem !important;
  background-color: #e8e8e8;
}

.sg-main .sg-pattern-title a {
  font-weight: 100;
}
