body {
    /* 主题的全局样式，设定了背景图片和全局的对齐方式*/
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../img/mc.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

#gameArea {
    /* 游戏区域的样式，设定了背景色、背景图片等 */
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: multiply;
    background-image: url('../img/grass2.png');
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 3000px rgba(255, 255, 255, 0.5);
}

button, #mainMenu, #audioControl, #scoreBoard {
    /* 功能按钮的样式，设定了位置，宽高，背景色，边框等 */
    position: absolute;
    width: 120px;
    height: 70px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 3px solid #2E8B57;
    color: #FFF8DC;
    text-align: center;
    font-size: 20px;
    font-family: 'Courier New';
    border-radius: 5px;
    text-decoration: none;
}

#mainMenu {
    top: 8%;
    left: 18%;
}

#audioControl {
    font-size: 12px;
    top: 36%; 
    left: 18%;
}

#scoreBoard {
    top: 22%;
    left: 18%;
}

/* 专用样式 */
#restartButton {
    top: 80%;
    left: 50%;
    background-color: #2E8B57;
    transform: translate(-50%, -50%);
    border: none; 
    cursor: pointer;  
    display: none;
}

#gameOverText {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #B22222;
    text-align: center;
    font-family: "Courier New";
}

#gameOverImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: none;
}