body {
    font-family: 'Arial', sans-serif;
    width: 75%;
    margin: 1em auto 0 auto;
    padding: 0px 20px 20px 20px;
    border: solid 1px #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

#enregistrements, #listes {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 2em;
}

#ajoutAdherent {
    width: 50%;
}

#ajoutLivre {
    width: 50%;
}

#adh {
    width: 20%;
}

#dispos, #empr {
    width: 40%;
}

#adh fieldset, #dispos fieldset, #empr fieldset {
    min-height: 35em;
}

#listeAdherents div {
    margin: 0.5em;
}

#listeLivresDisponibles div {
    margin: 0.5em;
}

#listeLivresEmpruntes div {
    margin: 0.5em;
}

legend {
    font-size: 1.5em;
}

h2 {
    color: #333;
    background-color: #eee;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 1em;
}

ul {
    padding-left: 20px;
}

li {
    cursor: pointer;
    background-color: #fff;
    line-height: 1.5em;
    margin-bottom: 0.5em;
    padding: 0.5em;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

li:hover {
    background-color: lightgrey;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: gray;
    border: none;
    color: white;
    padding: 5px 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

input {
    padding: 10px;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="button"] {
    width: 25%;
}

input[type="text"] {
    width: 70%;
}

input {
    min-height: 1.5em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 8px;
    position: relative;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button, .close-button-image {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus,
.close-button-image:hover,
.close-button-image:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalLivresList div {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#modalLivresList div:last-child {
    border-bottom: none;
}

#modalLivreDetails {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

#modalLivreImage {
    max-width: 200px;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#modalLivreInfo {
    flex: 1;
    padding: 10px;
}

#modalLivreInfo p {
    margin: 10px 0;
    line-height: 1.6;
}

#modalLivreInfo strong {
    color: #333;
}
