#lights-out-game {
    margin-bottom: 30px;
}

#lights-out-board {
    margin: 0 auto 15px;
}

#show-solution-button {
    box-shadow: 0 0 5px #eee;
    display: block;
    margin: 0 auto 30px;
    width: 392px;
}

.board-cell {
    background: #f8f8f8;
    float: left;
    padding: 0 !important;
    text-align: center;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#lights-out-game .board-cell {
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #888;
    font-size: 35px;
    height: 70px;
    line-height: 57px;
    margin: 4px;
    width: 70px;
}

.example-game {
    float: left;
    margin-bottom: 30px;
    width: 100%;
}

.example-game-board {
    margin: 0 auto;
    width: 180px;
}

.example-game-board .board-cell {
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    clear: both
    color: #444;
    float: left;
    font-family: monospace;
    font-size: 1.1rem;
    height: 30px;
    line-height: 30px;
    margin: 2px;
    width: 30px;
}

.example-game-board-row {
    clear: both;
    float: left;
}

.button-on {
    background: #b5e7a0 !important;
}

.board-cell-on {
    background: #b5e7a0;
}

.board-cell-strategy-light {
    background: #b5e7a0 !important;
}

.vector {
    clear: both;
    color: #bbb;
    float: left;
    font-size: 2rem;
    margin-bottom: 30px;
}

.vector-row {
    clear: both;
    float: left;
    font-family: monospace;
}

.vector-highlight {
    color: #222;
}

.vector-indent {
    margin-left: 20px;
}

#vector-b {
    clear: both;
    float: left;
    font-family: monospace;
    margin-bottom: 30px;
}

#vector-b div {
    float: left;
}

#vector-x {
    float: left;
    font-family: monospace;
    margin-bottom: 30px;
}

#vector-x div {
    float: left;
}

.vector-example {
    font-family: monospace;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.vector-operation {
    font-family: monospace;
    font-size: 1.9rem;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.matrix-element, .vector-element {
    margin-left: 8px;
    margin-right: 8px;
}

.matrix-example {
    font-family: monospace;
    margin-bottom: 30px;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .matrix-example, .vector-example {
        font-size: 1.1rem;
    }

    .matrix-example, .vector-example {
        line-height: 1.6;
    }

    .matrix-element, .vector-element {
        margin-left: 5px;
        margin-right: 5px;
    }
}

@media (max-width: 750px) {
    .matrix-example, .vector-example {
        font-size: 1.0rem;
    }

    .matrix-example, .vector-example {
        line-height: 1.6;
    }

    .matrix-element, .vector-element {
        margin-left: 4px;
        margin-right: 4px;
    }
}

@media (max-width: 550px) {
    .matrix-example, .vector-example {
        font-size: 0.9rem;
    }

    .matrix-example, .vector-example {
        line-height: 1.5;
    }

    .matrix-element, .vector-element {
        margin-left: 4px;
        margin-right: 4px;
    }
}

@media (max-width: 400px) {
    .matrix-example, .vector-example {
        font-size: 0.9rem;
    }

    .matrix-example, .vector-example {
        line-height: 1.3;
    }

    .matrix-element, .vector-element {
        margin-left: 3px;
        margin-right: 3px;
    }
}

.vector-element-two {
    font-weight: bold;
}

.matrix-element-one, .vector-element-one {
    font-weight: bold;
}

.matrix-element-zero, .vector-element-zero {
    color: #aaa;
}

#winnable {
    clear: both;
    float: left;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    #lights-out-game .board-cell {
        font-size: 30px;
        height: 60px;
        line-height: 60px;
        margin: 4px;
        width: 60px;
    }

    #show-solution-button {
        width: 342px;
    }
}

@media (max-width: 500px) {
    #lights-out-game .board-cell {
        font-size: 25px;
        height: 50px;
        line-height: 50px;
        margin: 3px;
        width: 50px;
    }

    #show-solution-button {
        width: 284px;
    }
}

@media (max-width: 400px) {
    #lights-out-game .board-cell {
        font-size: 20px;
        height: 40px;
        line-height: 40px;
        margin: 2px;
        width: 40px;
    }

    #show-solution-button {
        width: 226px;
    }
}

@media (max-width: 300px) {
    #lights-out-game .board-cell {
        font-size: 15px;
        height: 30px;
        line-height: 30px;
        margin: 1px;
        width: 30px;
    }

    #show-solution-button {
        width: 168px;
    }
}

@media (max-width: 200px) {
    #lights-out-game .board-cell {
        font-size: 10px;
        height: 20px;
        line-height: 20px;
        margin: 1px;
        width: 20px;
    }

    #show-solution-button {
        width: 118px;
    }
}
