
body {
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero-unit img {
    height: 30px;
    width: 30px;
}

.hero-unit {
    padding: 19px;
}

.hero-unit h1 {
    font-size: 30px;
    display: inline-block;
}

.hero-unit .title {
    float: left;
    width: 300px;
}
.hero-unit .credits {
    margin-top: 12px;
    float: right;
    font-style: italic;
}

.buttons {
    text-align: center;
}

.board {
    border: 3px solid grey;
    margin-left: auto;
    margin-right: auto;
}

.board.size8x8 {
    width: 176px;
    height: 176px;
}

.board.size16x16 {
    width: 352px;
    height: 352px;
}

.board.size32x32 {
    width: 704px;
    height: 704px;
}

.grid-row {
    display: block;
    height: 22px;
}

.grid-cell {
    display: inline-block;
    border: 1px solid grey;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    color: black;
    font-weight: bold;
    text-align: center;
    background-color: #4C4646;
    cursor: default;
}

.grid-cell.selected {
    border: 1px solid white;
    background-color: grey;
}

.grid-cell.visible {
    background-color: #F5F5F5;
}

.grid-cell:hover {
    background-color: #5F5A59;
}
.grid-cell.visible:hover {
    background-color: white;
}

.grid-cell.mine {
    background: url(../img/mine-small.png) no-repeat;
}

.grid-cell.flagged {
    background: #4C4646 url(../img/flag-small.png) no-repeat;
}

.grid-cell.mine.caused-failure {
    background: #FF0000 url(../img/mine-small.png) no-repeat;
}

.grid-cell.correct {
    border: 1px solid green;
}

.grid-cell.incorrect {
    border: 1px solid red;
}

.game-controls .form-actions {
    margin-bottom: 0px;
    padding-bottom: 0px;
}
.game-controls .form-horizontal {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.game-controls .form-horizontal .control-label {
    width: 100px;
}
.game-controls .form-horizontal .controls {
    margin-left: 120px;
}
.game-controls .form-horizontal .form-actions {
    padding-left: 120px;
}

#saved-games .games-list li {
    clear: both;
    margin-top: 5px;
}

#saved-games .games-list li span.name {
    font-weight: bold;
}

#saved-games .games-list li button {
    float: right;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

#cell-notes {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0px;
}

#select-options .buttons .btn-group {
    display: inline-block;
    width: 160px;
}

#select-options .buttons .description {
    float: left;
    font-weight: bold;
    margin: 5px 10px 0px 35px;
}
#select-options .buttons .btn-group {
    float: left;
}

.clear {
    clear: both;
    height: 0px;
}

/* Fixing annoying spacing issues with optional elements... */
.minesweeper .alert {
    margin-bottom: 19px;
}
.board {
    margin-bottom: 19px;
}
.row .span8 .well {
    padding-bottom: 0px;
}