body {
  margin: 0;
  padding: 0;
}

header {
  background: #999;
}

header div p {
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0px 5px 0px 5px;
}

main {
  display: flex;
  align-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 20px;
}

div#ans-table {
  position: relative;
}

div#hommage {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  width: 240px;
  height: 350px;
  margin: auto;
  padding: 0;
  position: relative;
  z-index: 50;
  transition: all 0.5s;
}

.row {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  width: 240px;
  height: 80px;
  position: absolute;
}

div#hommage #row-1 {
  top: 0px;
}

div#hommage #row-2 {
  top: 90px;
}

div#hommage #row-3 {
  top: 180px;
}

div#hommage #row-4 {
  top: 270px;
  left: 80px;
}

#row-4 {
  width: 80px;
  z-index: 60;
  background: #7c7c7c;
}

.row.selected {
  background-color: rgba(90, 90, 90, 0.3);
}

#row-4.selected {
  background: #979797;
}

div#reel .row {
  margin: 0;
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
}

div#reel {
  position: relative;
  width: 560px;
  height: 400px;
  overflow: hidden;
  transition: all 0.5s;
}

div#reel::before {
  content: "";
  position: absolute;
  top: 0;
  width: 560px;
  height: 160px;
  background: linear-gradient(white 0%, white 60%, transparent 100%);
  z-index: 100;
  pointer-events: none;
}

div#reel::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 560px;
  height: 160px;
  background: linear-gradient(transparent 0%, white 40%, white 100%);
  z-index: 100;
  pointer-events: none;
}

div#reel.ex {
  height: 800px;
  transition: all 1s;
}

div#reel.ex::before {
  top: -160px;
}

div#reel.ex::after {
  bottom: -160px;
}

div#rev {
  position: absolute;
  background: #cccccc;
  width: 160px;
  height: 40px;
  top: 40px;
  left: 200px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 200;
}

div#fwd {
  position: absolute;
  background: #cccccc;
  width: 160px;
  height: 40px;
  bottom: 40px;
  left: 200px;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  z-index: 200;
}

div#reel.ex div#rev {
  top: -80px;
  opacity: 0;
  transition: all 1s;
}

div#reel.ex div#fwd {
  bottom: -80px;
  opacity: 0;
  transition: all 1s;
}

div#rev:hover,
div#fwd:hover {
  background: #dddddd;
  cursor: pointer;
}

div.eq {
  width: 560px;
  height: 80px;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

div.eq-inner {
  width: 560px;
  height: 80px;
  position: relative;
  font-size: 0;
  overflow: hidden;
}

div.eq-inner::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 200px;
  width: 0px;
  height: 0px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: #fcd;
  z-index: -1;
  transition: all 0.8s;
}

div.eq[n="true"] div.eq-inner::before {
  width: 80px;
  height: 80px;
}

div.eq-inner::after {
  content: "";
  position: absolute;
  top: 40px;
  right: 200px;
  width: 0px;
  height: 0px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background-color: #fcd;
  z-index: -1;
  transition: all 0.8s;
}

div.eq[c="d"] div.eq-inner::after {
  right: 200px;
  width: 80px;
  height: 80px;
}

div.eq[c="t"] div.eq-inner::after {
  right: 40px;
  width: 80px;
  height: 80px;
}

div.eq[c="h"] div.eq-inner::after {
  right: 520px;
  width: 80px;
  height: 80px;
}

div.eq.mt div.eq-inner::before {
  width: 480px;
  height: 480px;
}
div.eq.mt div.eq-inner::after {
  width: 480px;
  height: 480px;
}

#eq-9 {
  border-bottom: 1px dotted gray;
}

.const {
  width: 80px;
  height: 80px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.const p {
  font-size: 60px;
  margin: 0;
  padding: 0;
  position: absolute;
}

.sw {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50;
}

.sw .frame {
  width: 80px;
  height: 80px;
  position: relative;
  transition: all 0.3s ease-in-out;
  transform-style: preserve-3d;
}

.sw[m="1"] .frame {
  transform: rotateZ(-45deg);
}

.sw[m="2"] .frame {
  transform: rotateZ(-45deg) rotateX(90deg);
}

.sw[m="3"] .frame {
  transform: rotateX(90deg);
}

.panelx {
  top: 12px;
  left: 12px;
  position: absolute;
  width: 56px;
  height: 56px;
  background-color: #ff00ff66;
  transform: rotateZ(45deg) translateZ(2px);
}

.panely {
  top: 36px;
  left: 12px;
  position: absolute;
  width: 56px;
  height: 8px;
  background-color: #00ffff66;
  transform: rotateX(-90deg) rotateY(-45deg) translateZ(28px);
}

.panelz {
  top: 36px;
  left: 12px;
  position: absolute;
  width: 56px;
  height: 8px;
  background-color: #0000ff66;
  transform: rotateX(-90deg) rotateY(45deg) translateZ(28px);
}

.barx {
  top: 36px;
  left: 8px;
  position: absolute;
  width: 64px;
  height: 8px;
  transform: translateZ(4px);
  background-color: black;
  opacity: 0;
}

.bary {
  top: 8px;
  left: 36px;
  position: absolute;
  width: 8px;
  height: 64px;
  transform: translateZ(4px);
  background-color: black;
  opacity: 0;
}

.barz {
  top: 36px;
  left: 8px;
  position: absolute;
  width: 64px;
  height: 8px;
  transform: rotateX(-90deg) translateZ(4px);
  background-color: black;
  opacity: 0;
}

div#reel.ex .panelx,
div#reel.ex .panely,
div#reel.ex .panelz {
  transition: all 1s;
  opacity: 0;
}

div#reel.ex .barx,
div#reel.ex .bary,
div#reel.ex .barz {
  transition: all 1s;
  opacity: 1;
}

div#reel.ex .row:not(#row-4)::before {
  content: "(";
  font-size: 60px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 220px;
}

div#reel.ex .row:not(#row-4)::after {
  content: ")";
  font-size: 60px;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 220px;
}

#reel.ex #eq-0 .sw[i="0"],
#reel.ex #row-4 {
  opacity: 0;
}

#reel.ex #eq-0 .const[m="10"] {
  transform: translateX(50%);
}
#reel.ex #eq-0 .const[m="20"] {
  transform: translateX(-50%);
}

main div#cl {
  position: absolute;
  top: 0;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  animation: fade-in 0.5s;
}

main div#share-twitter a {
  font-size: 24px;
  background-color: #55acee;
  color: white;
  padding: 0.2em 1.5em;
  border-radius: 8px;
  text-decoration: none;
}

main div#share-twitter a:hover,
main div#share-twitter a:active {
  background-color: #77ccff;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

main div#cl.del {
  width: 0;
  height: 0;
  overflow: hidden;
}

main div#cl p:first-of-type {
  font-size: 120px;
  transform: rotate(5deg);
}

main div#cl p {
  color: black;
  font-weight: bold;
  text-shadow: 3px 3px 3px yellow, -3px -3px 3px yellow, -3px 3px 3px yellow,
    3px -3px 3px yellow, 3px 0px 3px yellow, -3px -0px 3px yellow,
    0px 3px 3px yellow, 0px -3px 3px yellow;
  margin: 12px;
}

header span.lit {
  background: #fcd;
  border-radius: 8px;
  color: black;
}

header span.active {
  font-weight: bold;
}

@media screen and (min-width: 840px) {
  main {
  }
}
