@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: 700;
}

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

header {
    margin-bottom: 20px;
}

#main {
    display: flex;
}

#sidebar {
    padding-right: 40px;
    min-width: 200px;
}

#content {}

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

.entry {
    padding: 4px 0;
}

.entry-sub {
    padding-left: 22px;
}

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

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

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

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

.filename.hidden {
    opacity: 0.5;
}

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

.icon.folder {
    background-image: url("/static/icons/folder/Folder.png");
}
.icon.folder.boards {
    background-image: url("/static/icons/feature/Boards.png");
}
.icon.folder.chats {
    background-image: url("/static/icons/feature/Chats.png");
}
.icon.folder.files {
    background-image: url("/static/icons/feature/Files.png");
}
.icon.folder.notes {
    background-image: url("/static/icons/feature/Notes.png");
}
.icon.folder[class$="_irc"] {
    background-image: url("/static/icons/package/Chat.png");
}

.icon.file {
    background-image: url("/static/icons/file/Text.png");
}
.icon.file[class$="_note"] {
    background-image: url("/static/icons/file/Note.png");
}
.icon.file[class$="_m4a"] {
    background-image: url("/static/icons/file/Audio.png");
}
.icon.file[class$="_chan"] {
    background-image: url("/static/icons/file/Channel.png");
}

/* User */

.user {
    margin-bottom: 16px;
}

.user .name {
    margin: 0;
}

.user .status {
    margin: 0;
    font-weight: 400;
    opacity: 0.5;
}

/* Markdown */

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

.markdown h1, .markdown h1:before {
    color: #5856D6;
}
.markdown h1:before {
    content: "# ";
    opacity: 0.2;
}

.markdown h2, .markdown h2:before {
    color: #AF52DE;
}
.markdown h2:before {
    content: "## ";
    opacity: 0.2;
}

.markdown h3, .markdown h3:before {
    color: #00C7BE;
}
.markdown h3:before {
    content: "### ";
    opacity: 0.2;
}

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

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