body {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5dc;
}

.container {
    min-width: 320px;
    max-width: 640px;
    margin-bottom: 40px;
}

h1 {
    text-align: center;
}

.donor-infos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 10px;
}

input {
    width: 130px;
    padding: 8px;
}

input, button {
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #d3d3d3;
}

button {
    padding: 8px 10px;
    color: #fff;
    cursor: pointer;
    background-color: #4169e1;
} 

table {
    width: 300px;
    padding: 5px;
    margin: 10px auto 0;
    border-collapse: collapse;
    border-radius: 15px;
    background-color: #fff;
}

table, th, td {
    border: thin solid;
}

th {
    padding: 6px 8px;
    border-bottom-width: thick;
}

.name-head, .id {
    text-align: left;
}

.amount-head {
    text-align: right;
}

td {
    padding: 4px 8px;
}

td:nth-of-type(3) {
    text-align: right;
}

td:nth-of-type(4) {
    text-align: center;
}

.editbtn {
    width: 80%;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
    background-color: #663399;
}

.display-total {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
    margin-right: 30px;
}

#donor-update {
  display: none;
  margin: 20px auto 0;
  text-align: center;
}

#update-name {
    width: 100px;
}

#update-amount {
    width: 60px;
}

#total-amount, #cancel-btn {
    background-color: #C71585;
}

@media screen and (min-width: 520px) {

    table {
        width: 480px;
    }    
}