Improve the following CSS for appearance and aesthetic.
"body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
background: #2C3E50; /* Dark blue-grey background /
color: #ECF0F1; / Light off-white text color /
overflow: hidden; / Hide any overflowing content */
}
.container {
display: flex;
height: 100vh; /* Full viewport height */
}
.map-section {
flex: 1; /* Takes up available space /
display: flex;
flex-direction: column;
padding: 10px;
min-width: 0; / Allows content to shrink */
}
.map-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
padding: 10px;
background: #34495E; /* Slightly lighter dark blue-grey /
border-radius: 5px;
flex-shrink: 0; / Prevents shrinking */
}
.map-title {
font-size: 18px;
font-weight: bold;
}
.map-dimensions {
font-size: 14px;
color: #BDC3C7; /* Muted text color for dimensions */
}
.canvas-container {
position: relative;
flex: 1; /* Takes up available space /
border: 2px solid #34495E;
border-radius: 5px;
overflow: hidden;
min-height: 0; / Allows content to shrink */
}
#mapCanvas {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.drawing-bar {
flex: 0 0 300px; /* Fixed width sidebar /
background: #34495E;
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px; / Space between sections /
overflow-y: auto; / Scroll for too much content */
}
.section {
background: #2C3E50;
border-radius: 8px;
padding: 15px;
}
.section-title {
font-size: 16px;
font-weight: bold;
margin-bottom: 10px;
color: #3498DB; /* Blue accent color */
}
.cell-picker, .dimension-controls, .action-buttons, .texture-controls, .brush-controls {
display: flex;
flex-direction: column;
gap: 10px;
}
.cell-option {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s; /* Smooth hover effect */
}
.cell-option:hover {
background: #34495E;
}
.cell-option.selected {
background: #3498DB; /* Highlight for selected option */
}
.cell-color {
width: 30px;
height: 30px;
border-radius: 3px;
border: 2px solid #ECF0F1; /* Border to show color clearly */
}
.dimension-input, .brush-input {
display: flex;
align-items: center;
gap: 10px;
}
.dimension-input label, .brush-input label {
min-width: 60px; /* Align labels */
}
.dimension-input input, .brush-input input, .texture-select {
flex: 1; /* Takes available space */
padding: 8px;
border: none;
border-radius: 3px;
background: #34495E;
color: #ECF0F1;
}
.texture-control-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.texture-control-group label {
font-size: 13px;
color: #BDC3C7;
}
#playerDirectionControls {
margin-top: 10px;
display: none; /* Hidden by default, only shown when Player is selected /
flex-direction: column;
gap: 5px;
background: #23313d; / Slightly darker background */
padding: 10px;
border-radius: 5px;
}
#playerDirectionControls button {
padding: 8px;
border: none;
border-radius: 3px;
background: #5A9966; /* Green button color /
color: white;
cursor: pointer;
transition: background-color 0.3s;
}
#playerDirectionControls button:hover {
background: #477b53;
}
#playerDirectionControls button.selected {
background: #3498DB; / Highlight selected direction button */
}
.btn {
padding: 12px;
border: none;
border-radius: 5px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s;
}
.btn-primary {
background: #3498DB; /* Primary blue button */
color: white;
}
.btn-primary:hover {
background: #2980B9;
}
.btn-secondary {
background: #95A5A6; /* Secondary grey button */
color: white;
}
.btn-secondary:hover {
background: #7F8C8D;
}
.btn-success {
background: #27AE60; /* Success green button */
color: white;
}
.btn-success:hover {
background: #229954;
}
.file-input {
display: none; /* Hidden file input */
}
.playtest-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #000; /* Black background for playtest /
z-index: 1000; / Ensure it's on top /
display: none; / Hidden until playtest starts */
}
.playtest-controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 1001; /* Above the overlay */
display: flex;
gap: 10px;
}
.playtest-info {
position: absolute;
top: 10px;
right: 10px;
z-index: 1001;
background: rgba(0,0,0,0.7); /* Semi-transparent background */
padding: 10px;
border-radius: 5px;
font-size: 12px;
}"