body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #333;
}

.container {
    margin-top: 100px;
    margin-bottom: 100px;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}
.character-container {
    margin-bottom: 20px;
    
    
}
    

h1 {
    margin-bottom: 30px;
    font-size: 36px;
    color: #fff;
}

.board {
    display: grid;
    grid-template-columns: repeat(6, 60px);
    gap: 5px;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
    background-color: #111;
}

.cell {
    width: 60px;
    height: 60px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.cell.selected {
    background-color: #333;
}

.cell.mine {
    background-color: #333;
    color: #fff;
}

.character-img {
    width: 100%;
    height: 100%;
    
}

.mine-count {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.score, .timer {
    margin-top: 20px;
    font-size: 24px;
    color: #fff;
}
#resetButton {
    font-size: 24px;
    padding: 10px 20px;
    margin-top: 60px;
    margin-bottom: 60px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#nextCharacterImg {
    margin-top: 20px;
    width: 144px; /* Adjust this size as needed */
    height: 144px; /* Adjust this size as needed */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em; /* Adjust size */
    text-align: center; /* Center text */
    z-index: 10; /* Ensure it overlays */
}

.win {
    color: gold; /* Winning message color */
}

.doom {
    color: red; /* Losing message color */
}
