/* 
Contains portions from

https://codepen.io/vinceSigner/pen/vbbRNb 
Jan Vincent Panes 

*/
:root {
  color-scheme: only dark;
  --bg-color: hsl(220,25%,10%);
  --draw-color: hsla(45, 100%, 50%, 1);
  --glow-color: hsla(0, 100%, 50%, 0.3);
  --transparent-color: hsla(0,0%,0%,0);
  --glow: inset 0 0 3px var(--draw-color), 
                0 0 2px var(--draw-color), 
         inset 0 0 10px var(--glow-color), 
               0 0 70px var(--glow-color);
  --rotate-timing: ease-in-out;
  --rotate-degree: -3600deg;
  --rotate-slow: 30s;
  --rotate-medium: 20s;
  --rotate-fast: 10s;
}
html,
body{
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
}
body{
  font-size: 13px;
  color: #fbfbfb;
  overflow: auto;
}
#content{
  position: relative;
  text-align: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-transition: all .3s ease-out;
          transition: all .3s ease-out; 
}
.start{
  padding: 0;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 50%;
  -webkit-transition: all .3s linear;
          transition: all .3s linear;
}
.start.echo:hover{
  animation:
    fadein 0.3s linear, 
    echo 0.6s 0.3s linear infinite;
}
.start::after{
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 10px;
  background: var(--draw-color);
  box-shadow: var(--glow);
  border-radius: 25px;
  -webkit-transition: all .3s linear;
          transition: all .3s linear; 
}
.start.echo.d1:hover{
  animation:
    d1 .6s linear infinite;
}
.start:hover::after{
  background: var(--draw-color);
}
.start.echo.d1:hover::after{
  background: var(--glow-color);
}
.start.active{
  box-shadow: 0 0 0 2px var(--draw-color); 
}
.start.active:hover{
  animation: fadeout .6s linear;
}
.start.active.done{
  -webkit-transition: all .3s linear;
          transition: all .3s linear;
          box-shadow: 0 0 0 2px var(--draw-color);
}
.start.active.done:hover{
  animation: none;
}
.start.active.done:after{
  background: var(--draw-color);
  width: 6px;
  height: 6px;
  margin: 22px;
  -webkit-transition: all .3s ease-out;
          transition: all .3s ease-out;
}
.hexagram {
  position: relative;
  display: inline-block;
  line-height: 60px;
  font-size: 60px;
  margin-bottom: 10px;
}
.hexagram .ch1::after,
.hexagram .ch2::after,
.hexagram .ch3::after,
.hexagram .ch4::after,
.hexagram .ch5::after,
.hexagram .ch6::after {
  content: " ";
  display: inline-block;
  width: 54px;
  height: 6px;
  position: absolute;
  background-color: hsla(172,15%,15%,0.66);
  left: 0;
  mix-blend-mode: hard-light;
}
.ch1::after {
  top: 45px;
}
.ch2::after {
  top: 36px;
}
.ch3::after {
  top: 27px;
}
.ch4::after {
  top: 18px;
}
.ch5::after {
  top: 9px;
}
.ch6::after {
  top: 0;
}
.linetext{
  display: inline-block;
  text-align: left;
  margin: 20px;
}
.analysis{
  opacity: 0;
  max-height: 0;
  transition: opacity .2s linear, max-height .6s ease-in .2s;
}
.analysis.active{
  opacity: 1;
  max-height: 500px;
  transition: opacity .2s linear .6s, max-height .6s ease-in;
}
.button.linkbutton{
  background: hsla(172,15%,25%,1);
  border-radius: 2px;
  color: #fbfbfb;
  margin-bottom: 20px;
}
.button.linkbutton:hover {
  background: hsla(172,15%,35%,1);
}
.c1 {
  border-radius: 100%;
  height: 200px;
  width: 200px;
  position: absolute;  
  margin-top: -75px;
  margin-left: -75px;
  border: 1px solid var(--draw-color);
  animation: rotateRight var(--rotate-slow) var(--rotate-timing) infinite;
  pointer-events: none;
  transition: opacity .2s linear .6s;
  box-shadow: var(--glow);
}
.start.active .c1{
  opacity: 0.2;
}
.c1 .c2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  height: 190px;
  width: 190px;
  border: 1px solid var(--draw-color);
  border-style: dashed;
  box-shadow: var(--glow);
}
.c1 .c2 .c3 {
  position: absolute;
  margin-top:4px;
  margin-left:4px;
  border: 1px solid var(--draw-color);
  height: 180px;
  width: 180px;
  border-radius: 100%;
  animation: rotL var(--rotate-medium) var(--rotate-timing) infinite;
  box-shadow: var(--glow);
}
.c1 .c2 .c3 .rect1 {
  border: 1px solid var(--draw-color);
  border-style: dotted;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 120px;
  width: 120px;
}
.c1 .c2 .c3 .rect1 .miniC {
  box-sizing: content-box;
  text-align: center;
  height: 118px;
  width: 118px;
  position: relative;
  box-shadow: var(--glow);
}

