body {
    background: radial-gradient(circle at top left, #9a61d0, #080813 75%);
    background-size: 100% 100%;
    background-color: #080813;  /* Fallback background color */
    color: white;
    font-family: 'Open Sans', Arial, sans-serif;
    min-height: 1000px;  /* Minimum height */
    margin: 0;  /* Remove default margin */
    padding-top: 50px;  /* Padding to compensate for the fixed navbar */
}
.navbar {
    overflow: visible;
    background-color: #303030;
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    line-height: 75px;
}
.navbar a {
    float: right;
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin-right: 20px;
    padding: 0 14px;
    line-height: 75px;            
}
.navbar img {
    float: left;
    height: 45px;
    margin-left: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.dropdown {
    position: relative;
    float: right;  /* Align it to the right like the other navbar items */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;  /* Position it directly below .dropbtn */
    right: 0;  /* Align it to the right of .dropdown */
    background-color: #303030;
    min-width: initial;  /* Allow natural width */
    white-space: nowrap;  /* Prevent text wrapping */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a:hover {
    background-color: #555;
}

.dropdown-content a {
    color: white;
    padding: 8px 16px;
    display: block;
    white-space: nowrap;
    float: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* .dropdown-content a:first-child {
    margin-top: 50px;
} */
.dropdown:hover .dropdown-content {
    display: block;
}

.navbar .menu-toggle {
    display: none;
}

/* For mobile view */
@media screen and (max-width: 768px) {
    .navbar .menu-toggle {
        display: block;
    }
    .navbar a, .navbar .dropdown {
        display: none;
    }
    .navbar a.menu-toggle {
        display: block;
    }
}

/* New styles for navbar-mobile */
.navbar-mobile {
    display: none;
    background-color: #303030;
    position: fixed;
    top: 75px;
    width: 100%;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
}
.navbar-mobile a, .navbar-mobile .dropdown {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #555;  /* Adjusted border color */
    padding: 12px 16px;  /* Adjusted padding */
    color: white; 
    text-decoration: none;
}

.navbar-mobile .dropdown-content {
    position: relative;
    background-color: #303030;
    width: 100%;
    border-bottom: none;
    padding-left: 32px;  /* Added padding for indentation */
}

/* Search Section */
.search-section {
    text-align: center;
    margin-top: 40px;  /* Adjust as needed */
}

/* Search Bar and Button */
.search-bar input,
.search-bar button {
    border-radius: 8px;  /* Rounded corners */
}

/* Input */
#search-input {
    width: 40%; 
    padding: 12px;
    color: black;
    background-color: white;
    border: 1px solid #ccc;
}

#search-filters {    
    text-align: center;    
}

#search-filters-options {
    display: none;  /* Hidden by default */
    width: 350px;
    background-color: rgba(0, 0, 0, 0.8);  /* 80% opaque black */
    margin: 0 auto;
    border-radius: 16px;
    padding: 12px;
    text-align: left;
}

@media screen and (max-width: 350px) {
    #search-filters-options {
        width: 90%;
    }
}
#filter-options ul {
    list-style-type: none;  /* Remove bullet points */
    padding-left: 0;  /* Remove padding */
    margin-left: 0;  /* Remove margin */
}



.filter-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}


#search-input::placeholder {
    color: grey;
    font-style: italic;
}

/* Button */
#search-button {
    padding: 12px 20px;
    background-color: green;
    color: white;
    border: none;
}

/* Mobile View */
@media screen and (max-width: 768px) {
    #search-input {
        width: 90%;  /* Mobile width */
    }
    #search-button {
        display: block;
        margin-top: 10px;
        width: 100px;  /* Restricted width */
        margin: 10px auto 0 auto;  /* Center the button */
    }
}

.hidden {
    display: none;
    }
    
    .audiobook-card {
        background-color: rgba(0, 0, 0, 0.75);
        color: white;
        padding: 16px;
        margin: 4px;
        min-width: 200px;
    }
    
    @media screen and (min-width: 768px) {
    .audiobook-card {
        max-width: 400px;
        }
    }

    
    /* .audiobook-cover {
    width: 100px;
    height: 100px;
    }
     */
    @media screen and (min-width: 768px) {
        .audiobook-cover {
            max-width: 300px;  /* Sets the maximum width */
            height: auto;  /* Maintains aspect ratio */
            padding: 12px;  /* Adds padding around the image */
        }
    }

    
/* New styles for audiobook cards container */
#audiobook-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    /* add top margin of 4px */
    margin-top: 8px;
    /* Max width of the container, 1280 or 90% of screen, whichever is smaller */
    
}

#audiobook-result-count {
    text-align: center;
}


/* New styles for single audiobook card */
.audiobook-card {
    background-color: rgba(0, 0, 0, 0.75); /* 75% opaque black */
    color: white;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    margin-bottom: 16px;
    width: min(1280px, 90vw);
}

/* New styles for cover image */
.audiobook-cover {
    max-width: 300px;  /* Sets the maximum width */
    height: auto;  /* Maintains aspect ratio */
    padding: 12px;
}


/* New styles for metadata section */
.audiobook-metadata {
    flex-grow: 1;
    padding: 8px;
}

/* Updated styles for audiobook cards on screens wider than 768px */
@media screen and (min-width: 768px) {
    .audiobook-card {
        max-width: 760px;
        padding: 4px;
        border-radius: 16px;
    }
}

/* Updated styles for audiobook cards on screens smaller than 768px */
@media screen and (max-width: 768px) {
    .audiobook-card {
        width: calc(100% - 8px);  /* Screen width minus 4px padding on each side */
        border-radius: 8px;
    }
    .audiobook-cover {
        max-width: 260px;
         /* add top padding of 8px */
        padding-top: 8px;
    }
    
    .audiobook-card {
        flex-direction: column;
        align-items: center;
        padding: 2px;
        /* add left and right margin of 2px */
        margin: 0 2px;       
    }     
}

/* Remove bold from h2 and h3 */
.audiobook-card h2,
.audiobook-card h3 {
    font-weight: normal;
}
/* Add these lines to your CSS */
.audiobook-card:hover {
    cursor: pointer;
}
.audiobook-card-link {
    text-decoration: none; /* Remove underlines */
}

#genre-list {
    width: 40%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;   
    margin-top: 40px;
}

#genre-list a {
    white-space: normal;
    flex-basis: calc(33.33% - 2em); /* Adjust spacing as needed */
    padding: 0.5em;
    text-decoration: none;    
    color: white;    
}

/* Media query for screen size less than 768 pixels */
@media only screen and (max-width: 767px) {
    #genre-list {
        width: 90%;
    }
    #genre-list a {
        flex-basis: 100%; /* Make it full width */
        margin-bottom: 0.5em; /* Add some margin to the bottom if you like */
    }
}

.audiobook-metadata a h2 span {
    text-decoration: none !important;
}

.message-container {
    text-align: center;
    padding: 15px;
    position: relative; 
    top: 0; 
    width: 100%;
    color: white;
    z-index: 2;
}

a {
    text-decoration: underline;
    color: white;
}

#show-more-div {
    display: block !important;
    width: 100% !important;
    text-align: center !important; /* Center the text within the div */
}

#show-more-div a {
    display: inline-block !important;
    padding: 10px 20px !important;
    background-color: #f7fc00 !important; /* Background color */
    color: rgb(12, 0, 56) !important; /* Text color */
    text-decoration: none !important;
    border-radius: 4px !important; /* Rounded corners */
    font-size: 16px !important;
    cursor: pointer !important;
}

  




          
    
