body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 200px;
    margin-bottom: 10px;
}

.info-item {
    font-size: 1.2em;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
    border: 2px solid #999;
}

.cell {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #ddd;
    text-align: center;
    line-height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cell.revealed {
    background-color: #fff;
    cursor: default;
}

.cell.mine {
    background-color: red;
}

.cell.flagged {
    background-color: yellow;
}

.controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#reset-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.character-selection {
    margin-top: 20px;
    text-align: center;
}

.characters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.character-option {
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.character-option.selected {
    border-color: #007bff;
}