@import url("reset.css");

body {
    padding: 40px;
    max-width: 1000px;
    font-family: monospace;
    font-size: 12px;
    line-height: 18px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: black;
    text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    text-decoration: underline;
}

h1,
h1:before {
    color: #5856d6;
}
h1:before {
    content: "# ";
    opacity: 0.2;
}

h2,
h2:before {
    color: #af52de;
}
h2:before {
    content: "## ";
    opacity: 0.2;
}

h3,
h3:before {
    color: #00c7be;
}
h3:before {
    content: "### ";
    opacity: 0.2;
}

li:before {
    content: "- ";
    opacity: 0.2;
}

hr {
    margin: 20px 0;
    border: none;
    border-bottom: 1px solid #ddd;
}

header {
    margin-bottom: 20px;
}

#main {
    display: flex;
}

aside {
    margin-bottom: 32px;
    padding-right: 40px;
    min-width: 300px;
}

a.secondary {
    text-decoration: none;
    color: #999;
}
a.secondary:hover {
    color: blue;
}

#content img {
    width: 500px;
    height: auto;
}

@media (max-width: 767px) {
    #main {
        display: block;
    }
}

.entry {
    padding: 4px 0;
}

summary {
    cursor: pointer;
    list-style: none;
}

details .tree {
    padding-left: 22px;
}

.entry .name {
    text-decoration: none;
    color: #000;
}

.entry .name .alias {
    opacity: 0.2;
}

.entry .name:hover {
    text-decoration: underline;
}

.filename {
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.filename.hidden {
    opacity: 0.2;
}

.icon {
    display: block;
    width: 20px;
    height: 20px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center center;
}

.directory .icon {
    background-image: url("/static/icons/folder/Folder.png");
}
.directory.bookmarks .icon {
    background-image: url("/static/icons/feature/Bookmarks.png");
}
.directory.chats .icon {
    background-image: url("/static/icons/feature/Chats.png");
}
.directory.files .icon {
    background-image: url("/static/icons/feature/Files.png");
}
.directory.notes .icon {
    background-image: url("/static/icons/feature/Notes.png");
}
.directory.irc .icon {
    background-image: url("/static/icons/package/Chat.png");
}

.normal .icon {
    background-image: url("/static/icons/file/Text.png");
}
.normal.note .icon {
    background-image: url("/static/icons/file/Note.png");
}
.normal.bookmark .icon {
    background-image: url("/static/icons/file/Bookmark.png");
}
.normal.m4a .icon {
    background-image: url("/static/icons/file/Audio.png");
}

/* User */

.user {
    margin-bottom: 16px;
}

.user h2:before, .user h3:before {
    content: "";
}

.user .name {
    margin: 0;
}

.user .status {
    margin: 0;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user .status a {
    color: #999;
}

.user .status .active:before {
    content: "● ";
    color: #34C759;
}

.user .status .idle:before {
    content: "● ";
    color: #FFCA7F;
}

.user .status .away:before {
    content: "● ";
    color: #FF2D55;
}

/* Content Headers*/

.headers {
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Markdown */

.markdown p {
    white-space: pre-wrap;
}

.markdown hr {
    max-width: 50px;
}

/* Plain */

.plain {
    white-space: pre-wrap;
}
