119 lines
2.5 KiB
CSS
119 lines
2.5 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 20px;
|
|
background: #000;
|
|
color: #fff;
|
|
font-family: 'Courier New', monospace;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.game-container {
|
|
display: flex;
|
|
gap: 20px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.main-game {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
canvas {
|
|
border: 2px solid #333;
|
|
background: #111;
|
|
}
|
|
|
|
.info-panel {
|
|
width: 200px;
|
|
background: #222;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.info-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.info-section h3 {
|
|
margin: 0 0 10px 0;
|
|
color: #ccc;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.next-canvas,
|
|
.hold-canvas {
|
|
border: 1px solid #444;
|
|
background: #111;
|
|
}
|
|
|
|
.controls {
|
|
margin-top: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.controls h3 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.controls p {
|
|
margin: 5px 0;
|
|
font-size: 12px;
|
|
color: #aaa;
|
|
}
|
|
|
|
button {
|
|
background: #333;
|
|
color: #fff;
|
|
border: 1px solid #555;
|
|
padding: 8px 16px;
|
|
margin: 5px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
button:hover {
|
|
background: #555;
|
|
}
|
|
|
|
.game-over {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(0, 0, 0, 0.9);
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
border: 2px solid #f00;
|
|
}
|
|
|
|
.score-info {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.score-info div {
|
|
text-align: center;
|
|
}
|
|
|
|
.status {
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
background: #333;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.connection-status {
|
|
color: #0f0;
|
|
}
|
|
|
|
.connection-status.disconnected {
|
|
color: #f00;
|
|
} |