.modal .modal-content > div {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modalButton{
    width: 100%;
    height: 35px;
    border: 1px solid #888;
    background-color: darkslategray;
    color: #e6e6e6;
    font-size: 17px
}

.modalButton{
    width: 100%;
    height: 35px;
    border: 1px solid #888;
    background-color: darkslategray;
    color: #e6e6e6;
    font-size: 17px
}
.modalButton.featChosen{
    background-color: rgb(2, 108, 108);
}

.spell-add-button, .metamagic-add-button, .weapon-add-button, .combatManeuvers-add-button, .gadgets-add-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    margin: 4px;
    border-radius: 4px;
    border: 1px solid #888;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.spell-add-button:hover { background: rgba(255,255,255,0.06); }

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Could be more or less, depending on screen size */
    height: 85%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.modal-content.small {
    margin: 14% auto; /* 15% from the top and centered */
    width: 35%; /* Could be more or less, depending on screen size */
    height: 40%;
}

.stat-assignment {
    display: flex;
    flex-direction: row !important;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
    justify-content: center;
}
.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.stat-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.confirm-button {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.confirm-button:hover {
    background-color: #45a049;
}

.stat-row label {
    font-size: 1.4em; /* Increase label size */
    min-width: 50px; /* Ensure labels align properly */
}

.statIncreaseButton {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 110px;
    height: 45px;
}
