sandsim/styles.css
2025-04-05 19:08:28 +02:00

132 lines
2.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #222;
color: #fff;
overflow: hidden;
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.controls {
display: flex;
justify-content: space-between;
padding: 10px;
background-color: #333;
}
.tools button, .navigation button {
background-color: #555;
color: white;
border: none;
padding: 8px 12px;
margin: 0 5px;
cursor: pointer;
border-radius: 4px;
}
.tools button.active {
background-color: #ff9800;
}
#spawn-player-btn {
background-color: #4CAF50;
color: white;
font-weight: bold;
padding: 10px 15px;
margin-left: 10px;
}
#spawn-player-btn:hover {
background-color: #45a049;
}
.navigation {
display: flex;
}
.info {
display: flex;
flex-direction: column;
justify-content: center;
}
.info span {
margin: 2px 0;
font-size: 14px;
}
.help-text {
color: #aaa;
}
#simulation-canvas {
flex-grow: 1;
background-color: #000;
cursor: crosshair;
}
#player-hud {
position: fixed;
bottom: 10px;
left: 10px;
width: 300px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
border-radius: 5px;
font-family: Arial, sans-serif;
z-index: 1000;
}
#health-bar-container {
width: 100%;
height: 20px;
background-color: rgba(255, 255, 255, 0.3);
margin-bottom: 10px;
border-radius: 3px;
}
#health-bar {
width: 100%;
height: 100%;
background-color: #4CAF50;
border-radius: 3px;
transition: width 0.3s;
}
#inventory-container {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 5px;
}
.inventory-slot {
width: 30px;
height: 30px;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 3px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 10px;
position: relative;
transition: transform 0.1s;
}
.inventory-slot:hover {
transform: scale(1.1);
background-color: rgba(255, 255, 255, 0.3);
}