body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 50px;
}
.character-sheet {
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}
.name-background-div {
    flex: 3;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.personal-traits {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.trait-field {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    flex: 1;
}
.trait-name {
    font-size: 0.5em;
    font-weight: bold;
}
.trait-value {
    font-size: 1.1em;
    color: #d9534f;
}
.attribute-container-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
}
.description-field {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 0.5em;
    flex: 1;
    min-height: 96px;
}
.attribute-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}
.attribute {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.attribute-name {
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Germania One', cursive;
}
.attribute-value {
    font-size: 1.8em;
    color: #d9534f;
    font-family: 'PT Sans Narrow', sans-serif;
}
.attribute-rolls {
    font-size: 0.8em;
    color: #888;
}
.hp-cores, .item-list {
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}
.hp-cores-values {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.hp-cores-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hp-cores-label {
    font-size: 1.2em;
    font-weight: bold;
}
.hp-cores-number {
    font-size: 1.8em;
    color: #d9534f;
    font-family: 'PT Sans Narrow', sans-serif;
}
.item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    text-align: left;
    position: relative;
}
.item-label {
    position: absolute;
    top: 2px;
    left: 5px;
    font-size: 0.7em;
    color: #aaa;
}
.actions {
    margin-top: 20px;
}
.actions button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.actions button:hover:not([disabled]) {
    background-color: #4cae4c;
}
.actions button[disabled] {
    cursor: not-allowed;
    background-color: #ccc;
}
.name-input-container {
    text-align: center;
    padding-bottom: 10px;
}
.name-label {
    font-size: 1.2em;
    font-weight: bold;
}
#name-input {
    font-size: 1.5em;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    width: 80%;
}
.background-div {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}
.background-label {
    font-size: 0.9em;
    font-weight: bold;
}
.background-value {
    font-size: 1.2em;
    color: #d9534f;
}
.character-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.character-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 5px;
}
.card-stats {
    font-size: 0.9em;
    color: #555;
}