.c1 .c2 .c3 .rect1 .miniC .box {
  box-sizing: content-box;
  height: 10px;
  width: 10px;
  border: 1px solid var(--draw-color);
  border-radius: 100%;
  margin: 4px;
}

.c1 .c2 .c3 .rect1 .miniC .miniC1 {
  box-sizing: content-box;
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20px;
  width: 20px;
  border: 3px solid var(--draw-color);
  border-radius: 100%;
}
.c1 .c2 .c3 .rect1 .miniC .miniC2 {
  box-sizing: content-box;
  position: absolute;
  top: 50%;
  left: -12%;
  transform: translate(-50%, -50%);
  height: 20px;
  width: 20px;
  border: 3px solid var(--draw-color);
  border-radius: 100%;
}
.c1 .c2 .c3 .rect1 .miniC .miniC3 {
  box-sizing: content-box;
  position: absolute;
  top: 50%;
  left: 112%;
  transform: translate(-50%, -50%);
  height: 20px;
  width: 20px;
  border: 3px solid var(--draw-color);
  border-radius: 100%;
}
.c1 .c2 .c3 .rect1 .miniC .miniC4 {
  box-sizing: content-box;
  position: absolute;
  top: 112%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20px;
  width: 20px;
  border: 3px solid var(--draw-color);
  border-radius: 100%;
}
.c1 .c2 .c3 .rect1 .c4 {
  border: 1px solid var(--draw-color);
  height: 120px;
  width: 120px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  border-style: dotted;
  box-shadow: var(--glow);
}
.c1 .c2 .c3 .rect1 .c4 .rect2 {
  border: 1px solid var(--draw-color);
  height: 80px;
  width: 80px;
  margin: 19px auto 0px auto;
  animation: rotateRight var(--rotate-fast) var(--rotate-timing) infinite;
  box-shadow: var(--glow);
}
.c1 .c2 .c3 .rect1 .c4 .rect3 {
  border: 1px solid var(--draw-color);
  height: 78px;
  width: 78px;
  transform: rotate(135deg);
  transform-origin: center center;
  box-shadow: var(--glow);
}
.c1 .c2 .c3 .rect1 .c5 {
  border: 1px solid var(--draw-color);
  height: 70px;
  width: 70px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  box-shadow: var(--glow);
}
.c1 .c2 .c3 .rect1 .c6 {
  border: 1px solid var(--draw-color);
  height: 50px;
  width: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  box-shadow: var(--glow);
}
@keyframes fadein {
  0% {
    box-shadow: 0 0 0 0 var(--transparent-color), 0 0 0 2em var(--transparent-color);
  }
  100% {
    box-shadow: 0 0 0 2em var(--draw-color), 0 0 0 4em var(--transparent-color);
  }
}
@keyframes echo {
  0% {
    box-shadow: 0 0 0 0 var(--draw-color), 0 0 0 2em var(--draw-color);
  }
  100% {
    box-shadow: 0 0 0 2em var(--draw-color), 0 0 0 4em var(--transparent-color);
  }
}
@keyframes fadeout {
  0% {
    box-shadow: 0 0 0 0 var(--draw-color), 0 0 0 2em var(--draw-color);
  }
  100% {
    box-shadow: 0 0 0 2px var(--draw-color), 0 0 0 4em var(--transparent-color);
  }
}
@keyframes rotateRight {
  0% {
    transform: rotate(var(--rotate-degree));
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes rotL {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(var(--rotate-degree));
  }
}
