.search-container {
    background-color: white;
    width: 40ch;
    max-width: var(--container);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 45px; 
    left: 10px; 
    z-index: 1;
    border: solid 1px darkgrey;
    border-radius: 6px;
    font-size: smaller;
}

.embeded {
    position: relative; 
    top: 35px; 
    left: 10px;  
}

.search-container input[type="text"] {
    width: 33ch;
    max-width: var(--container);
    border: none;
    box-sizing: border-box;
    padding-left: 6px;
    border-radius: 6px 0px 0 6px;
}

.clear-btn {
    position: absolute;
    right: 3.7ch; /* before the search button */
    background: transparent;
    border: none;
    border: solid 0px green;
    color: #aaa;
    cursor: pointer;    
}

.clear-btn:hover {
    color: #333;
}

.search-container button#search-button {
    color: white;
    background-color: #eee;
    position: absolute;
    right: 0px;
    border: none;
    cursor: pointer;
    width: 3.5ch;
    border: solid 0px green;
    border-radius: 0 6px 6px 0;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 45ch;
    max-height: 40ch;
    overflow-y: auto;
    background-color: white;
    border-top: 1px solid #eee;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

.search-result-item:focus {
    outline: none;
    background-color: #f0f0f0;
    border-radius: 6px;
}

.search-result-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-results:empty {
    display: none;
}