/*//// Base Styles ////*/

div,
article,
section,
main,
footer,
header,
form,
fieldset,
pre,
code,
p,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="password"] {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: #a2ffe0;
  color: #262626;
  margin: 0 1.5em;
}

h1 {
  font-size: 2.2em;
}
h2 {
  font-size: 2em;
  margin-top: 1.5em;
}
h3 {
  font-size: 1.8em;
}

table {
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px -4px #666;
  border: 1px solid #fff;
}

table td,
table th {
  padding: .5em;
  border: 1px solid #ddd;
}

img {
  border: 0;
  max-width: 100%;
}

a {
  color: #000;
  text-decoration: underline;
}

/*//// Code Snippet Styles  ////*/

code,
samp,
kbd,
pre {
  background-color: #141414;
  color: #f7f7f7;
  font-family: Inconsolata, Menlo, Consolas, monospace;
  font-size: .9em;
  padding: 2px 6px;
  text-align: left;
  border-radius: 3px;
}

pre {
  line-height: 1.2em;
  margin: 0;
  overflow: auto;
  padding: 1em;
}

.examples pre,
.hover-examples pre,
.preview-examples pre {
  padding-left: 2.75em;
  border-radius: 0;
}

/* Override 'code' css rules if using 'pre > code' markup. */
pre > code {
  font-size: 1em;
  padding: 0;
}

/* for IE7 and IE6 */
*:first-child + html pre {
  overflow: visible;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2em;
}

* html pre {
  overflow: visible;
  overflow-x: auto;
  padding-bottom: 2em;
}

/* Reset PrismJS' border styles */
.main pre[class*="language-"],
.example pre[class*="language-"] {
  border: 0;
  border-radius: 3px;
}

/*//// Page Styles ////*/
.header {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1.5em;
}

.page-title {
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto;
}

.desc {
  padding: 1em 0;
  text-align: center;
}
.maindesc {
  font-size: 30px;
  margin-bottom: 1em;
}
.subdesc {
  font-size: 15px;
}

.more-examples {
  text-align: right;
  font-size: 12px;
  margin: 0 5px 0 0;
}

.main {
  line-height: 1.4;
  margin: 0 auto;
  max-width: 720px;
}
.used-by {
  text-align: center;
  position: relative;
  padding: 1em 0;
}
.used-by-label {
  font-size: 20px;
  text-align: center;
  font-weight: 400;
}
.used-by a {
  display: inline-block;
}
.used-by img {
  border-radius: 8px;
  margin: 0 10px;
}

.anchorlink-examples {
  float: right;
  margin: 0 0 1em 1em;
  box-shadow: 0 0 10px -3px #666;
}

.options-table-wrap {
  overflow: auto;
}
.options-table {
  min-width: 500px;
  margin: 1em 0;
}

.minicol {
  width: 62px;
}

.footer {
  text-align: center;
  color: #777;
}
.footer a {
  color: #777;
}

/*///////////// Examples /////////////*/

.examples,
.hover-examples,
.preview-examples {
  max-width: 720px;
  margin: 0 auto;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-line-pack: end;
  align-content: flex-end;
}

.example {
  width: 350px;
  max-width: 350px;
  min-height: 160px;
  margin: 5px;
}
.example-label {
  font-size: 12px;
  color: #777;
  display: none;
}
.example-content {
  padding: 0 0 0 3.5em;
  overflow: hidden;
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 10px -3px #666;
}

.example-code-link {
  width: 16px;
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: Courier, monospace;
  color: #aaa;
  text-decoration: none;
}

.example-code-link:hover::after,
.example-code-link:focus::after {
  left: -50px;
  opacity: 1;
  transition: all .25s ease-in;
}

.example-code-link::after {
  content: "SOURCE";
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  display: block;
  position: absolute;
  text-transform: uppercase;
  top: 7px;
  left: -45px;
  opacity: 0;
  transition: all .25s ease-in;
}

