body {
    background-color: #111;
    color: #f2f2f2;
    font-family: sans-serif;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 600px;
    margin: auto;
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.title {
    text-align: center;
    color: #e91e63;
    font-size: 28px;
    margin-bottom: 20px;
}

.label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.input {
    width: 100%;
    padding: 8px;
    background-color: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

.slider {
    width: 100%;
    margin-top: 5px;
}

.section-title {
    margin-top: 20px;
    font-size: 18px;
    color: #ff4081;
}

.list {
    list-style-type: disc;
    padding-left: 20px;
    color: #ccc;
}

.accordion details {
    background-color: #333;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion summary {
    cursor: pointer;
    font-weight: bold;
}

.accordion p {
    margin-top: 5px;
    font-size: 14px;
    color: #ddd;
}

.button-wrapper {
    text-align: center;
    margin-top: 20px;
}

.button {
    background-color: #e91e63;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover {
    background-color: #c2185b;
}

.result-box {
    background-color: #333;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #555;
}

.success {
    color: #4caf50;
    font-weight: bold;
}

.crit {
    color: gold;
    text-shadow: 0 0 4px gold;
}

.hunger {
    color: #f44336;
}

.highlight {
    font-size: 20px;
    color: #ffeb3b;
    font-weight: bold;
}

.bonus-malus {
    margin-top: 15px;
}

.bonus-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bonus-btn {
    background: #444;
    color: white;
    padding: 5px 12px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bonus-btn:hover {
    background: #666;
}

.health-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.health-box {
    width: 30px;
    height: 30px;
    border: 2px solid #888;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    user-select: none;
}

.health-box.superficiale {
    background-color: #444;
}

.health-box.aggravato {
    background-color: #b71c1c;
    color: white;
    font-weight: bold;
}

.xp-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#xpInput {
    width: 80px;
    padding: 5px;
    font-size: 1rem;
}

.add-weapon-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.add-weapon-form input {
    padding: 5px;
    font-size: 1rem;
    width: 100%;
}

.add-weapon-form button {
    padding: 6px 12px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.add-weapon-form button:hover {
    background-color: #555;
}

.delete-weapon {
    background: none;
    border: none;
    cursor: pointer;
    color: #1b9a30;
    font-size: 1.2em;
    padding-left: 0.5em;
}

.delete-weapon:hover {
    color: red;
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.notes-section {
    margin-top: 20px;
}

#notesArea {
    width: 100%;
    padding: 8px;
    font-family: monospace;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    min-height: 100px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#exportBtn {
    background-color: #4f46e5;
    /* indigo-500 */
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

#exportBtn:hover {
    background-color: #4338ca;
    /* indigo-600 */
}

.import-label {
    display: inline-block;
    background-color: #3b82f6;
    /* blue-500 */
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.2s;
}

.import-label:hover {
    background-color: #2563eb;
    /* blue-600 */
}

.success {
    color: green;
    font-weight: bold;
}

.failure {
    color: darkred;
    font-weight: bold;
}

.health-controls {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}

.create-character-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* hidden deve stare dopo create-character-section, altrimenti viene sovrascritto e il pulsante che nasconde gli input smette di funzionare  */
.hidden {
    display: none;
}

.add-character-btn {
    margin: 3%;
}