84 lines
1.5 KiB
CSS
84 lines
1.5 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background: #1a1a2e;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
font-family: 'Courier New', monospace;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#game-container {
|
|
position: relative;
|
|
border: 4px solid #4a4a6a;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
|
|
}
|
|
|
|
#game {
|
|
display: block;
|
|
background: linear-gradient(to bottom, #16213e 0%, #1a1a2e 100%);
|
|
}
|
|
|
|
#ui {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
right: 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: #fff;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
|
|
pointer-events: none;
|
|
}
|
|
|
|
#ui div {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
border: 2px solid #4a4a6a;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
#controls-hint {
|
|
position: absolute;
|
|
bottom: -35px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: #888;
|
|
font-size: 12px;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
padding: 6px 12px;
|
|
border-radius: 4px;
|
|
pointer-events: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#pause-btn {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
color: #fff;
|
|
border: 2px solid #4a4a6a;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
#pause-btn:hover {
|
|
background: rgba(74, 74, 106, 0.8);
|
|
border-color: #6a6a8a;
|
|
}
|