body {
    font-family: Arial, sans-serif;
    background-size: cover;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.book-item {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
	position: relative;
}
.book-item img {
    max-height: 200px;
    height: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

.book-item-ancien img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
#search-input {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: #ff9900;
    outline: none;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 20px;
    font-size: 16px;
    background: #ff9900;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
		back }
	
.book-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.modal-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
}

.modal-buttons button {
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
  .pret-button, .edit-button {
      background: none;
      border: none;
      font-size: 1.2em;
      cursor: pointer;
      color: #555;
    }
    .pret-button:hover, .edit-button:hover {
      color: #000;
    }
 select:invalid { color: gray; }
    
    .image-option {
      max-width: 100px;
      max-height: 140px;
      margin: 10px;
      border: 3px solid transparent;
      cursor: pointer;
    }
    .image-option.selected {
      border-color: #007bff;
    }