387 lines
7.6 KiB
CSS
387 lines
7.6 KiB
CSS
/* СИМУЛЯТОР БОМЖА 3D - Styles */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@400;700&display=swap');
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary: #e94560;
|
|
--secondary: #4ecdc4;
|
|
--dark: #1a1a2e;
|
|
--darker: #0f0f23;
|
|
--gold: #f39c12;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-family: 'Roboto', sans-serif;
|
|
color: #fff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#game-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* Header */
|
|
#game-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 900px;
|
|
padding: 15px 25px;
|
|
background: rgba(26, 26, 46, 0.95);
|
|
border-radius: 15px;
|
|
border: 2px solid var(--primary);
|
|
box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
|
|
}
|
|
|
|
#game-header h1 {
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 16px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
#day-time {
|
|
display: flex;
|
|
gap: 20px;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 10px;
|
|
}
|
|
|
|
#day-time span {
|
|
padding: 8px 15px;
|
|
background: rgba(0,0,0,0.4);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
#day-display { color: var(--gold); }
|
|
#time-display { color: var(--secondary); }
|
|
|
|
/* Game Container */
|
|
#game-container {
|
|
position: relative;
|
|
width: 900px;
|
|
height: 600px;
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
border: 3px solid var(--primary);
|
|
box-shadow: 0 0 50px rgba(233, 69, 96, 0.4);
|
|
}
|
|
|
|
#game-canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* UI Overlay */
|
|
#ui-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#ui-overlay > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.panel {
|
|
background: rgba(0, 0, 0, 0.85);
|
|
border: 2px solid var(--primary);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.panel-header {
|
|
padding: 10px 15px;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 10px;
|
|
color: var(--primary);
|
|
border-bottom: 1px solid rgba(233, 69, 96, 0.3);
|
|
}
|
|
|
|
/* Stats Panel */
|
|
#stats-panel {
|
|
position: absolute;
|
|
top: 15px;
|
|
left: 15px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.stat-row:last-child { margin-bottom: 0; }
|
|
|
|
.stat-icon {
|
|
font-size: 16px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.stat-bar-container {
|
|
width: 100px;
|
|
height: 16px;
|
|
background: #333;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.stat-bar {
|
|
height: 100%;
|
|
border-radius: 8px;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
.health-bar { background: linear-gradient(90deg, #e74c3c, #ff6b6b); }
|
|
.energy-bar { background: linear-gradient(90deg, #4ecdc4, #45b7aa); }
|
|
|
|
.stat-value {
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 10px;
|
|
min-width: 50px;
|
|
}
|
|
|
|
.money-value { color: var(--gold); }
|
|
|
|
/* Location Bar */
|
|
#location-bar {
|
|
position: absolute;
|
|
top: 15px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 10px 25px;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
border: 2px solid var(--gold);
|
|
border-radius: 20px;
|
|
}
|
|
|
|
#location-icon { font-size: 18px; }
|
|
#location-name { color: var(--gold); }
|
|
|
|
/* Inventory Panel */
|
|
#inventory-panel {
|
|
position: absolute;
|
|
bottom: 15px;
|
|
left: 15px;
|
|
padding: 10px;
|
|
width: 220px;
|
|
}
|
|
|
|
#inventory-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 5px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.inv-slot {
|
|
aspect-ratio: 1;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
border: 2px solid #555;
|
|
border-radius: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.inv-slot:hover { border-color: var(--primary); transform: scale(1.1); }
|
|
.inv-slot.empty { opacity: 0.3; cursor: default; }
|
|
.inv-slot.empty:hover { transform: none; border-color: #555; }
|
|
|
|
/* Locations Panel */
|
|
#locations-panel {
|
|
position: absolute;
|
|
bottom: 15px;
|
|
right: 15px;
|
|
width: 150px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.loc-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin: 5px 0;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 1px solid #555;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 7px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.loc-btn:hover { background: var(--primary); }
|
|
.loc-btn.active { background: var(--primary); border-color: var(--gold); }
|
|
|
|
/* Action Hint */
|
|
#action-hint {
|
|
position: absolute;
|
|
bottom: 80px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 8px 20px;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
border: 1px solid #fff;
|
|
border-radius: 20px;
|
|
font-size: 10px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
#action-hint.visible { opacity: 1; }
|
|
|
|
.key {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
background: var(--primary);
|
|
border-radius: 4px;
|
|
margin: 0 3px;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 8px;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(0, 0, 0, 0.95);
|
|
padding: 25px;
|
|
border-radius: 15px;
|
|
border: 3px solid var(--primary);
|
|
text-align: center;
|
|
display: none;
|
|
z-index: 100;
|
|
max-width: 350px;
|
|
}
|
|
|
|
.modal.show { display: block; }
|
|
|
|
#message-icon {
|
|
font-size: 40px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#message-text {
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.modal-btn {
|
|
padding: 12px 30px;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 9px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-btn:hover { background: #ff6b6b; }
|
|
|
|
/* Title Screen */
|
|
#title-screen {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 50;
|
|
}
|
|
|
|
#title-screen.hidden { display: none; }
|
|
|
|
.title-logo {
|
|
font-size: 60px;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
#title-screen h1 {
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 20px;
|
|
color: var(--primary);
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.subtitle {
|
|
color: #888;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.start-btn {
|
|
padding: 15px 50px;
|
|
font-family: 'Press Start 2P', cursive;
|
|
font-size: 11px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.start-btn:hover { transform: scale(1.05); }
|
|
|
|
.controls-info {
|
|
margin-top: 30px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
font-size: 9px;
|
|
color: #555;
|
|
justify-content: center;
|
|
max-width: 600px;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-15px); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { transform: scale(1); }
|
|
50% { transform: scale(1.05); }
|
|
}
|
|
|
|
#game-footer {
|
|
font-size: 10px;
|
|
color: rgba(255,255,255,0.3);
|
|
}
|