.example-code {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease-out;
}

.css {
  border-top: 1px solid #666;
}

.css,
.js {
  position: relative;
}

.css::before,
.js::before {
  left: 0;
  top: 0;
  padding: 1px 4px;
  color: #fff;
  background-color: #ff5231;
  position: absolute;
  font-size: 11px;
  text-transform: uppercase;
}

.css::before {
  content: "css";
}
.js::before {
  content: "js";
}

.example-content > p {
  width: 310px;
}

.anchorjs-link {
  color: #ff5231;
}

/*///// Styles within Examples /////*/
.examples .example:nth-child(4) .anchorjs-link,
.preview-examples .example:nth-child(2) .anchorjs-link {
  font-family: Helvetica, Arial, sans-serif;
}

.examples .example:nth-child(3) .anchorjs-link {
  color: #aaa;
}
.examples .example:nth-child(3) .anchorjs-link:hover {
  color: #ff5231;
}

.examples .example:nth-child(8) .anchorjs-link {
  font-weight: 200;
  margin-left: 1em !important;
  padding-right: .375em !important;
  padding-left: .375em !important;
  font-size: .5em;
  border: 1px dashed #ffbaac;
  vertical-align: middle;
}

.examples .example:nth-child(9) .anchorjs-link {
  width: 14px;
  height: 32px;
  margin-top: 6px;
  background: url("img/mini-logo.png") no-repeat;
  margin-left: -1.25em !important;
}

.examples .example:nth-child(10) .anchorjs-link::after {
  position: absolute;
  top: -5px;
  left: 5px;
}

.examples .example:nth-child(10) .anchorjs-link {
  background-color: #ff5231;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: inline-block;
  color: #fff;
  margin-top: 4px;
  margin-left: -1.4em !important;
  padding: 0 !important;
}

.examples .example:nth-child(12) .anchorjs-link {
  display: inline-block;
  background: url("img/hyperlink.svg") no-repeat;
  margin-left: 8px !important;
  width: 14px;
  height: 24px;
}

.examples .example:nth-child(13) .anchorjs-link {
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDIwIDEwIj48cGF0aCBmaWxsPSIjZmY1MjMxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAwaC0yLjY5NWMuOTM3LjYyNSAxLjgxNiAxLjczOCAyLjA5IDIuNWguNTg1YzEuMjcgMCAyLjUgMS4yNSAyLjUgMi41cy0xLjI3IDIuNS0yLjUgMi41aC0zLjc1QzEwIDcuNSA4LjczIDYuMjUgOC43MyA1YzAtLjQ1LjEzNy0uODc5LjM1Mi0xLjI1SDYuNDA2Yy0uMDk3LjQxLS4xNTYuODItLjE1NiAxLjI1IDAgMi41IDIuNDggNSA0Ljk4IDVIMTVjMi41IDAgNS0yLjUgNS01cy0yLjUtNS01LTV6TTUuNjA1IDcuNUg1LjAyYy0xLjI3IDAtMi41LTEuMjUtMi41LTIuNXMxLjI3LTIuNSAyLjUtMi41aDMuNzVjMS4yMyAwIDIuNSAxLjI1IDIuNSAyLjUgMCAuNDUtLjEzNy44NzktLjM1MiAxLjI1aDIuNjc2Yy4wOTctLjQxLjE1Ni0uODIuMTU2LTEuMjUgMC0yLjUtMi40OC01LTQuOTgtNUg1QzIuNSAwIDAgMi41IDAgNXMyLjUgNSA1IDVoMi42OTVjLS45MzctLjYyNS0xLjgxNi0xLjczOC0yLjA5LTIuNXoiLz48L3N2Zz4=") no-repeat;
  margin-top: 15px;
  height: 16px;
  width: 6px;
  margin-left: -1em !important;
}

