/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.mono {
  font-family: monospace;
}

.tal {
  text-align: left;
}

.tar {
  text-align: right;
}

.tac {
  text-align: center;
}

.ml10 {
  margin-left: 10px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

.hide-text {
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip: rect(0, 0, 0, 0);
  position: absolute;
}

.bg-red {
  background-color: red;
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, Arial, sans-serif;
  color: #2c3e50;
}

/**
 * Used to show copied status on hex code
 */
@keyframes fadeOutUp {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
}
.fadeup-leave {
  opacity: 1;
}

.fadeup-leave-active {
  animation: fadeOutUp 0.5s;
}

.fadeup-leave-to {
  opacity: 0;
}

/**
 * Used to fade-out the preloader
 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.5s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

[data-tooltip] {
  position: relative;
}
[data-tooltip]:before, [data-tooltip]:after {
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease-in-outs;
  position: absolute;
  z-index: 10;
  transform-origin: top;
  bottom: auto;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -10px);
}
[data-tooltip]:after {
  background: rgba(17, 17, 17, 0.9);
  border-radius: 4px;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 12px;
  padding: 0.5em 1em;
  white-space: nowrap;
  margin-top: 11px;
}
[data-tooltip]:before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  background-size: 100% auto;
  height: 6px;
  width: 18px;
  margin-top: 5px;
  margin-bottom: 0;
  content: "";
}

[data-tooltip]:hover:before,
[data-tooltip][data-tooltip-visible]:before,
[data-tooltip]:hover:after,
[data-tooltip][data-tooltip-visible]:after {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.btn {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  box-sizing: content-box;
  background-color: #1abc9c;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 30px;
  outline: 0 !important;
  border: 0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.btn:hover {
  background-color: rgb(19.8037383178, 143.1962616822, 118.8224299065) !important;
}

.burger {
  display: flex;
  align-items: center;
}
.burger span {
  margin-right: 5px;
}
.burger {
  text-decoration: none;
  color: #373737;
  font-size: 14px;
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.menu {
  padding-right: 0;
}
.menu__icon {
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
}
.menu__icon, .menu__icon:before, .menu__icon:after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #333;
  border-radius: 13px;
  transition-property: background-color, transform;
  transition-duration: 0.25s;
}
.menu__icon:before, .menu__icon:after {
  position: absolute;
  content: "";
}
.menu__icon:before {
  top: -5px;
}
.menu__icon:after {
  top: 5px;
}
.menu.is-active .menu__icon {
  background-color: transparent !important;
}
.menu.is-active .menu__icon:before {
  transform: translateY(5px) rotate(45deg);
}
.menu.is-active .menu__icon:after {
  transform: translateY(-5px) rotate(-45deg);
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.header {
  background-color: #FFF;
  border-bottom: solid 1px #F3F3F3;
  height: 50px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  z-index: 4;
  position: relative;
  justify-content: center;
}
@media (min-width: 620px) {
  .header {
    justify-content: space-between;
  }
}
.header__branding {
  display: flex;
  align-items: center;
}
.header__logo {
  width: 130px;
  height: 30px;
  margin-top: -4px;
}
/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.actionbar {
  background-color: #FFF;
  height: 36px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  z-index: 4;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.22) 0px 1px 4px;
  padding: 0;
}
@media (min-width: 700px) {
  .actionbar {
    padding: 0 20px;
  }
}
.actionbar__section {
  flex-grow: 1;
  flex-basis: 33.333%;
  margin-top: -2px;
}
.actionbar__section--swatch {
  display: flex;
  justify-content: center;
  flex-basis: 100%;
}
.actionbar__left {
  display: flex;
}
.actionbar__nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  height: 38px;
  display: none;
}
@media (min-width: 700px) {
  .actionbar__nav {
    display: flex;
  }
}
.actionbar__nav-item {
  margin-left: 10px;
  position: relative;
  height: 100%;
  width: 40px;
  text-align: center;
}
.actionbar__nav-item:not(:first-child):before {
  content: "|";
  margin-left: 10px;
  position: absolute;
  left: -17px;
  top: 9px;
  color: #eaeaea;
}
.actionbar__nav-link {
  padding: 7px 8px 3px;
  border-radius: 3px;
}
.actionbar__nav-link:hover {
  background-color: #f3f3f3;
}
.actionbar__nav-icon {
  width: 16px;
  height: 16px;
  margin-top: 12px;
  fill: #3c4859;
}
.actionbar__burger {
  display: none;
}
@media (min-width: 700px) {
  .actionbar__burger {
    display: flex;
  }
}

.social {
  margin: 0;
  padding: 0;
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.display {
  display: block;
  background-color: #fff;
  height: calc(100vh - 86px);
  position: absolute;
  width: 100%;
  top: 86px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.display__gradientname {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  top: -8px;
  color: #fff;
  font-size: 20px;
  margin-top: 0;
  text-align: center;
  width: 300px;
}
.display__footer {
  position: absolute;
  bottom: 0;
  font-size: 10px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  opacity: 0.5;
}
.display__byline {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff;
  width: 300px;
  text-align: center;
}
.display__byline a {
  color: inherit;
  text-decoration: none;
  border-bottom: solid 1px rgba(234, 234, 234, 0.49);
}

.hex {
  display: inline-block;
  font-family: "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 15px;
  position: relative;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 3px;
  transition: background 0.2s ease-in-out;
  display: flex;
  align-items: center;
}
.hex:hover {
  background-color: #eceaea;
}
.hex__block {
  position: relative;
  margin-right: 3px;
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: #eaeaea;
}
.hex__name {
  margin-left: 3px;
  font-size: 14px;
}
.hex__copied {
  position: absolute;
  background-color: #eaeaea;
  padding: 3px 5px;
  font-size: 12px;
  border-radius: 3px;
  margin-left: -27px;
  bottom: 0;
  left: 50%;
  opacity: 1;
}
.hex__arrow {
  font-size: 16px !important;
  margin-top: 2px;
  color: #767676;
}
.hex__arrow:last-child {
  display: none;
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.nav::before, .nav::after {
  clear: both;
  content: "";
  display: table;
}
.nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  display: block;
  width: 100%;
}
.nav__item {
  transition: all 0.2s ease-in-out;
  display: inline-block;
  height: 100px;
  width: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
}
.nav__item:first-child {
  float: left;
}
.nav__item:last-child {
  float: right;
}
.nav__item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.nav__item:hover .nav__arrow {
  width: 18px;
}
.nav__arrow {
  width: 15px;
  height: 24px;
  top: 50%;
  position: absolute;
  margin-top: -9px;
  fill: #fff;
  transition: width 0.2s ease-in-out;
}
.nav__arrow--left {
  margin-left: 16px;
}
.nav__arrow--right {
  margin-left: 24px;
}

.shortlist {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  height: 70px;
  padding: 0 20px;
}
.shortlist__item {
  height: 40px;
  border-radius: 3px;
  flex-basis: 9.3%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
}
.shortlist__item.active {
  border: solid 2px #fafafa;
}
.shortlist__link {
  display: block;
  text-decoration: none;
  color: #fafafa;
  font-family: "Source Code Pro", monospace;
  font-size: 12px;
}
.shortlist__link:hover {
  text-decoration: underline;
}

/**
 * Used by the respond-to() mixin
 * @type map
 */
/**
 * Uses $breakpoints from _breakpoints.scss
 */
/**
 * Select parts of the burger
 */
/**
 * Burger animations
 */
.palette {
  display: block;
  background-color: #333;
  height: calc(100vh - 86px);
  position: absolute;
  z-index: 3;
  width: 100%;
  top: 86px;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 8px;
  overflow: scroll;
  box-sizing: border-box;
  backface-visibility: hidden;
  transition: all 0.25s cubic-bezier(0.62, 0.28, 0.23, 0.99);
  transform: translate3d(0, -100%, 0);
  will-change: transform;
  opacity: 0;
}
.palette.active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.palette__list::before, .palette__list::after {
  clear: both;
  content: "";
  display: table;
}
.palette__list {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}
.palette__item {
  flex: 0 1 33.33%;
  box-sizing: border-box;
  padding: 10px;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}
.palette__item:hover {
  background-color: #222;
  border-radius: 3px;
  transform: scale(1.02);
}
.palette__item:hover .palette__name {
  border-bottom: solid 1px rgba(234, 234, 234, 0.49);
}
.palette__gradient {
  height: 150px;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.palette__name {
  text-align: center;
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: "Source Code Pro", monospace;
  font-size: 15px;
}

.modal__mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal__container {
  width: 480px;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
  transition: all 0.3s ease;
  text-align: center;
}
.modal__title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
}
.modal__text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.modal__content {
  height: 105px;
  background-color: #F9FAFC;
  margin-bottom: 20px;
}
.modal__success {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-enter,
.modal-leave-active {
  opacity: 0;
}

.modal-enter .modal__container,
.modal-leave-active .modal__container {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.codeblock {
  overflow: auto;
  text-align: left;
  font-family: "Source Code Pro", Consolas, monospace;
  color: #476da5;
}
.codeblock__comment {
  color: #ababab !important;
}
.codeblock__property {
  color: #2aa198 !important;
}
.codeblock__spec {
  color: #d33682 !important;
}

.sponsor {
  align-items: center;
  text-decoration: none;
  display: none;
}
@media (min-width: 840px) {
  .sponsor {
    display: flex;
  }
}
.sponsor:hover .sponsor__cta {
  transform: translate3d(3px, 0, 0);
}
.sponsor__add {
  width: 14px;
  height: 14px;
  margin: 0 8px 0 8px;
}
.sponsor__logo {
  width: 120px;
  height: 15px;
  fill: #48A4AB;
}
.sponsor__cta {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
  background-color: #e2e2e2;
  height: 24px;
  border-radius: 50px;
  padding: 0 2px;
  margin-left: 10px;
}
.sponsor__byline {
  font-size: 12px;
  margin-left: 8px;
  color: #656565;
  text-decoration: none;
}
.sponsor__arrow {
  transform: rotate(-90deg);
  width: 21px;
  height: 21px;
  margin-left: -4px;
  margin-top: 2px;
  fill: #656565;
}

/* Vanilla JS additions */

/* Modal visibility - default hidden */
.modal__mask {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal__mask.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__mask.is-visible .modal__container {
  transform: scale(1);
}

.modal__mask .modal__container {
  transform: scale(1.1);
}

#swatch-container {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
