/* sudoku.css - Sudoku game specific styles */

/* Sudoku Container */
.sudoku-container {
    color: white;
    font-family: "DOS", "Courier New", Courier, monospace;
}

/* Sudoku Board */
.sudoku-board {
    min-height: 22.75rem;
    margin: 10px 0;
    background-color: rgba(26, 26, 46, 0.7);
    padding: 10px;
    border: 2px dashed #ff00a2;
}

/* Board Cells */
.sudoku-board-cell {
    display: inline-block;
    position: relative;
    border: 1px solid #ff00a2;
    background: rgba(10, 10, 18, 0.9);
    max-width: 11.11111%;
}

/* Cell Borders */
[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(9n+1) {
    border-left-width: 2px;
    border-left-color: #00ffff;
}

[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: #00ffff;
}

[data-board-size="9"].sudoku-board .sudoku-board-cell:nth-of-type(3n) {
    border-right-width: 2px;
    border-right-color: #00ffff;
}

[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: #00ffff;
}

/* Input Fields */
.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;
    color: #00ffff;
    font-family: "DOS", "Courier New", Courier, monospace;
}

/* Highlight Values */
.sudoku-board-cell .highlight-val {
    color: #ff00a2;
    font-weight: bold;
}

/* Error State */
.sudoku-board-cell .board-cell--error {
    background: #d00;
    color: #eee;
}

/* Candidates */
.sudoku-board-cell .candidates {
    display: none;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    text-align: center;
    font-size: .75em;
    letter-spacing: -.5px;
    font-family: "DOS", "Courier New", Courier, monospace;
    line-height: 0;
    text-align: justify;
    color: #ff00a2;
}

.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: rgba(255, 0, 162, 0.3);
}

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

/* Buttons */
.sudokubutton {
    color: white;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    padding: 2px 8px;
    margin: 2px;
    border: 1px solid #00ffff;
    font-family: "DOS", "Courier New", Courier, monospace;
    font-size: 14px;
}

.sudokubutton1 {
    background-color: rgba(255, 0, 162, 0.5);
}
.sudokubutton2 {
    background-color: rgba(255, 0, 162, 0.6);
}
.sudokubutton3 {
    background-color: rgba(255, 0, 162, 0.7);
}
.sudokubutton4 {
    background-color: rgba(255, 0, 162, 0.8);
}
.sudokubutton5, .sudokubutton6 {
    background-color: rgba(0, 255, 255, 0.5);
}
.sudokubutton7 {
    background-color: rgba(26, 26, 46, 0.9);
}

.sudokubutton:hover {
    background-color: #ff00a2;
    color: white;
    cursor: pointer;
    text-decoration: underline;
}

.sudokubutton5:hover, .sudokubutton6:hover {
    background-color: #00ffff;
    color: black;
}

/* Layout */
.sudoku-container * {
    margin:0; padding:0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.sudoku-container .wrap {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

@media(min-width: 30em) {
    .sudoku-board input {
        font-size: 24px;
        font-size: 1.5rem;
    }
    .sudoku-board .candidates {
        font-size: .8em;
    }
}

/* Form Elements */
.sudoku-container label {
    color: #00ffff;
    margin-right: 5px;
}

.sudoku-container input[type="checkbox"] {
    accent-color: #ff00a2;
    margin-right: 15px;
}