fertig-classic-games/public/styles.css

59 lines
1.1 KiB
CSS

html, body {
margin: 0;
padding: 0;
height: 100%;
background: #0a0e14;
color: #e6edf3;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
overflow: hidden;
}
#game-container {
width: 100%;
height: 100%;
}
#game-container canvas {
display: block;
margin: 0 auto;
}
/* DOM overlay used by UI components (text inputs, file pickers) positioned
absolutely above the canvas. Pointer events are enabled per-element. */
#dom-layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
}
#dom-layer * {
pointer-events: auto;
}
#dom-layer input[type="text"],
#dom-layer input[type="email"],
#dom-layer input[type="password"],
#dom-layer textarea {
font: inherit;
background: rgba(15, 23, 36, 0.95);
color: #e6edf3;
border: 1px solid #2c3a4d;
border-radius: 6px;
padding: 8px 10px;
outline: none;
}
#dom-layer input:focus,
#dom-layer textarea:focus {
border-color: #5aa9e6;
box-shadow: 0 0 0 2px rgba(90, 169, 230, 0.3);
}
#dom-layer button {
font: inherit;
}