@charset "UTF-8";
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  line-height: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-color: #f8f0ee;
}

.cells, .cell {
  transition: border-width 0.25s ease;
}
.win .cells, .win .cell {
  border-width: 0;
}

.cells {
  display: inline-block;
  border: 1px solid black;
  border-right-width: 0px;
  border-bottom-width: 0px;
  font-size: 24px;
  box-sizing: content-box;
}

.cell {
  transition: background-color 0.25s ease;
  border: 1px solid black;
  border-top-width: 0;
  border-left-width: 0;
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
  box-sizing: border-box;
}
.cell.mark-column {
  border-right-width: 2px;
}
.win .cell.mark-column {
  border-right-width: 0;
}
.cell.mark-row {
  border-bottom-width: 2px;
}
.win .cell.mark-row {
  border-bottom-width: 0;
}
.cell:hover {
  box-shadow: inset 0 0 4px red;
}
.cell:before {
  transition: opacity 0.5s ease;
  opacity: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
}
.cell[data-state=active] {
  background-color: #444;
}
.win .cell[data-state=active] {
  background-color: #111;
}
.cell[data-state=not-active] {
  background-color: #eee;
}
.cell[data-state=not-active]:before {
  opacity: 1;
  line-height: 0.8;
  content: "×";
}
.win .cell[data-state=not-active] {
  background-color: transparent;
}
.win .cell[data-state=not-active]:before {
  opacity: 0;
}

label {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 10px;
  text-align: center;
}

#Picross {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.puzzle {
  transition: border-width 0.25s ease;
  padding: 30px;
  background: white;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  border: 0px solid #3f3;
}
.puzzle.win {
  border-width: 10px;
}

.columns {
  display: flex;
}
.columns .column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 24px;
}
.columns .column label {
  height: 18px;
  line-height: 18px;
}

.rows {
  display: inline-block;
  vertical-align: top;
}
.rows .row label {
  width: 18px;
}