/* 原稿用 Compass（@include animation / @include keyframes）写动画，
   那是个已停维护的 Ruby Sass 框架，这里展开成标准 CSS。 */

body {
  background: #fed75a;
  overflow: hidden;
}

figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  /* figure 默认带 margin，不清掉整个画面会偏右下 */
  margin: 0;
}

svg {
  padding: 5vw;
  width: 90vw;
}

/* 每个碎片都是 svg 的直接子元素 */
svg > * {
  fill: #1c1c1c;
  stroke: #1c1c1c;
  stroke-width: 0.85px;
}

/* 悬停提示 */
body:hover:after {
  content: "Hover to Slow Motion";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1vh;
  color: #1c1c1c;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font: 700 9px/14px Tahoma, sans-serif;
  animation: tip 2.5s forwards;
}

@keyframes tip {
  0%,
  100% {
    opacity: 0;
  }
  10%,
  80% {
    opacity: 1;
  }
}