.examples .example:nth-child(14) .anchorjs-link {
  border-color: #ff5231 #ff5231 transparent;
  border-width: 15px 7px 6px;
  border-style: solid;
  margin-top: 10px;
  font-size: 22px;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-left: -1em !important;
}

.examples .example:nth-child(15) .anchorjs-link {
  margin-left: -2.05em !important;
}

/* Hover Examples */

.hover-examples .example:nth-child(2) *:hover > .anchorjs-link,
.hover-examples .example:nth-child(2) .anchorjs-link:focus {
  transition: color .25s linear;
}
.hover-examples .example:nth-child(2) .anchorjs-link:hover {
  color: #2500ad;
}

.hover-examples .example:nth-child(3) .anchorjs-link {
  transition: all .25s linear;
}
.hover-examples .example:nth-child(3) *:hover > .anchorjs-link,
.hover-examples .example:nth-child(3) .anchorjs-link:focus {
  margin-left: -1.375em !important;
}

.hover-examples .example:nth-child(4) h3 {
  display: -ms-flexbox;
  display: flex;
}
.hover-examples .example:nth-child(4) .anchorjs-link {
  background-color: #ff5231;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 200;
  font-size: 1rem;
  position: relative;
  top: 2px;
  -ms-flex: 1;
  flex: 1;
  margin-right: -6%;
  padding-right: 6%;
  padding-left: 42px !important;
  height: 36px;
  line-height: 38px;
  transition: all .5s ease;
  -ms-transform: translateX(100%);
  transform: translateX(100%);
}
.hover-examples .example:nth-child(4) .anchorjs-link::before {
  position: absolute;
  left: 0;
  display: block;
  width: 0;
  height: 0;
  border: 18px solid #fff;
  border-right-color: #ff5231;
  content: "";
  transition: all .5s ease;
  box-shadow: 0 3px 0 0 #fff; /* fixes a 1px issue... see: https://github.com/bryanbraun/anchorjs/issues/131 */
}
.hover-examples .example:nth-child(4) *:hover > .anchorjs-link,
.hover-examples .example:nth-child(4) .anchorjs-link:focus {
  -ms-transform: translateX(0);
  transform: translateX(0);
}
.hover-examples .example:nth-child(4) *:hover > .anchorjs-link:hover,
.hover-examples .example:nth-child(4) .anchorjs-link:focus {
  background-color: #ff806a;
}
.hover-examples .example:nth-child(4) *:hover > .anchorjs-link:hover::before,
.hover-examples .example:nth-child(4) .anchorjs-link:focus {
  border-right-color: #ff806a;
}

.hover-examples .example:nth-child(5) .anchorjs-link::after {
  display: inline-block;
  transition: opacity .25s linear;
  font-family: Verdana, sans-serif;
  font-size: .75ex;
  font-weight: 100;
  padding: .5ex 1.5ex;
  background-color: #444;
  color: #fff;
  border-radius: .6ex;
  vertical-align: .8ex;
}
.hover-examples .example:nth-child(5) .anchorjs-link::before {
  content: "";
  display: inline-block;
  border-top: .3ex solid transparent;
  border-right: .5ex solid #444;
  border-bottom: .3ex solid transparent;
  vertical-align: .35ex;
}
.hover-examples .example:nth-child(5) .anchorjs-link:hover::after {
  background-color: #666;
}
.hover-examples .example:nth-child(5) .anchorjs-link:hover::before {
  border-right-color: #666;
}

/*////// Utilities ////////*/

/* Clearfix */
.group::after {
  content: "";
  display: table;
  clear: both;
}

/* github-corners styles */

.github-corner:hover .octo-arm {
  -webkit-animation: octocat-wave .56s ease-in-out;
  animation: octocat-wave .56s ease-in-out;
}

@-webkit-keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    -webkit-animation: none;
    animation: none;
  }
  .github-corner .octo-arm {
    -webkit-animation: octocat-wave .56s ease-in-out;
    animation: octocat-wave .56s ease-in-out;
  }
}
