#search-master-div {
    position: fixed;
    z-index: 1;
    background-color: #0000008f;
    width: 100vw;
    height: 100vh;
    display: none;
}
#search-slab {
    max-width: calc(min(100vw / 2, 60rem));
    margin:5rem;
    margin: auto;
    padding: 1rem;
    width: calc(100vw - 2rem);
}
#search-controls {
    padding: 1rem;
    background-color: var(--bg-note);
    border-radius: 0.5rem;
    width: 100%;
    max-width: calc(100% - 2.5rem);
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}
#search-results-box {
    height: 0rem;
    margin-top: 1rem;
    max-width: __max_note_width__;
}
#search-results {
    height: calc(100% - 1rem);
    overflow-y: scroll;
}

#search-master-div h3 {
    border: 0px;
    margin-top: 0px;
}
#search-controls button {
    padding: 0.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0.5rem;

    font-family: 'Roboto-Regular';
    font-weight: bold;
}
#hard_search {
    margin-left: 0.6rem;
}
#search-master-div ul {
    padding-left: 0.3rem;
    margin-top: 0px;
}
#search-master-div li {
    max-height: 4rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    overflow: hidden;
    color: rgb(var(--normal-text-color));
}
#search-master-div li.fold-active {
    max-height: unset;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

#search-master-div li:hover {
    background-color: var(--bg-accent);
    cursor: pointer;
}
.score {
    color: #719b74;
    font-family: 'SourceCodePro-Regular';
    font-size: 10pt;
}
#search_string{
    width: calc(100% - 1.5rem);
    padding: 0.6rem;
    border-radius: 0.2rem;
    border: 0px;
    background-color: var(--bg-accent);
    color: rgb(var(--normal-text-color));
    font-size: 12pt;
}
#search-instructions {
    margin-top: 1rem;
    margin-left: 0.7rem;
}

.search-highlights{
    margin-top: 0.2rem;
}
.search-highlights em {
    background-color: #8a3aff2b;
    font-style: normal;
}
.search-highlights g {
    color: rgb(var(--normal-text-color), 0.3);
}

.tooltip {
    position: relative;
    display: inline-block;
}
  
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.631);
    color: #fff;
    text-align: center;
    padding: 5px 0;

    position: absolute;
    z-index: 1;
  }

  .tooltip:hover .tooltiptext {
    visibility: visible;
    width: 120px;
    top: 100%;
    left: 50%;
    margin-left: -60px; 
  }


.search-result-title {
    display: flex;
}
.search-result-title-name {
    flex: auto;
}
.search-result-fold{
    cursor: pointer;
}

.search-result-icon,
.search-result-fold {
    margin: 3px;
} 
  
  .search-result-icon {
      transform: rotate(270deg);
      width: 16px;
      height: 16px;
  }
  .fold-active .search-result-icon {
      transform: rotate(0deg);
  }  


@media (max-width: 602px) {
    #search-slab {
        max-width: 100vw;
    }
}