/* Basic Modal Styling */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1000; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity (backdrop) */ } .modal-content { background-color: #fefefe; margin: 10% auto; /* 10% from the top and centered horizontally */ padding: 20px; border: 1px solid #888; width: 80%; /* Could be more or less, depending on screen size */ max-width: 700px; /* Max width for larger screens */ border-radius: 8px; position: relative; /* For positioning the close button */ box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); } /* Close Button */ .close-button { color: #aaa; float: right; /* Position to the top-right */ font-size: 28px; font-weight: bold; position: absolute; /* Position relative to modal-content */ top: 10px; right: 20px; } .close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; } /* Style for the book list entries on edit_books.html for better layout */ #book-list-container ul { list-style-type: none; padding: 0; } #book-list-container li { border: 1px solid #ddd; margin-bottom: 10px; padding: 10px; border-radius: 5px; } .book-entry { display: flex; /* Use flexbox for alignment */ align-items: flex-start; /* Align items to the start of the cross axis */ } .book-entry img { margin-right: 15px; flex-shrink: 0; /* Prevent image from shrinking */ } .book-entry div { flex-grow: 1; /* Allow text content to take up remaining space */ } .book-entry button { margin-left: 10px; align-self: center; /* Center button vertically within the flex container */ } /* Ensure modal input fields are a bit more organized */ .modal-content div { margin-bottom: 10px; } .modal-content label { display: block; margin-bottom: 5px; } .modal-content input[type="text"], .modal-content input[type="number"], .modal-content textarea { width: calc(100% - 22px); /* Adjust width to account for padding/border */ padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; /* Include padding and border in the element's total width and height */ } .modal-content textarea { resize: vertical; min-height: 80px; } .modal-content button { padding: 10px 15px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; } .modal-content button:hover { background-color: #0056b3; } #modal-search-button { margin-left: 5px; }