src/index.scss
$color-font: #555;
$color-bg: #ddd;
$color-bg-active: rgba(255, 255, 255, 0.25);
$box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

.sakana-widget {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  &-wrapper {
    pointer-events: none;
    position: relative;
    width: 100%;
    height: 100%;
  }

  &-app {
    pointer-events: none;
    position: relative;
  }

  &-canvas {
    z-index: 10;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &-main {
    z-index: 20;
    pointer-events: none;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  &-img {
    z-index: 40;
    cursor: move;
    pointer-events: auto;
    position: relative;
    background: no-repeat 50% 50%;
    background-size: cover;
  }

  &-ctrl {
    z-index: 30;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    height: 24px;
    width: 28px * 4;
    display: flex;
    border-radius: 6px;
    background-color: $color-bg;
    box-shadow: $box-shadow;

    &-item {
      height: 24px;
      width: 28px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: $color-font;
      background-color: transparent;

      &:hover {
        color: $color-font;
        background-color: $color-bg-active;
      }
    }
  }

  &-icon {
    height: 18px;
    width: 18px;

    &--rotate {
      animation: sakana-widget-spin 2s linear infinite;
    }
  }
}

@keyframes sakana-widget-spin {
  100% {
    transform: rotate(360deg);
  }
}
