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

.main-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-controls {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.difficulty-selector button {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
}

.game-info {
    margin: 10px 0;
}

.game-info span {
    margin: 0 10px;
    font-size: 18px;
}

#new-game-button {
    padding: 10px 20px;
    font-size: 16px;
}

#game-board {
    display: grid;
    border: 2px solid #333;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #ccc;
    border: 1px solid #999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.cell.revealed {
    background-color: #eee;
}

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

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.ranking-container {
    width: 250px;
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 8px;
}

.ranking-container h2 {
    text-align: center;
    margin-bottom: 15px;
}

.ranking-container h3 {
    margin-top: 20px;
}

.ranking-container ol {
    padding-left: 20px;
}

.ranking-container li {
    margin-bottom: 5px;
}

.home-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4a75c3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}