
.hidden {
  display: none !important;
}
#question {
  width: 90%;
  margin: 0 auto;
  max-width: 600px;
}
#puzzle {
  border-top: 1px dotted #000;
  position: relative;

}
.grid-container {
  width: 50%;
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: center;
  border: 2px solid rgb(105, 105, 105);
  border-bottom-width: 2px;
}
.grid-element {
  display: inline-block;
  box-sizing: border-box;
  box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.1) inset;
  transition: all 0.15s ease-in-out;
  background-color: rgba(171,205,239,0.1);
  z-index: 1;
}
.grid-element.drop-target {
  background-color: rgba(171,205,239,0.3);
}
.grid-element.dropping {
  background-color: rgba(171,205,239,0.7);
}
.grid-actions {
  width: 100%;
  position: absolute;
  bottom: -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #38738f;
}

.grid-actions div {
  background-color: rgba(0,0,0,0);
  display: inline-block;
  color: #fff;
  width: 33%;
  text-align: center;
  min-width: 45px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  padding: 4px;
}

.grid-actions div:hover {
  background-color: rgba(0,0,0,0.4);
}

.grid-actions div:hover {
  background-color: rgba(0,0,0,0.4);
}
.grid-actions.no-solve #solve {
  visibility: hidden;
}
.grid-actions.no-solve #solve:hover {
  background: rgba(0,0,0,0);
}

.grid-actions.no-check #check {
  visibility: hidden;
}

.grid-actions.no-reset #reset {
  visibility: hidden;
}

.grid-instructions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  width: 90%;
  text-align: center;
  color: #808080;
  z-index: 2;
  font-weight: 800;
}
.puzzle-image {
  position: absolute;
  box-shadow: 0px 0px 0px 1px #000;
  z-index: 3;
  transition: transform 0.15s ease-in-out;
}
.puzzle-image.invisible {
  opacity: 0;
}
.puzzle-image:hover {
  cursor: pointer;
}
.puzzle-image.dragging {
  z-index: 4;
  box-shadow: 0px 0px 4px 1px #000;
}
.puzzle-image.placed {
  box-shadow: none;
}
.puzzle-image.disappear {
  transform: scale(0);
}
