body {
    background-color: #dfefdf;
    color: #102010;
    font-family: monospace;
    font-family: sans-serif;
}
@media screen and (prefers-color-scheme: dark) {
    body {
        background-color: #101810;
        color: #cddccd;
        caret-color: white;
    }
}
.favicon {
    max-width: 48px;
    margin: 10px;
    margin-right: 2px;
}
#logo {
    width: fit-content;
    display: flex;
    a {
        display: flex;
        span {
            display: flex;
            margin-bottom: 5px;
            margin-top: auto;
            h1 {
                font-family: monospace;
                margin: 0px;
            }
        }
    }
    a:link, a:visited, a:active {
        color: inherit;
        text-decoration: none;
    }
}

#notes {
    display: flex;
    gap: 10px;
    height: auto;
    padding: 8px;
}
#note-editor {
    width: 100%;
    max-width: 600px;
    min-width: 150px;
    box-sizing: border-box;
}

#note-title-container {
    position:sticky;
    top:5px;
    z-index:2;
    margin-bottom: 5px;
    font-size: 1.4em;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
}
#note-title {
    display: block;
    background-color:#202820;
    border: 1px solid #101810;
    color: inherit;
    width: 100%;
    font-size: inherit;
    box-sizing: border-box;
    font-family: inherit;
    border: 0;
    resize: none;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: hidden;
    margin-top: 2px;
    margin-bottom: 2px;
}

#buttons {
    margin-top: 2px;
    margin-bottom: 2px;
    background-color: #101810;
}
#squire-buttons {
    padding-bottom: 5px;
    display: inline-block;
    padding-right: 5px;
    background-color: #101810;
    user-select: none;
    span {
        cursor: pointer;
        padding: 2px;
        margin: 2px;
    }
    span[data-cmd^='remove'] {
        color: #101810;
        background-color: #9fa79f;
    }
    #listify {
        display: inline-block;
        transform: translateX(3px) rotate(270deg);
        font-style: bold;
    }
}

#note-status {
    float: right;
    background-color: #101810;
}
#note-archive{
    cursor: pointer;
}
#note-archive.archived {
    color: #101810;
    background-color: #9fa79f;
}
#note-delete{
    cursor: pointer;
    padding: 5px;
    flex-grow: 0;
    position: relative;
}
#note-delete-confirm{
    position: absolute;
    top: 110%;
    left: -23px;
    font-size: medium;
    font-weight: bold;
    background-color: #788078;
    color: #101810;
    padding: 4px;
    border: 1px solid #101810;
    border-top: 0px;
    visibility: hidden;
    text-align: center;
    width: 60px;
    z-index: 2;
}
#note-delete-confirm.visible{
    visibility: visible;
}
/* #note-delete-confirm.visible:after{
    content: '';
    position: absolute;
    transform: rotate(45deg);
    height: 20px;
    width: 20px;
    top: -5px;
    left: 25px;
    z-index: -1;
    background-color: #788078;
} */
#note-attach{
    cursor: pointer;
    padding: 5px;
    flex-grow: 0;
}
#sync-status #ok {
    color: green;
}
#sync-status.syncing #ok {
    visibility: hidden;
}
#sync-status #syncing {
    color: darkred;
    position: absolute;
    visibility: hidden;
}
#sync-status.syncing #syncing {
    visibility: visible;
}
#note-attachments {
    width: 100%;
    box-sizing: border-box;
}
.note-attachment-container {
    position:relative;
}
.note-attachment {
    max-width: 100%;
    background-color: white;
}
.delete-attachment {
    position:absolute;
    font-size: xx-large;
    padding: 0 5px;
    margin: 0 5px;
    background-color: rgba(32, 40, 32, 0.85);
    color: inherit;
    cursor: pointer;
}

#note-contents-squire {
    background-color: #202820;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    box-sizing: border-box;
    border: 1px solid #101810;
    border-radius: 4px;
    margin-bottom: 5px;
    font-family: inherit;
    resize: none;
    height: auto;
    min-height: 60vh;
    padding: 3px;
    ul {
        padding-left: 25px;
    }
    li.struck {
        text-decoration: line-through;
        font-weight: lighter;
        font-style: italic;
        color: #707870;
    }
    a:link, a:visited, a:active {
        color: inherit;
        text-decoration: underline;
    }
}

#note-list {
    width: fit-content;
    flex-grow: 0;
    margin-bottom: 18px;
    width: 200px;
}
#menu-button {
    font-size: xx-large;
    width: fit-content;
    display: none;
    cursor: pointer;
    margin-left: 5px;
}
#menu-button[hidden] {
    display: none;
}
#note-list-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#note-list-inner.shown {
    display: flex;
}
#note-list-inner div {
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}
#note-list-archived-header {
    text-align: center;
}
#note-list-archived.archived {
    color: #101810;
    background-color: #9fa79f;
}
#note-list-entry-new-container {
    justify-content: center;
    display: flex;
    gap: 10px;
    padding: 5px;
}
#note-list-entry-new-container div {
    text-align: center;
    cursor: pointer;
    width: fit-content;
    font-size: x-large;
    min-width: 0px;
}
#note-list-entry-chosen {
    background-color: #788078;
    color: #101810;
}
.note-list-entry {
    padding: 5px;
    font-size: 0.8em;
    word-wrap: break-word;
    background-color: #202820;
    color: inherit;
    min-height: 1.2em;
    cursor: pointer;
}
.note-list-hide-archived .list-entry-archived {
    display: none;
}
.note-list-show-archived .note-list-entry:not(.list-entry-archived) {
    display: none;
}

.note-list-entry:hover {
    background-color: #788078;
    color: white;
}

@media screen and (max-width: 550px) {
    #note-list-inner {
        display: none;
    }
    #menu-button {
        display: block;
    }
    #notes {
        /* display: block; */
        flex-direction: column;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    #note-editor {
        width: 100%;
        box-sizing: border-box;
    }
    #note-title-container {
        font-size: 1.1em;
    }
    #note-list {
        width: 100%;
    }
}
