Puntuación: 0
style.css:
CSS
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
background-color: #87ceeb; /* Cielo azul claro */
font-family: sans-serif;
}
#gameCanvas {
border: 2px solid #000;
background-color: #add8e6; /* Otro tono de azul */
}
#score {
font-size: 2em;
margin-top: 20px;
}
#gameOver {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 10px;
text-align: center;
}
#gameOver h1 {
margin-top: 0;
}
#gameOver button {
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
}
Comments
Post a Comment