DinoLand/styles.css

103 lines
1.7 KiB
CSS

* { box-sizing: border-box; }
body {
margin: 0;
font-family: Arial, sans-serif;
background: linear-gradient(#6fd3ff, #d7f7ff);
color: #102026;
}
#hud {
position: fixed;
top: 12px;
left: 12px;
right: 12px;
display: flex;
justify-content: space-between;
font-size: 24px;
font-weight: 700;
pointer-events: none;
z-index: 2;
}
#game {
display: block;
margin: 0 auto;
width: min(100vw, 1200px);
height: auto;
border: 2px solid #1b3a47;
background: #b5ecff;
}
#musicToggle {
position: fixed;
right: 16px;
bottom: 16px;
z-index: 9;
width: auto;
min-width: 132px;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.24);
background: rgba(0,0,0,0.65);
color: #fff;
font-size: 14px;
font-weight: 700;
cursor: pointer;
}
#deathScreen,
#startScreen {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.65);
display: grid;
place-items: center;
z-index: 4;
}
.panel {
background: #fff;
border-radius: 12px;
padding: 20px;
width: min(92vw, 460px);
}
.start-logo {
display: block;
width: min(100%, 320px);
height: auto;
margin: 0 auto 8px;
}
.hidden { display: none !important; }
button, input, select {
font-size: 16px;
padding: 8px 10px;
margin-top: 8px;
width: 100%;
}
label {
display: block;
margin-top: 10px;
font-weight: 700;
}
.inline-option {
display: flex;
align-items: center;
gap: 8px;
}
.inline-option input {
width: auto;
margin: 0;
}
.error {
color: #c62828;
min-height: 20px;
}
ol { padding-left: 22px; }
/* removed unused play-again-row styles */
.heart {
display: inline-block;
margin-right: 2px;
}
.heart-active { color: #f2c94c; }
.heart-lost { color: #111; }