#autocomplete-results {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    background: #202020;
    position: absolute;
    width: 100%;
    z-index: 999;
}

#autocomplete-results ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#autocomplete-results li {
    padding: 5px;
    cursor: pointer;
}

#autocomplete-results li:hover {
    background-color: #f0f0f0;
}

#category-select, #tag-select {
    margin-left: 10px;
    background: #202020;
    color: #fff;
    border-radius: 6px;
    border: 2px solid #202020;
    max-width:136px;
    font-weight:bold;
    outline:0;
    background-image: url(/wp-content/plugins/custom-search-plugin/images/caret-up-fill.png) !important;
    background-repeat: no-repeat ;
    background-position: 98% center ;
    -webkit-appearance: none;
}
.custom-search-container{
    display: flex;
    justify-content: right;
   
}
#clear-search {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.custom-search-input {
    position: relative;
}

.custom-search-input input {
    border-radius: 6px;
    border: 2px solid #202020 !important;
    box-shadow: none;
    padding: 9px 15px;
    outline: none !important;
    background: #202020;
    width: 100%; /* Ensure it spans its container */
    max-width: 160px;
    box-sizing: border-box;
    padding-right: 60px; /* Add padding to make space for the clear button */
}


#searchsubmit{
    background: #f576e4;
    border-radius: 6px;
    vertical-align: bottom;
    border: 2px solid #f576e4;
    position: absolute;
   right: 0px;
    padding: 0;
    max-height: 37px;
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    display: flex;
    top: 0;
    justify-content: center;
    align-items: center;
}

.search-filter{
    display:none;
}
.custom-search-input input:focus{
    
    transition: 0.5s;
    border-color: #f576e4 !important;
    
}
@media only screen and (min-width:1025px) {
    
    .custom-search-input input:focus{
    
   
    max-width: 190px;
}
    
}
@media only screen and (max-width:1024px) {
    .custom-search-container{
        display:block;
    }
    .custom-search-input input{
        width:100%;
        max-width:100%;
    }
    .custom-search-input{
    margin-bottom:18px;
}
    #category-select, #tag-select{
        margin-left:0;
        margin-right:0;
        margin-bottom:18px;
        width:100%;
        display:block;
        max-width:100%;
    }
    .allvideoscontainer .topart {
    display: grid;
    align-items: center;
    grid-column-gap: 18px;
    grid-row-gap: 18px; /* Adding row gap for spacing between rows */
    grid-template-columns: 1fr 50px !important; /* Two columns of equal width */
    grid-template-rows: auto auto; /* Two rows: one for the first two items and one for the third item */
}

.h1title {
    grid-column: 1; /* Place in the first column */
}

.search-filter {
    grid-column: 2; /* Place in the second column */
}

#searchform {
    grid-column: 1 / span 2; /* Span across both columns */
    width: 100%; /* Ensure it spans 100% of its container */
}
    
    
    
    .search-filter{
    display:block;
}
#searchform{
    display:none;
}
}