.xx {
  padding: 1em 0;
  margin: 0;
  background-color: white;
}

.xx-title {
    margin: 4.5em 0 0.25em 0;
    text-align: center;
}

@media (min-width: 40em) {

    .xx-title {
        margin-top: 2em;
    }

}

.xx-subtitle {
    text-align: center;
}

.xx .swatches {
    margin: 1em 0;
}

.xx .swatch {
  float: left;
  margin-bottom: 1em;
  width: 100%;
  
  background-color: white;
  padding: 10px 0;
  padding: 0.625rem 0;
}

.xx .swatch:last-child {
    margin-right: 0;
}

.xx .swatch-details {
  padding: 0 8px;
  padding: 0 0.5rem;
}

@media (min-width: 40em) {
  .xx .swatch {
    width: 31%;
    margin-right: 2%;
  }
}
@media (min-width: 50em) {
  .xx .swatch {
    width: 23%;
  }
}
@media (min-width: 60em) {
  .xx .swatch {
    width: 18.4%;
  }
}

.xx .swatch-preview {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
  float: left;
  height: 60px;
  width: 100%;
  margin: 0 0.8em 0.5em 0;
}

.xx .swatch-details {
  display: block;
  margin: 0;
  padding: 1em 0;
  font-size: 0.8em;
  color: #fff;
  text-align: center;
  clear: both;
  font-family: "Gotham A", "Gotham B", "Open Sans Regular", "Verdana", "Helvetica", "Arial";
}

@media (min-width: 70em) {
  .xx .swatch-details {
    clear: none;
  }
}

.xx .pattern {
  clear: both;
  float: left;
  margin: 0;
  padding-top: 3.5em;
  padding-bottom: 1.5em;
  width: 100%;
}

.xx-patchwork .pattern {
  margin: 0;
  border: none;
  padding: 0;
}

.xx .pattern-name {
  font-family: "Gotham A", "Gotham B", "Open Sans Regular", "Verdana", "Helvetica", "Arial";
  font-size: 16px;
  text-transform: none;
  margin: 0;
}

.xx .pattern-details {
  color: #004b6a;
  background-color: #fbf9f9;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
  padding: 0.5em 1%;
  width: 96%;
  margin-left: 2%;
  overflow: hidden;
  display: block;
  border: 1px solid;
  border-color: #e5e5e5;
  border-radius: 3px 3px 0 0;
}

.xx .pattern-markup {
  border: 1px solid;
  border-color: #e5e5e5;
  width: 64%;
  display: block;
  font-size: 12px;
  overflow: scroll;
  max-height: 200px;
  padding: 1em 2%;
  margin: 1em 0;
  float: left;
}

.xx .pattern-markup,
.xx :not(pre) > code[class*="language-"] {
  padding: 1em 2% !important;
  line-height: 1.7em;
}

.xx .pattern-details:hover {
  cursor: pointer;
}

.xx .pattern .pattern-code {
  border: 1px solid #ccc;
  float: left;
  width: 67.5%;
  margin: 0.5em 0 0.5em 0;
  font-family: Menlo,Monaco,'Courier New',Courier,monospace;
  font-size: 13px;
  line-height: 1.2em;
  padding: 0.5em;
}

.xx .pattern-usage {
  float: right;
  width: 30%;
  margin: 1.25em 0 0.5em 0;
  font-size: 13px;
  white-space: pre-line;
  line-height: 1.4em;
  font-family: "Gotham A", "Gotham B", "Open Sans Regular", "Verdana", "Helvetica", "Arial";
}

.xx .pattern-preview {
  padding: 0.1px 10px;
  background-color: #fff;
  border: 1px solid;
  border-color: #e5e5e5;
  border-radius: 0 0 3px 3px;
  border-top: none;
  width: 96%;
  margin-left: 2%;
  float: left;
}

.xx .pattern-preview :not(pre)>code[class*=language-], pre[class*=language-],
.xx .pattern-preview pre[class*=language-] {
    background-color: transparent;
}

.xx .pattern {
  clear: both;
}

.xx .pattern-link {
  float: right;
  padding: 0 0 0 0.5em;
}

.xx .pattern-link:hover,
.xx .pattern-link:focus,
.xx .pattern-link:active {
  border-bottom: none;
}

.xx .xx-nav {
    position: fixed;
    top: 0;
    padding: 0.5em 2%;
    left: 0;
    min-height: 30px;
    z-index: 10000;
    display: block;
    text-align: center;
}

@media (min-width: 40em) {
    
    .xx .xx-nav {
        text-align: left;
    }
    
    .xx .xx-nav,
    .xx .xx-nav .inline-items {
        float: left;
    }
    
    .xx .pattern-jump {
        float: right;
    }

}

.xx .pattern-jump {
    margin: 0.75em 0;
}

/* Pattern overrides */

.xx .sponsor-top,
.xx .deadly-subtitle {
    position: relative;
    top: 0;
    left: 0;
}