Spaces:
Running
Running
/* --- Character Sheet Styling --- */ | |
#character-sheet-container { | |
background-color: #3a3a3a; /* Slightly lighter than main background */ | |
border: 1px solid #555; | |
padding: 15px; | |
margin-top: 20px; | |
border-radius: 5px; | |
display: flex; | |
flex-direction: column; | |
gap: 15px; /* Spacing between sections */ | |
color: #eee; | |
max-width: 450px; /* Adjust width as needed */ | |
margin-left: auto; /* Example positioning */ | |
margin-right: auto; | |
} | |
#character-sheet-container h2, | |
#character-sheet-container h3 { | |
margin: 0 0 10px 0; | |
color: #f0f0f0; | |
border-bottom: 1px solid #666; | |
padding-bottom: 5px; | |
} | |
.char-section { | |
background-color: #444; | |
padding: 10px; | |
border-radius: 4px; | |
} | |
.char-header { | |
display: flex; | |
align-items: center; | |
gap: 10px; | |
flex-wrap: wrap; /* Allow wrapping */ | |
} | |
.char-header label { | |
font-weight: bold; | |
} | |
#char-name { | |
flex-grow: 1; /* Take remaining space */ | |
background-color: #555; | |
border: 1px solid #777; | |
color: #fff; | |
padding: 4px 6px; | |
border-radius: 3px; | |
min-width: 100px; | |
} | |
.char-details { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */ | |
gap: 8px; | |
} | |
.char-details label, .char-level-xp label { | |
font-weight: bold; | |
color: #ccc; | |
} | |
.char-details span, .char-level-xp span { | |
color: #fff; | |
} | |
.char-level-xp { | |
display: flex; | |
justify-content: space-around; | |
align-items: center; | |
gap: 15px; | |
flex-wrap: wrap; | |
} | |
.char-level-xp div{ | |
display: flex; | |
align-items: center; | |
gap: 5px; | |
} | |
.char-stats h3 { | |
margin-bottom: 5px; | |
} | |
.stats-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Responsive grid */ | |
gap: 5px 10px; /* Row and column gap */ | |
margin-bottom: 10px; | |
} | |
.stats-grid div { | |
background-color: #333; | |
padding: 3px 6px; | |
border-radius: 3px; | |
display: flex; | |
justify-content: space-between; /* Align items nicely */ | |
align-items: center; | |
} | |
.stats-grid span { | |
margin-right: 5px; /* Space before button */ | |
} | |
.char-stats small { | |
color: #aaa; | |
display: block; /* Make it take its own line */ | |
text-align: center; | |
} | |
.char-possessions h3 { | |
margin-bottom: 5px; | |
} | |
#char-inventory-list { | |
list-style: decimal; /* Use numbers */ | |
margin: 0; | |
padding-left: 25px; /* Space for numbers */ | |
max-height: 180px; /* Limit height and make scrollable */ | |
overflow-y: auto; | |
background-color: #333; | |
border-radius: 3px; | |
padding-top: 5px; | |
padding-bottom: 5px; | |
} | |
#char-inventory-list li { | |
margin-bottom: 3px; | |
color: #ccc; | |
padding: 2px 5px; | |
min-height: 1.2em; /* Ensure empty slots have height */ | |
} | |
/* Style for actual items in the list */ | |
#char-inventory-list li span:not(.item-slot) { | |
background-color: #5a5a5a; | |
padding: 1px 4px; | |
border-radius: 2px; | |
color: #fff; | |
font-size: 0.9em; | |
cursor: default; /* Indicate it's not interactive (unless you add features) */ | |
} | |
/* Style for empty slots */ | |
.item-slot { | |
color: #666; | |
font-style: italic; | |
font-size: 0.9em; | |
} | |
.item-slot::before { | |
content: '[Empty]'; | |
} | |
/* --- Emoji Button Styling --- */ | |
.emoji-button { | |
background: none; | |
border: 1px solid #666; | |
color: #ddd; | |
padding: 3px 5px; | |
border-radius: 4px; | |
cursor: pointer; | |
font-size: 1.1em; /* Adjust emoji size */ | |
line-height: 1; /* Prevent extra spacing */ | |
transition: background-color 0.2s, border-color 0.2s; | |
display: inline-flex; /* Align emoji and label */ | |
align-items: center; | |
gap: 4px; /* Space between emoji and label */ | |
} | |
.emoji-button:hover:not(:disabled) { | |
background-color: #555; | |
border-color: #888; | |
} | |
.emoji-button:active:not(:disabled) { | |
background-color: #444; | |
} | |
.emoji-button:disabled { | |
opacity: 0.5; | |
cursor: not-allowed; | |
border-color: #444; | |
} | |
.emoji-button .btn-label { | |
font-size: 0.7rem; /* Smaller text label */ | |
line-height: 1; | |
display: inline-block; /* Or none if you prefer only icons */ | |
color: #ccc; | |
} | |
/* Make stat increase buttons smaller */ | |
.stat-increase { | |
font-size: 0.9em; | |
padding: 1px 3px; | |
} | |
.stat-increase .btn-label { | |
display: none; /* Hide label for stat buttons */ | |
} |