/* One Dark theme colors:
   bg:        #282c34
   bg-light:  #2c313c
   bg-subtle: #3e4451
   fg:        #abb2bf
   border:    #3e4451
   blue:      #61afef
   green:     #98c379
   red:       #e06c75
   yellow:    #e5c07b
*/

body {
  font-family: sans-serif;
  margin: 0;
  padding: 2rem;
  background: #282c34;
  color: #abb2bf;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

#grid-container {
  max-width: 100%;
  overflow-x: clip;
}

h1 {
  color: #61afef;
}

#size-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#size-form label {
  color: #abb2bf;
}

#size-form input[type="number"] {
  width: 4rem;
  padding: 0.25rem;
  background: #2c313c;
  color: #abb2bf;
  border: 1px solid #3e4451;
  border-radius: 3px;
}

button {
  background: #2c313c;
  color: #61afef;
  border: 1px solid #3e4451;
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

button:hover {
  background: #3e4451;
}

#nonogram-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.grid-row {
  display: flex;
  flex-direction: row;
  gap: 1px;
  align-items: stretch;
}

.corner {
  width: 5rem;
  flex-shrink: 0;
}

.row-clue,
.col-clue {
  flex-shrink: 0;
  border: 1px solid #3e4451;
  font-size: 0.85rem;
  box-sizing: border-box;
  background: #2c313c;
  color: #abb2bf;
  outline: none;
  overflow: hidden;
  cursor: text;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-clue:focus,
.col-clue:focus {
  border-color: #61afef;
  box-shadow: 0 0 0 1px #61afef;
}

.row-clue {
  width: 5rem;
  height: 2.5rem;
  padding: 0 0.4rem;
  text-align: right;
  justify-content: flex-end;
}

.col-clue {
  width: 2.5rem;
  height: 5rem;
  padding: 0.4rem 0;
  text-align: center;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  white-space: pre;
}

.cell {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid #3e4451;
  cursor: pointer;
  background: #2c313c;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.cell:hover {
  border-color: #61afef;
}

.cell.is-filled {
  background: #98c379;
  color: #1a2a10;
}

.cell.is-unfilled {
  background: #e06c75;
  color: #2a0a0c;
}

#solve-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
}


#completion-status {
  display: block;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: #98c379;
  font-size: 1.25rem;
  font-weight: bold;
  pointer-events: none;
  caret-color: transparent;
}
