Improved ending screen

This commit is contained in:
p11 2025-04-27 18:46:20 +02:00
parent 67ef33e4f6
commit 05cacce192

View File

@ -302,23 +302,20 @@ fn global_styles() -> Markup {
const END_STYLES: &str = r" const END_STYLES: &str = r"
.end-screen { .end-screen {
position: absolute; position: absolute;
font-size: 1.2vw;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
text-align: center; text-align: center;
background: rgba(0, 0, 0, 0.9); padding: 2vw;
color: white;
padding: 2rem;
border-radius: 1rem;
max-width: 600px;
} }
.restart-button { .restart-button {
background: var(--character-bg); background: var(--character-bg);
color: white; color: white;
padding: 1rem 2rem; padding: 1vw 2vw;
border: none; border: none;
border-radius: 0.5rem; border-radius: 0.5vw;
font-size: 1.2rem; font-size: 1.2vw;
cursor: pointer; cursor: pointer;
transition: transform 0.2s; transition: transform 0.2s;
}"; }";