*, html, body {
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
    text-align: center;
    /*
    font-family: Georgia, Garamond, serif;
    */
    font-family: Tahoma, sans-serif;
    font-size: 1em;
}

.game-container {
    height: 100vh;
    width: 100%;
    display: flex; flex-direction: column; justify-content: start; align-items: center;
}

.game-header {
    height: 80px;
    width: 480px;
    font-size: 3em;
    font-family: Georgia, Garamond, serif;
}

.game-header .game-title, .game-header .btn-new-game {
    font-family: inherit;
    z-index: 99;
}

.game-header .btn-new-game {
    font-size: .5em;
    padding: 5px 30px;
    border: 2px solid black;
    border-radius: 30px;
    z-index: 99;
}

.game-playground {
    height: 590px;
}

.game-finished {
    position: fixed;
    width: 500px;
    height: 500px;
    background-color: transparent;
    font-size: 25em;
    opacity: .85;
    margin-top: 8px;
}

.game-finished .game-check {
    margin-top: -80px;
    background-color: transparent;
}

.game-grid-wrapper {
    height: 500px;
}

.game-grid-loading {
    font-size: 5em;
    color: grey;
    /*
    animation: spin 10s linear infinite;
    */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-grid-try-again {
    font-size: 2em;
    color: grey;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(9, auto);
    border: 4px solid black;
}

.game-grid .cell {
    width: 50px;
    height: 50px;
    font-size: 2em;
    cursor: pointer;
    display: flex; flex-direction: row; justify-content: center; align-items: center;
    border: 1px solid #cccccc;
}

.game-grid .cell.disabled {
    background-color: #e1e1e1;
}

.game-grid .cell:nth-child(9n-3), .game-grid .cell:nth-child(9n-6) {
    border-right: 3px solid black;
}

.game-grid .cell:nth-child(-n+27):nth-child(n+19), .game-grid .cell:nth-child(-n+54):nth-child(n+46) {
    border-bottom: 3px solid black;
}

.game-controls {
    height: 80px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(9, auto);
}

.controls-grid .number {
    color: lightgrey;
    border: 3px solid black;
    border-right: none;
    width: 50px;
    height: 50px;
    font-size: 2em;
    cursor: pointer;
    display: flex; flex-direction: row; justify-content: center; align-items: center;
}

.controls-grid .number:last-child {
    border-right: 3px solid black;
}

.game-footer {
    height: 30px;
    color: grey;
}

.game-footer button, .game-footer a {
    padding: 5px 20px;
    margin: 0 10px;
    border: 2px solid black;
    border-radius: 20px;
    font-size: .8em;
    z-index: 99;
    font-family: Georgia, Garamond, serif;
    text-decoration: none;
}

.modal-wrapper-solution, .modal-wrapper-reset-game, .modal-wrapper-new-game, .modal-wrapper-back-to-all-games {
    position: fixed;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    background-color: rgba(100,100,100,0.8);
    z-index: 999;
}

.modal-window-solution {
    width: 400px;
    height: 500px;
    border: 3px solid black;
    margin-top: 120px;
}

.modal-solution .solution-grid {
    margin: 40px 30px 30px 30px;
    font-size: 1.4em;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.modal-solution .btn-close-solution {
    padding: 5px 30px;
    border: 2px solid black;
    border-radius: 30px;
    z-index: 99;
    font-size: 1.5em;
    font-family: Georgia, Garamond, serif;
}

.modal-window-reset-game, .modal-window-new-game, .modal-window-back-to-all-games {
    width: 350px;
    padding: 30px;
    border: 3px solid black;
    margin-top: 120px;
}

.modal-window-reset-game .question, .modal-window-new-game .question, .modal-window-back-to-all-games .question {
    padding-bottom: 20px;
    font-size: 2em;
    font-family: Georgia, Garamond, serif;
}

.modal-window-back-to-all-games .question-note {
    padding-bottom: 20px;
}

.modal-reset-game button, .modal-new-game button, .modal-back-to-all-games button {
    padding: 5px 30px;
    border: 2px solid black;
    border-radius: 30px;
    margin: 0 10px;
    z-index: 99;
    font-size: 1.5em;
    font-family: Georgia, Garamond, serif;
}

.choose-difficulty-info {
    margin-bottom: 25px;
    text-transform: uppercase;
    font-family: Georgia, Garamond, serif;
}

.choose-difficulty {
    margin-bottom: 35px;
}

.difficulty-dot {
    background-color: black;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    margin-right: 12px;
    cursor: pointer;
}

.difficulty-dot:last-child {
    margin-left: 0;
}

.difficulty-dot.dot-disabled {
    background-color: lightgrey;
}

.btn-show-smart-select.smart-select-on {
    color: white;
    background-color: black;
}

.btn-show-smart-select.smart-select-off {
    background:
            linear-gradient(to top left,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0) calc(50% - 0.8px),
            rgba(0,0,0,1) 50%,
            rgba(0,0,0,0) calc(50% + 0.8px),
            rgba(0,0,0,0) 100%);
}


.flex-row-between-centered {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
}

.flex-row-between-start {
    display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start;
}

.flex-row-around-centered {
    display: flex; flex-direction: row; justify-content: space-around; align-items: center;
}

.flex-row-centered-centered {
    display: flex; flex-direction: row; justify-content: center; align-items: center;
}

.flex-row-start-centered {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center;
}

.flex-row-start-start {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start;
}

.flex-row-end-centered {
    display: flex; flex-direction: row; justify-content: flex-end; align-items: center;
}