/* sudokuJS v0.4.4 - CSS
// https://github.com/pocketjoso/sudokuJS
// Author: Jonas Ohlsson
// License: MIT
*/
.unten {
    text-align: center;
}


.buttons {
    display: flex;
    justify-content: center;
   
}

button {
  background-color: transparent;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: white;
  color: black;
}

.sudoku-board {
	min-height: 22.75rem;
	margin-bottom: 1em;
    color: white;
}
	
.sudoku-board {
	min-height: 22.75rem;
	margin-bottom: 1em;
}
	/*cell (wrapper) contains both cell input and candidates div*/
	.sudoku-board-cell {
		display: inline-block;
		position: relative;
		border: 1px solid #ddd;
		background: white;
		max-width: 11.11111%;
        color: black;
	}
		/*rules for drawing the black lines dividing houses
			-- specific for board size 9! need diff rules for diff board sizes
		*/
		[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(9n+1){
			border-left-width: 2px;
			border-left-color: #808080;
		}
		[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(n):nth-of-type(-n+9){
			border-top-width: 2px;
			border-top-color: #808080;
		}
		[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(3n){
			border-right-width: 2px;
			border-right-color: #808080;
		}
		[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(n+19):nth-of-type(-n+27),
		[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(n+46):nth-of-type(-n+54),
		[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(n+73):nth-of-type(-n+81){
			border-bottom-width: 2px;
			border-bottom-color: #808080;
		}

		/* the input for the value of each cell (i.e. 1-9 or empty for standard sudoku*/
		.sudoku-board-cell input {
			background: none;
			font-size: 19.2px;
			font-size: 1.2rem;
			text-align: center;
			width: 2em;
			max-width: 100%;
			height: 2em;
			border: 0;
			position: relative;
			z-index: 1; /*on top of candidates*/
		}

			/*highlight new input in board cell*/
			.sudoku-board-cell .highlight-val {
				color: #00d;
			}
			/*highligt incorrect input*/
			.sudoku-board-cell .board-cell--error {
				background: #d00;
				color: #eee;
			}
		/*wrapper that hold the candidates for each cell*/
		.sudoku-board-cell .candidates {
			display: none; /*hidden by default*/
			position: absolute;
			top: 0; bottom: 0; left: 0; right: 0;
			text-align: center;
			font-size: .75em; /*1/3 /1.13 out of the 2*1.2em cell height*/
			letter-spacing: -.5px;
			font-family: monospace, sans-serif;

			/*use as justify grid*/
			line-height: 0;
			text-align: justify;
		}
			.sudoku-board .candidates:after {
				content: "";
				display: inline-block;
				width: 100%;
			}
		/* when board cells start to get narrower because of small screen,
			reduce letter spacing for candidates to make them still fit*/
		@media(max-width: 23em){
			.sudoku-board .candidates {
				letter-spacing: -2px;
			}
		}
			.showCandidates .candidates {
				display: block;
			}

			/*each candidate in each cell is wrapped in a div*/
			.sudoku-board .candidates div {
				display: inline-block;
				width: 20%;
				line-height: 1.13;
				vertical-align: top;
				*display: inline;
				*zoom: 1;
			}
				/*.candidates div*/.candidate--highlight {
					background-color: yellow;
				}
				/*.candidates div*/.candidate--to-remove {
					background-color: red;
					color: white;
				}

/* Styles for the input */
input[type="checkbox"].js-candidate-toggle {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: 1px solid #ffffff;
  background-color: transparent;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  position: relative;
}

/* Create the custom checkbox */
input[type="checkbox"].js-candidate-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ffffff;
  background-color: transparent;
}

/* Style the checked state of the checkbox */
input[type="checkbox"].js-candidate-toggle:checked::before {
  background-color: #ffffff;
}

/* Create the checkmark icon */
input[type="checkbox"].js-candidate-toggle::after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark icon when checkbox is checked */
input[type="checkbox"].js-candidate-toggle:checked::after {
  display: block;
}

/* Style the checkmark icon */
input[type="checkbox"].js-candidate-toggle::after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
