/* search-page.css */

.item-containing-list {
    display: flex;
    /*
         * Description: [Provide a brief description of the stylesheet or the specific section of the stylesheet]
         * Author: [Your Name]
         * Date: [Date of creation or last modification]
         * Version: [Version number]
         * 
         * Additional Information:
         * [Any additional information or notes about the stylesheet]
        
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
         */
}

div,
#autocomplete-container2 div {
    /*padding: 8px;*/
    cursor: pointer;
}

#autocomplete-container2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 40vw;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    /* border: 1px solid #ccc; */
    background-color: #fff;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    margin-top: 1px;
    /* margin-left: 17vw; */
    height: 0px;
}

.keywords {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    position: relative;
}


/*
        .keywords::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            height: 37.5px;
            background: linear-gradient(to top, #fff, rgba(248, 248, 248, 0));
        }
        */

.keywords-gradient {
    content: "";
    position: absolute;
    /* top: 52.5px; */
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    height: 37.5px;
    width: 100%;
    background: linear-gradient(to top, #fff, rgba(248, 248, 248, 0));
}

.keywords-gradient div {
    cursor: pointer;
    padding-bottom: 2px;
    background: #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    color: #d41116;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.keywords.show-more {
    overflow: hidden;
}

.keywords.show-less {
    overflow: visible;
    padding-bottom: 25px;
}

.keywords-title {
    flex-wrap: wrap;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    width: 100%;
    color: #999;
    /* border-bottom: 1px solid #ccc; */
}

.end-search {
    flex-wrap: wrap;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    width: 100%;
    color: #999;
    padding-bottom: 34px;
    padding-top: 34px;
}

.end-search-text {
    cursor: pointer;
    padding-bottom: 2px;
    background: #fff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.keyword {
    display: flex;
    flex-wrap: wrap;
    /* margin-bottom: 10px; */
    gap: 10px;
    width: 12.5%;
    /*padding: 0px 10px;
            background: #eee;*/
}

.keyword-count {
    color: #999;
    text-decoration: underline;
    text-decoration-color: #fff;
}

ul.resource-list .resource-thumbnail {
    min-width: 25vw;
    max-width: 25vw;
    margin-left: 10px;
}

ul.resource-list .item-button-list {
    width: 74vw;
}

ul.resource-list .mobile-image {
    display: none;
    width: 25vw;
    height: auto;
}

.resource-list .resource-metadata {
    min-width: 71vw;
}

.search-input {
    width: 90%;
}

#autocomplete-container {
    position: absolute;
    display: flex;
    padding-left: 13px;
    flex-direction: column;
    width: 40vw;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    /* border: 1px solid #ccc; */
    background-color: #fff;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    margin-top: 1px;
    /* margin-left: 17vw; */
    height: 0px;
}

#autocomplete-container.fixed-autocomplete {
    position: fixed;
    top: 65px;
    /* Adjust this value based on the height of the search bar */
    /*left: 0;*/
    /*width: 100%;*/
    z-index: 1001;
}

.auto-height {
    height: auto !important;
}


/*ul.resource-list {
     handled in styles.css, adding here 
            padding: 0px 21px;
}*/

.search-text {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.search-bar {
    padding-top: 21px;
    padding-bottom: 8px;
}

.search-bar.fixed-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    /* Ensure the background color matches the page */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Optional: Add a shadow for better visibility */
}

#search-page {
    padding: 21px 0px;
}

.item-list-header {
    text-align: left;
}


/* .overall-container {
    padding: 0px 21px;
} */

.description {
    cursor: pointer;
}


/* #content {
    padding-left: .5%;
} */


/* insert mobile breakpoints here */

@media (max-width: 768px) {
    .search-input {
        width: 100%;
    }
    .item-list-header {
        text-align: center;
    }
    ul.resource-list .resource-thumbnail {
        max-width: 100%;
        width: 100%;
        margin-left: 0px;
    }
    ul.resource-list .item-button-list {
        margin-top: 15px;
        width: 97vw;
        padding: 0px 21px;
    }
    ul.resource-list .mobile-image {
        display: none;
        width: 25vw;
        height: auto;
    }
    .search-text {
        width: 100%;
    }
    .breakout-and-center select {
        width: 47%;
    }
    .keyword {
        width: 46%;
    }
    .search-bar {
        margin-left: 0px;
        margin-right: 0px;
        padding-left: 21px;
        padding-right: 21px;
    }
    .search-bar.fixed-search {
        /* padding-left: 21px;
        padding-right: 21px; */
    }
    #autocomplete-container {
        padding-left: 21px;
    }
    .keywords {
        padding-left: 21px;
        padding-right: 21px;
        width: 100vw;
    }
    .overall-container {
        padding-top: 34px;
    }
    .keywords-title {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    .library-meta h4 {
        padding-left: 10px;
    }
    #search-page {
        padding: 0px 0px;
    }
    header {
        margin: 10px 0 0px;
    }
}