body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    cursor: pointer;
}

.deleteIcon {
    color: red;
    cursor: pointer;
}

.mainlogo {
    width: 100px;
    margin: 0 auto;
    display: block;
}

tr:nth-child(even) {
    background-color: #e7e7e7;
}

.current-turn {
    background-color: rgba(255, 255, 0, 0.5) !important;
    font-weight: bold;
}

.btn.btn-primary {
    background: #000000;
    border: none;
    color: #ffffff;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn.btn-primary:hover {
    background: #ffffff;
    border: 1px solid red;
    color: #000000;
    transition: 0.3s;
}

#numRows {
    max-width: 80px;
    text-align: center;
}

.euput {
    text-align: center;
}

.edit.d-flex {
    gap: 10px;
}

.bottomcol {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 991px) {

    .bottomcol {
        flex-direction: column;
        gap: 10px;
    }

    .edit.d-flex {
        gap: 5px;
    }

    #numRows {
        max-width: 100%;
    }
}

.table-responsive {
    overflow-x: auto;
}

/* Ottimizzazione del layout su dispositivi mobili */
@media (max-width: 991px) {
    .topbuttonleft, .topbuttonright {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
        margin-bottom: 1rem;
    }

    .topbuttonleft input, .topbuttonright input {
        width: 100%;
        margin-bottom: 5px;
    }

    .topbuttonleft button, .topbuttonright button {
        width: 100%;
    }

    .turn {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    #combatTable th, #combatTable td {
        font-size: 14px;
        padding: 5px;
    }

    .container {
        padding: 10px;
    }

    h1 {
        text-align: center;
    }
}

.actions {
    align-content: center;
}

.actions i {
    font-size: larger;
}
