form {
    margin: 20px 0;
    display: flex;
    justify-content: center; /* Center the form content */
    align-items: center;
/*
    gap: 15px
*/
}
/* This overly broad rule was removed */
/*
input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 300px;
    font-size: 1rem;
}
*/
button {
    padding: 10px 20px;
    width: 100%;
    background-color: #512da8;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}
button:hover {
    background-color: #673ab7;
}
table {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto 0;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
img.cover {
    border-radius: 5px;
    max-width: 100px;
    width: 15vw;
}
/*
#search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 30px;
    width: 90%;
    max-width: 1000px;
    padding: 0 15px;
    box-sizing: border-box;
}
*/
.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-bar {
    width: 100%; /* Make the search bar full width */
    padding: 10px; /* Adjust padding as needed */
    box-sizing: border-box; /* Ensure padding is included in the width */
    margin-bottom: 10px; /* Add some space between the input and button */
    /* Properties from the old input[type="text"] rule are now here */
    border: none;
    border-radius: 5px;
    width: 300px;
}

/*
.search-bar {
    width: 90%;
    padding: 10px; 
    box-sizing: border-box; 
    margin-bottom: 10px; 
    border: none;
    border-radius: 5px;
    width: 563px;
    font-size: 1rem;
    max-width: 70vw;
}
*/
.search-button {
    width: auto; /* Set the button width to auto */
    padding: 10px 20px; /* Add padding to the button */
    background-color: #512da8;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Loading spinner styles */
.loading-spinner {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 10px;
    font-size: 1rem;
    color: white;
}

.button-spinner {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.button-spinner .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.message-scroller {
    display: none;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.error-message {
    color: red;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Default styles for small screens (vertical layout) */
.property-results-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    font-size: 0.6em;
}

.property-results-container span:not(:last-child)::after {
    /* Hide the separator by default on small screens */
    content: none;
}

/* New Filter Styles */
#filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto 30px;
    width: 90%;
    max-width: 1000px;
    padding: 0 15px;
    box-sizing: border-box;
}

.filter-row {
    display: flex;
    justify-content: center; /* Center the content within the row */
    align-items: center;
    width: 100%;
    gap: 15px; /* Add gap between controls and buttons */
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 563px;
    max-width: 70vw;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

#filter-container select, #filter-container input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
}

#filter-container button {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    background-color: #512da8;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 0;
}

#filter-container button:hover {
    background-color: #673ab7;
}

/* --- File Size Slider Styles --- */
.file-size-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 563px; /* Give the wrapper a specific width */
    max-width: 70vw; /* Helps with responsiveness on smaller screens */
}

#file-size-slider {
    flex-grow: 1; /* Allow the slider to take up the remaining space */
}

/* noUiSlider Customization */
.noUi-target {
    background: #e0e0e0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: none;
}

.noUi-connect {
    background: #8e24aa;
}

.noUi-horizontal {
    height: 10px;
}

.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -11px;
    top: -6px;
}

.noUi-horizontal .noUi-tooltip {
    bottom: -180%;
}

.noUi-handle {
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    outline: none;
}

.noUi-handle:after, .noUi-handle:before {
    display: none; /* Hide default pseudo-elements */
}

.noUi-tooltip {
    background: #512da8;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 0.8em;
}


/* Styles for large screens (horizontal layout) */
@media (min-width: 905px) {
    .property-results-container {
        flex-direction: row; /* Arrange items horizontally */
        justify-content: left; /* Distribute items evenly */
        align-items: center; /* Vertically align items in the middle */
    }

    .property-results-container span:not(:last-child)::after {
        /* Add and style the separator on large screens */
        content: "|";
        padding: 0 10px; /* Adjust spacing around the separator */
        color: #ccc; /* A subtle color for the separator */
    }
}

p.book-title {
    font-size: 0.9em;
}

@media (max-width: 500px) {

.search-bar {
    width: 200px;
}

}

