body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url("http://110.40.158.215/wp-content/uploads/2024/02/sakura.webp"); /* 替换为你的背景图片URL */
    background-size: cover; /* 确保背景图片覆盖整个页面 */
}

#generateMines {
    order: -1; /* 将按钮放在页面最上面 */
}

#gameBoard {
    display: grid;
    grid-template-columns: repeat(7, 50px);
    grid-gap: 5px;
    margin: 20px 0;
}

#gameBoard div {
    width: 50px;
    height: 50px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid #aaa;
}

#currentPlayerInfo {
    margin: 20px 0;
    font-size: 1.2em;
}


#rules {
    padding: 10px;
    margin: 20px;
    border: 1px solid #000;
    max-width: 300px; /* 或者其他合适的宽度 */
    left: 20px; /* 将规则放在页面左边 */
    top: 20px; /* 从页面顶部开始的位置 */
}

#rules p {
    margin: 5px 0;
    line-height: 1.5;
}

#scoreBoard {
    padding: 10px;
    border: 1px solid #000;
    position: absolute;
}



#scoreBoard {
    right: 20px; /* 将计分板放在页面右边 */
    top: 20px; /* 从页面顶部开始的位置 */
}

button {
    margin-bottom: 20px;
    cursor: pointer;
}
