:root {
  --gap: 5vw;
  --half-gap: 2.5vw;
  --bg-color: #ddd;
}

html {
  background-color: var(--bg-color);
}

.game {
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-board {
  position: relative;
  height: 86vmin;
  display: grid;
  border: 2px solid rgba(0, 0, 0, 0.6);
  touch-action: none;
  max-width: 100vw;
  max-height: 100vh;
  align-items: unset;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 1/1;
}
@supports (-webkit-touch-callout: none) {
  #game-board {
    height: calc(86 * var(--vmin));
  }
}

.piece {
  box-sizing: border-box;
  box-shadow: inset 0px 0px 0px 2px rgba(0, 0, 0, 0.6);
  background-repeat: no-repeat;
  cursor: grab;
  touch-action: none;
}

.dragging {
  opacity: 0.8;
  z-index: 9999;
  pointer-events: none;
}

#hintImage {
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: 9;
  transition: opacity 0.3s ease-in-out;
  box-shadow: inset 0px 0px 0px 2px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}
#hintImage .resume-button {
  opacity: 1;
  position: relative;
  width: 20%;
  height: auto;
  aspect-ratio: 1/1;
}
#hintImage .resume-button:hover {
  cursor: pointer;
}
#hintImage .resume-button svg {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 80.5%;
  height: 79%;
}

.no-button #hintImage .resume-button {
  opacity: 0;
}

.show-hint #hintImage {
  opacity: 1;
  pointer-events: initial;
}
.show-hint #hintImage svg #animatedCircle {
  animation: draw 5s linear forwards;
}
.show-hint .pieze {
  opacity: 0;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
#success-panel {
  background-image: url(img/final.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
#success-panel img {
  opacity: 0;
}

.nice .game {
  pointer-events: none;
}

#demo-panel {
  background-color: #B7C7C8;
}
#demo-panel video {
  background-color: #B7C7C8;
  box-shadow: 0px 0px 0px 100vw #B7C7C8;
}/*# sourceMappingURL=styles.css.map */