.spell-entry, .weapon-entry{
    background-color: #333;
    color: #eee;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Add relative positioning for absolute child elements */
}

.spell-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1; /* Allow spell-info to take up remaining space */
}

.spell-name-container {
    position: relative;
    display: inline-block;
}

.spell-name {
    font-weight: bold;
    cursor: help; /* Change cursor to indicate help/tooltip is available */
    display: flex;
    
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 100%; /* Position above the spell name */
    left: 0;
    background-color: #333;
    color: #eee;
    padding: 10px;
    border-radius: 5px;
    width: 400px;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px); /* Slightly lift the tooltip */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.spell-name:hover .tooltip {
    display: block;
    opacity: 1;
    transform: translateY(-15px); /* Lift a bit more on hover */
}

.tooltip-header h3 {
    margin: 0 0 5px 0;
    color: #ffcc00; /* Gold color for the header */
}

.tooltip-content p{
    font-size: 14px !important;
    line-height: 1.4 !important; 
    color: white !important;
    margin-bottom: 0px !important;
}
    .tooltip-content p strong{
        text-decoration: underline;
    }


.spell-rank {
    color: #ccc;
}

.attack-bonus{
    position: absolute;
    top: 5px;
    right: 35px;
    color: lightblue;
    font-size: 25;
}

.remove-spell-button, .remove-weapon-button {
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
    position: absolute; /* Position absolutely within spell-entry */
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-spell-button:hover .remove-weapon-button:hover{
    background-color: #cc0000;
}

.spell-traits {
    font-size: 18px;
}