* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50; /* 默认背景色，确保页面加载时的颜色 */
    transition: background-color 0.5s ease; /* 渐变效果，平滑过渡背景色 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}


#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#gameControl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 10;
}

#gameControl h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

#speedControl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

button {
    background-color: rgba(39, 174, 96, 0.8); /* 默认绿色背景 */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgba(46, 204, 113, 0.8); /* 更亮的绿色 */
}

#pauseButton.green {
    background-color: rgba(39, 174, 96, 0.8); /* 绿色 */
}

#pauseButton.yellow {
    background-color: rgba(241, 196, 15, 0.8); /* 黄色 */
}

#pauseButton.green:hover {
    background-color: rgba(46, 204, 113, 1); /* 更亮的绿色 */
}

#pauseButton.yellow:hover {
    background-color: rgba(241, 196, 15, 1); /* 更亮的黄色 */
}
