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

.container {
    max-width: 400px;
    margin: 20px auto;
    padding: 10px;
}

fieldset {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background-color: #fdf5e6;
    margin-bottom: 20px;
}

legend {
    background-color: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

input, select {
    width: calc(100% - 20px);
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.row-select {
    display: flex;
    justify-content: space-between; /* Pulsanti ai lati */
    align-items: center;
    gap: 10px;
}

.row input {
    flex: 1;
    padding: 8px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="tel"] {
    flex: 2; /* Casella telefono più larga */
}

input[name="punti"] {
    flex: 0.5; /* Casella punti più corta */
}

input[name="penal"] {
    width: 60px; /* Casella penalità più corta */
    text-align: center;
}

button:hover {
    background-color: rgb(184, 101, 0);
}

/* Pulsante Carica Foto */
.btn-upload {
    padding: 7px 10px; /* Pulsante più piccolo */
    background-color: #f0f0f0;
    color: #0073e6;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-upload:hover {
    background-color: #e5e5e5;
}

.btn-upload i {
    font-size: 16px; /* Icona leggermente più piccola */
}

.btn-submit {
    padding: 7px 30px;
    background-color: darkorange;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: orange;
}

/* Pulsante Elimina Giocatore */
.btn-delete {
    background-color: #e74c3c; /* Colore rosso per enfatizzare */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #c0392b; /* Colore rosso scuro per hover */
}

.btn-delete i {
    font-size: 18px;
}

/* Divisore */
.divider {
    height: 1px;
    background-color: #ccc;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 400px) {
    .row {
        flex-direction: column;
    }

    input, select, button {
        width: 100%;
    }

    .row-select {
        flex-wrap: nowrap; /* Mantieni tutto su una riga */
    }

    .row-select button,
    .row-select select {
        flex: 1; /* Gli elementi condividono lo spazio disponibile */
        min-width: auto; /* Nessuna larghezza minima rigida */
    }

    .row-select select {
        flex-grow: 2; /* La selezione occupa più spazio */
    }
}

.submit-row {
    text-align: center;
    margin-top: 20px;
}

.btn-left, .btn-right {
    padding: 8px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: calc(100% - 20px);
}

.btn-left {
    background-color: red;
    color: white;
}

.btn-right {
    background-color: green;
    color: white;
}

.divider {
    margin: 20px 0;
    border-top: 2px solid #ccc;
}

.row-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.row input,
.row select {
  flex: 1;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 14px;
}