ChatDev/WareHouse/CatchGoldHTMLGame_THUNLP_202310181636/style.css
2023-10-18 16:43:03 +08:00

30 lines
574 B
CSS

#gameCanvas {
border: 1px solid black;
}
#gameOverScreen {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.8);
color: white;
text-align: center;
padding: 20px;
}
#gameOverScreen h1 {
font-size: 24px;
margin-bottom: 10px;
}
#gameOverScreen p {
font-size: 18px;
margin-bottom: 20px;
}
#gameOverScreen button {
font-size: 18px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}