/* ------------------------------------------
 * IT书包
 * 网址：www.itshubao.com
 * 整理：yinq<3331653644@qq.com> 
 -------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  display: none !important;
}

[tap] {
  cursor: pointer;
}

.fg-light {
  color: #FFF;
}

.fg-dark {
  color: #363639;
}

.canvas {
  overflow: hidden;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1;
  -webkit-box-flex: 4;
      -ms-flex: 4;
          flex: 4;
  font-size: 1.3vmin;
  -webkit-transition: 1.5s ease-in-out;
  transition: 1.5s ease-in-out;
  cursor: default;
}

.dial {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  background-image: -webkit-radial-gradient(50% 50%, circle, #ffffff, #000000);
  background-image: radial-gradient(circle at 50% 50%, #ffffff, #000000);
  mix-blend-mode: overlay;
}

.color-display {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  font-size: 1.35em;
}
.color-display a {
  text-decoration: none;
  color: inherit;
}

.color-brick {
  border-radius: 50%;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  padding: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  box-shadow: 1.5em 0 2.5em -2em rgba(0, 0, 0, 0.65);
}
.color-brick.current::after {
  content: '\f058';
  font-family: FontAwesome;
  font-size: 4.5vmin;
  position: absolute;
  top: 1em;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.color-ring-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) translateZ(0);
          transform: translate(-50%, -50%) translateZ(0);
}

.color-ring {
  position: relative;
  width: 35em;
  height: 35em;
  pointer-events: none;
  border-radius: 100%;
  overflow: visible;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
  line-height: 0;
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
}
.color-ring > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  position: absolute;
  top: -12vmin;
  right: 50%;
  bottom: 50%;
  left: 50%;
  -webkit-transform-origin: center bottom;
          transform-origin: center bottom;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  -webkit-transition: top 0.3s ease-out, -webkit-transform 0.3s ease-out;
  transition: top 0.3s ease-out, -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out, top 0.3s ease-out;
  transition: transform 0.3s ease-out, top 0.3s ease-out, -webkit-transform 0.3s ease-out;
}
.color-ring > div:nth-last-child(-n+2) {
  -webkit-transition: none;
  transition: none;
}
.color-ring > div:last-child {
  -webkit-transform-origin: right bottom;
          transform-origin: right bottom;
}
.color-ring > div:last-child .color-brick {
  pointer-events: none;
  border-radius: 0 100% 10%/20% 55%;
  box-shadow: 0.7em 1em 1.5em -1em rgba(0, 0, 0, 0.65);
}
.color-ring > div:last-child .color-brick::after {
  left: 0;
}

.color-info {
  position: relative;
  width: 13em;
  height: 13em;
  text-align: center;
  font-size: 2.1em;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 100%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: background 0.3s ease-out;
  transition: background 0.3s ease-out;
  box-shadow: 0 0.5em 4em -1em rgba(0, 0, 0, 0.9);
  border-radius: 100%;
}
.color-info > * + * {
  margin: 0;
}

html, body {
  margin: 0;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-family: "DIN Alternate", monospace;
}

.panel {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: .5em;
  line-height: 1;
  background: #FFF;
  color: #363639;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 1.5em;
  box-shadow: 0 0 2em -1em #363639;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.panel > div {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
}
.panel .button {
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  padding: .5em;
  border-radius: .25em;
  -webkit-transition: 0.3s ease-out;
  transition: 0.3s ease-out;
}
.panel .button:hover {
  box-shadow: 0 0.5em 1em -0.8em #363639;
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}
.panel textarea {
  width: 100%;
  height: 4.5em;
  padding: .5em;
  margin: 1em 0;
  border: 1px solid #c3c3c4;
  border-radius: .25em;
  font-size: 1em;
  resize: vertical;
}
.panel textarea:focus {
  outline: none;
}

.love.fg-dark {
  -webkit-text-stroke: 0.05em #363639;
}
.love.fg-light {
  -webkit-text-stroke: 0.05em #FFF;
}

.button.fg-dark {
  border: 0.1em solid #363639;
}
.button.fg-light {
  border: 0.1em solid #FFF;
}

@media screen and (max-width: 40em), screen and (orientation: portrait) {
  body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
  }

  .canvas {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }

  .panel {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
  .panel textarea {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin: 0 1em;
    height: auto;
  }
  .panel .love, .panel .button {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }

  .color-ring {
    width: 24em;
    height: 24em;
  }
  .color-ring > div {
    top: -15vmin;
  }

  .color-info {
    width: 12em;
    height: 12em;
  }
}