div.ccm-page .sudoku {
    position: relative;
    margin: 45px 0
}

div.ccm-page .sudoku .board {
    width: 92%;
    float: right;
    position: relative
}

div.ccm-page .sudoku table {
    border: 1px solid #000;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 15px
}

div.ccm-page .sudoku table tr td {
    border: 1px solid #ddd;
    width: 80px;
    height: 64px;
    overflow: hidden;
    text-align: center;
    position: relative
}

div.ccm-page .sudoku table tr td div {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    bottom: 0;
    line-height: 64px;
    cursor: default;
    background-color: rgba(255, 255, 255, 0);
    font-size: 1.125em;
    top: 0
}

div.ccm-page .sudoku table tr td div.hint {
    background-color: #eee
}

div.ccm-page .sudoku table tr td div.error {
    color: #d9534f
}

div.ccm-page .sudoku table tr td div.selected {
    background-color: #3f9edc
}

div.ccm-page .sudoku table tr td:hover div:not(.hint):not(.selected) {
    background-color: #777
}

div.ccm-page .sudoku table tr td:nth-child(1) {
    border-left: 2px #000 solid
}

div.ccm-page .sudoku table tr td:nth-child(3n) {
    border-right: 2px #000 solid
}

div.ccm-page .sudoku table tr:nth-child(1) td {
    border-top: 2px #ddd solid
}

div.ccm-page .sudoku table tr:nth-child(3n) td {
    border-bottom: 2px #000 solid
}

div.ccm-page .sudoku table tr:first-child td {
    border-top: 2px solid #000
}

div.ccm-page .sudoku table tr:last-child td {
    border-bottom: 2px solid #000
}

div.ccm-page .sudoku .keypad .btn {
    min-width: 40px
}

div.ccm-page .sudoku .bottom-spacer-5 {
    margin-bottom: 5px
}

div.ccm-page .sudoku .overlay {
    opacity: .5;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #eee;
    z-index: 1000
}

div.ccm-page .sudoku .solve {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1000;
    bottom: 0
}

div.ccm-page .sudoku .solve .solution {
    border: 3px solid #3f9edc;
    width: 400px;
    background-color: #fff;
    margin: 55px auto;
    color: #000;
    padding-top: 39px;
    position: relative
}

div.ccm-page .sudoku .solve .solution p {
    margin-bottom: 5px;
    padding-left: 25px
}

div.ccm-page .sudoku .solve .solution .close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #3f9edc;
    opacity: 1
}

div.ccm-page .sudoku .solve .solution .buttons {
    padding: 10px
}

div.ccm-page .sudoku .numbers {
    display: block;
    width: 6%;
    float: left
}

div.ccm-page .sudoku .numbers span {
    color: #fff;
    display: block;
    width: 100%;
    background-color: #3f9edc;
    text-align: center;
    cursor: pointer;
    border-radius: 2px;
    padding: 13px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px
}

div.ccm-page .sudoku .numbers span:last-child {
    padding-bottom: 13px;
    line-height: 30px
}

div.ccm-page .sudoku .numbers span:hover {
    color: #e6e6e6;
    background-color: #227fbc
}

div.ccm-page .sudoku .new-game {
    width: 195px
}

div.ccm-page .sudoku .solve-game {
    width: 175px
}

div.ccm-page .sudoku form {
    margin-top: 8px !important;
    margin-bottom: 0 !important
}

div.ccm-page .sudoku form label {
    margin-right: 50px;
    padding-left: 0;
    cursor: pointer;
    position: relative
}
div.ccm-page .sudoku form label input{
    margin-right: 5px;
}
div.ccm-page .sudoku form div {
    position: relative;
    display: inline-block
}

div.ccm-page .sudoku .sudoku-grid {
    position: relative
}

div.ccm-page .sudoku .text-right .btn {
    margin-left: 20px
}

@-moz-document url-prefix() {
    .sudoku td div {
        top: -1px
    }
}

@media all and (max-width: 767px) {
    div.ccm-page .sudoku form {
        text-align: center
    }

    div.ccm-page .sudoku .text-right {
        text-align: center;
        margin-top: 15px
    }
}

@media all and (max-width: 480px) {
    div.ccm-page .sudoku form {
        text-align: center
    }

    div.ccm-page .sudoku form div {
        position: relative;
        display: inline
    }

    div.ccm-page .sudoku td {
        height: 30px
    }

    div.ccm-page .sudoku td div {
        line-height: 30px
    }

    div.ccm-page .sudoku .text-right {
        text-align: center;
        margin-top: 15px
    }

    div.ccm-page .sudoku .text-right .btn {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-width: 100%;
        margin-bottom: 15px
    }

    div.ccm-page .sudoku .numbers {
        display: block;
        width: 100%;
        float: left;
        margin-bottom: 15px;
        text-align: center
    }

    div.ccm-page .sudoku .numbers span {
        color: #fff;
        width: 22px;
        background-color: #3f9edc;
        margin-bottom: 6px;
        text-align: center;
        padding: 2px;
        cursor: pointer;
        margin-left: auto;
        border-radius: 5px;
        margin-right: auto;
        display: inline-block
    }

    div.ccm-page .sudoku .board, div.ccm-page .sudoku .solve .solution {
        width: 100%
    }
}