.sudoku-board {
    min-height: 22.75rem;
    margin-top: 3px;
    margin-bottom: 1em;
    width: 454px;
    caret-color: transparent;
    background-color: #f53978;
    padding: 10px
}

.sudoku-board-cell {
    display: inline-block;
    margin-right: -4.5px;
    position: relative;
    border: 1px solid #ddd;
    background: white;
    max-width: 11.11111%;
}

[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;
}

.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*/
}

.sudoku-board-cell .highlight-val {
    color: #00d;
}

.sudoku-board-cell .board-cell--error {
    background: #d00;
    color: #eee;
}

.sudoku-board-cell .candidates {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .75em;
    letter-spacing: -.5px;
    font-family: monospace, sans-serif;
    line-height: 0;
    text-align: justify;
}

.sudoku-board .candidates:after {
    content: "";
    display: inline-block;
    width: 100%;
}

@media (max-width: 23em) {
    .sudoku-board .candidates {
        letter-spacing: -2px;
    }
}

.showCandidates .candidates {
    display: block;
}

.sudoku-board .candidates div {
    display: inline-block;
    width: 20%;
    line-height: 1.13;
    vertical-align: top;
    *display: inline;
    *zoom: 1;
}

.candidate--highlight {
    background-color: yellow;
}

.candidate_box {
    border-radius: 2px;
    text-align: center;
}

.candidate--to-remove {
    background-color: red;
    color: white;
}

* {
    margin: 0;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wrap {
    padding: 2em 1em;
    width: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 30em) {
    .wrap {
        width: 490px;
    }

    .sudoku-board input {
        font-size: 24px;
        font-size: 1.5rem;
    }

    .sudoku-board .candidates {
        font-size: .8em;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 187px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    text-align: center;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}