#searchModal {
    /* position: fixed; */
    /* Fixed position to keep it at the bottom */
    bottom: 0;
    /* Align to the bottom of the viewport */
    /* Align to the left side of the viewport */
    width: 100%;
    max-width: 568px;
    /* margin: 0 auto; */
    /* Take full width of the viewport */
    max-height: 90vh;
    /* Limit height to 90% of the viewport height */
    overflow: hidden;
    /* Prevent any overflow outside the modal */
    display: flex;
    /* Using flex to organize children */
    flex-direction: column;
    /* Stack children vertically */
    background-color: #fff;
    /* Background color */
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    /* Optional: adds shadow for better separation */
}

#searchModal {
    /* position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f4f4f4;
        */
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-top: 1px solid #ccc; */
    /* max-height: 90vh; */
    /* overflow-y: scroll;
            overflow-x: hidden; */

    display: flex;
    flex-direction: column;
    /* //children left align */
    align-items: flex-start;
    /* background-color: #cdeefa; */
    border: 0.5rem solid #c9e6f1;

}

#searchResults {
    overflow-y: auto;
    /* Allows scrolling within search results */
    flex-grow: 1;
    /* Allows this div to take up any remaining space */
    width: 100%;
}

#searchResults ul {
    list-style: none;
    padding: 0;
}



#searchBox {
    display: flex;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

#searchBox input {
    border: none;
    padding: 0.5rem;
    font-size: 16pt;
    width: 100%;
}

#searchBox .close {
    font-size: 24pt;
    cursor: pointer;
}