:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background-image: url('game0.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 1536px, 1536px;
}

#wrapper {
  display: flex;
  place-items: center;
  margin: auto;
  width: 600px;
  height: 600px;
  background-color: rgba(255, 255, 255,0.9);
  box-shadow: 0 0 3px gray;
  border: 1px solid gray;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

#main {
  margin: auto;
}

.grid {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: table;
  font-size: 48px;
  border: 1px solid #eee;
}

.row {
  display: table-row;
}

.col {
  display: table-cell;
  width: 1.5em;
  height: 1.5em;
}

.col:has(.letter) {
  /* border: 1px solid black; */
}

.letter {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease-out;
  background-color: rgb(233, 217, 185);
  transform: scale(0.95);
  border-radius: 4px;
  box-shadow: 1px 1px 2px grey;
}

:is(div[data-push="stop"]) {
  cursor: not-allowed;
}

:is(div[data-push]):before {
  content: '';
  opacity: 0;
  transition: opacity 0.3s ease-out;
  position: absolute;
  display: block;
  width: 1.5em;
  height: 1.5em;
}

:is(div.push-display[data-push]):before {
  opacity: 1;
}

:is(div[data-push="stop"]):before {
  content: '✋🏼'
}


:is(div[data-push="up"]):before {
  content: '👆🏻'
}

:is(div[data-push="down"]):before {
  content: '👇🏼';
}


:is(div[data-push="right"]):before {
 content: '👉🏻'
}

:is(div[data-push="left"]):before {
  content: '👈🏼'
}

/*

:is(div[data-push="left"]) {
  cursor: w-resize !important;
}

:is(div[data-push="up"]) {
  cursor: n-resize !important;
}

:is(div[data-push="down"]) {
  cursor: s-resize !important;
}

:is(div[data-push="right"]) {
  cursor: e-resize !important;
}

*/

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}


.solved {
  pointer-events: none;
}

.solved .letter {
  color: white;
  background-color: green;
   transform: scale(1);
   border-radius: 0;
}

.col-moving--1 {
  transform: scale(0.95) translateY(105%);       
}

.col-moving-1 {
  transform: scale(0.95) translateY(-105%);       
}

.row-moving--1 {
  transform: scale(0.95) translateX(105%);       
}

.row-moving-1 {
  transform: scale(0.95) translateX(-105%);       
}

#stats {
  position: relative;
  z-index: 10;
  line-height: 1.1;
  background-color: rgba(255,255,255,0);
  height: 4em;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  position: absolute;

  font-weight: 500;
  font-size: 24px;
  transition: all 0.5s ease-in-out;
}


.stats-label {
  font-size: 50%
}

.stat {
  text-align: left;
  margin: 0.5em;
}

.stats-detail span {
  margin-left: 0.25em;
}

.solved .stat-row {
  font-size: 32px;
  max-width: 98vw;
  transform: translateY(-1.5em);
  box-shadow: 0 0 3px gray;
  border: 1px solid gray;
  border-radius: 4px;
  justify-content: space-around;
  margin: auto;
  background-color: rgba(255,255,255,1);
  min-width: 100%;
}


.score, .share {
  display: none;
}


.solved .score, .solved .share {
  display: block;
}

.share, .share div {
  pointer-events: auto;
  cursor: pointer !important;
}

#share{
  transform: scaleX(-1) translateY(0.25em) rotate(75deg);
}

#prompt {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  margin: 0.5em;
}

@media only screen and (min-width: 768px) {
  .solved .stat-row {

    transform: scale(1.5) translateY(-1.5em);
  
  }
}