Files
Untitled-Maze-Game/css/style.css

198 lines
3.3 KiB
CSS

html,
body {
margin: 0;
min-height: 100%;
}
body.maze-page {
background:
radial-gradient(circle at top, #1c2733 0%, #0a0f15 55%, #06080c 100%);
color: #e8eef6;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
canvas {
display: block;
}
.maze-layout {
width: min(1100px, calc(100vw - 24px));
margin: 12px auto 20px;
display: grid;
gap: 12px;
}
.panel {
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 16px;
background: rgba(7, 12, 18, 0.72);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
overflow: hidden;
}
.panel-label {
padding: 10px 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
font-size: 12px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #93a4b8;
}
#renderCanvas {
width: 100%;
height: min(62vh, 680px);
}
.control-panel {
padding: 16px;
overflow-y: auto;
max-height: 400px;
}
.control-group {
margin-bottom: 20px;
}
.control-group h3 {
margin: 0 0 12px;
font-size: 13px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #93a4b8;
font-weight: 600;
}
.button-group {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.game-button {
padding: 10px 16px;
background: #17314c;
border: 1px solid #284055;
border-radius: 8px;
color: #eef5ff;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
flex: 1;
min-width: 100px;
}
.game-button:hover {
background: #1f3a57;
border-color: #3a5070;
box-shadow: 0 4px 12px rgba(125, 180, 255, 0.15);
}
.game-button:active {
background: #17314c;
border-color: #7db4ff;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.slider-group {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
font-size: 13px;
color: #dbe6f2;
}
.slider-group label {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
}
.slider-group input[type="range"] {
flex: 1;
min-width: 100px;
height: 6px;
background: #1f3a57;
border: none;
border-radius: 3px;
outline: none;
-webkit-appearance: none;
cursor: pointer;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
background: #79aef2;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 6px rgba(121, 174, 242, 0.4);
}
.slider-group input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
background: #79aef2;
border: none;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 6px rgba(121, 174, 242, 0.4);
}
.slider-group span {
min-width: 30px;
text-align: right;
color: #79aef2;
font-weight: 500;
}
.status-display {
background: rgba(25, 40, 55, 0.5);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
padding: 12px;
font-size: 12px;
}
.status-line {
display: flex;
justify-content: space-between;
padding: 6px 0;
color: #dbe6f2;
}
.status-line strong {
color: #93a4b8;
min-width: 60px;
}
.status-line span {
color: #79aef2;
font-weight: 500;
}
.status-message {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
color: #91a4b8;
font-size: 11px;
line-height: 1.5;
}
@media (max-width: 720px) {
.maze-layout {
width: calc(100vw - 16px);
margin: 8px auto 16px;
}
#renderCanvas {
height: 52vh;
}
}