body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url("./img/bg.jpg");
    background-size: cover;
}

.container {
    position: relative;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    background-color: white;
    border-radius: 15px;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 400px;
    margin-bottom: 20px;
    font-size: 18px;
}

#score1,
#score2,
#highScore {
    font-size: 18px;
}

.set-mode {
    display: flex;
    justify-content: space-between;
}

#difficulty {
    margin-bottom: 20px;
}

#difficulty label {
    font-size: 16px;
    margin-right: 10px;
}

#speed {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;

}

#gameCanvas {
    border: 2px solid #333;
}

#musicToggleBtn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: wheat;
}

#startBtn,
#resetBtn,
#toggleInstructionsBtn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

#musicToggleBtn:hover {
    color: white;
    background-color: lightcoral;
    font-weight: bolder;
    transform: scale(1.1);
    transition: 400ms;
}

/* 使用更高的权重 */
#startBtn:not([disabled]):hover {
    color: white !important;
    background-color: lightcoral !important;
    font-weight: bolder !important;
    transform: scale(1.1) !important;
    transition: 400ms !important;
}

#resetBtn:hover {
    color: white;
    font-weight: bolder;
    background-color: lightcoral;
    transform: scale(1.1);
    transition: 400ms;
}

#toggleInstructionsBtn:hover {
    color: white;
    font-weight: bolder;
    background-color: lightcoral;
    transform: scale(1.1);
    transition: 400ms;
}

#mode {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

/* 方向按钮样式 */
.arrow-buttons {
    display: flex;
    justify-content: space-around;
}

.line-2 {
    margin: 5px 0;
}

.line-2 button:nth-child(1) {
    margin-right: 25px;
}

.arrow-buttons button {
    border: none;
    font-size: x-large;
}