body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f4f4f9;
}

button {
    padding: 10px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
}

ul {
    list-style-type: none;
    padding-left: 20px;
}

.note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.note-button {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 5px;
    flex-shrink: 0;
    white-space: pre-wrap;
    max-width: 100%;
    overflow-wrap: break-word;
    tab-size: 4;
}

.controls span {
    cursor: pointer;
    color: #007BFF;
    font-size: 16px;
    margin-right: 6px;
}

.controls span:hover {
    text-decoration: underline;
}

.child-notes {
    display: none;
    padding-left: 40px;
}

.expand-btn {
    visibility: hidden;
}

.note-button img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.note-button pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.note-button code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.note-button pre code {
    background: none;
    padding: 0;
}

.note-button a {
    color: #007bff;
    text-decoration: none;
}

.note-button a:hover {
    text-decoration: underline;
}
.search-hit {
    background: yellow;
}
.search-input {
    width: 100%;
    max-width: 420px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2);
}
#searchbar {
position: sticky;
top: 0;
background: #f4f4f9;
padding: 8px 0;
z-index: 10;
border-bottom: 1px solid #ddd;
}

li.selected > .note {
    outline: 0.5px solid var(--highlight, #4f8cff);
    background-color: #f0f8ff;
    border-radius: 4px;
    transition: background-color 0.2s, border 0.2s;
}

p{
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin:0;
}

.mine{
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.help-btn{
    display:inline-block;
    padding:6px 12px;
    margin-left:6px;
    background:#eee;
    border:1px solid #ccc;
    border-radius:4px;
    text-decoration:none;
    color:black;
    font-size:14px;
}

.help-btn:hover{
    background:#e0e0e0;
}
