@import url("https://fonts.cdnfonts.com/css/sf-mono?styles=36552,36546");

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    max-width: 48em;
    margin: 0 auto;
    line-height: 1.53;
    padding: 0.5rem 1rem;
    word-wrap: break-word;
    height: 100%;
    background-color: #e2e0de;
    color: #363533;
    font-weight: 400;
    font-size: 15px;
    font-family: "SF Mono", sans-serif;
    text-rendering: geometricPrecision;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

video {
    aspect-ratio: 16 / 9;
}

sup {
    padding: 0 2px;
    border-radius: 5px;
    line-height: 99%;
    left: 4px;
    position: relative;
    bottom: 4px;
}

a {
    text-decoration: none;
    color: #6495ed;
}

pre {
    overflow-x: auto;
    border-radius: 4px;
    background: #dedcd9;
    color: #333;
    padding: 10px 15px;
    font-size: 90%;
}

code {
    border-radius: 3px;
    background: #dedcd9;
    color: #333;
    padding: 0 4px;
    font-size: 90%;
    border: 1px dotted #666;
}

blockquote {
    width: 100%;
    border-left: 2px solid #6495ed;
    margin-left: 0rem;
    padding: 0.5rem 1rem;
    background: #dedcd9;
    border-radius: 4px;
}

input[type="file"] {
    margin-bottom: 1rem;
    width: 100%;
}

select,
input[type="file"]::file-selector-button {
    background: rgb(201, 201, 203, 0.4);
    border: none;
    border-radius: 4px;
    padding: 0.3rem;
}

select:hover,
input[type="file"]::file-selector-button:hover {
    background: rgb(201, 201, 203);
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="date"],
input[type="time"] {
    height: auto;
    font-size: inherit;
    width: 100%;
    color: inherit;
    border-radius: 4px;
    border: inherit;
    margin: 0.3rem 0;
}

input[class^="snac-btn-"] {
    background: rgb(201, 201, 203, 0.4);
    border: none;
    border-radius: 4px;
    padding: 0.3rem;
    font-size: 85%;
}

input[class^="snac-btn-"]:hover {
    background: rgb(201, 201, 203);
}

input[name="telegram_bot"] {
    margin-bottom: 0.5rem;
}

.snac-note input[type="submit"],
.snac-top-controls input[type="submit"] {
    background: rgb(100, 149, 237, 0.2);
    color: #6495ed;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.snac-note input[type="submit"]:hover,
.snac-top-controls input[type="submit"]:hover {
    background: rgb(100, 149, 237, 0.3);
}

.snac-top-controls > div:nth-child(1) > details:nth-child(1) > summary::marker {
    content: "✏️  ";
}

.snac-top-controls #new_post_form details:first-of-type summary::marker {
    content: "📎 ";
}

.snac-top-controls #new_post_form details:last-of-type summary::marker {
    content: "📊 ";
}

.snac-top-controls > details:nth-child(2) > summary::marker {
    content: "🗃️  ";
}

.snac-top-controls > details:nth-child(3) > summary::marker {
    content: "⚙️  ";
}

.snac-top-controls > details:nth-child(4) > summary::marker {
    content: "#️⃣  ";
}

.snac-top-controls > details:nth-child(5) > summary::marker {
    content: "❌  ";
}

form[id$="_reply_form"] details:first-of-type summary::marker {
    content: "📎 ";
}

.snac-controls details:first-of-type summary::marker {
    content: "🗨️ ";
}

h2::before {
    position: absolute;
    left: -1.2rem;
    color: #6495ed;
    content: "#";
    font-size: 1.5rem;
}

h2 {
    position: relative;
    display: block;
    margin-left: 1rem;
}

textarea,
input {
    outline: none;
    padding: 0.3rem;
    background: #dedcd9;
    border: none;
    border-radius: 4px;
}

textarea[name="bio"],
textarea[name="metadata"],
textarea[name="followed_hashtags"],
textarea[name="blocked_hashtags"] {
    width: 100%;
}

textarea:focus,
input:focus {
    background: #eae9e7;
}

summary {
    border-radius: 4px;
    padding: 0.1rem 0.2rem;
    width: fit-content;
}

summary:hover {
    cursor: pointer;
    background: rgb(201, 201, 203, 0.4);
}

.snac-embedded-video,
img {
    max-width: 100%;
    border-radius: 4px;
    background: #dbd9d8;
}

.snac-content-attachments
img {
    max-width:300px; 
    max-height: 300px;
    margin: 10px;
    border-radius: 5px;
}

.snac-announcement {
    border: 1px solid #c1c1c1;
    padding: 0.5em;
}

.snac-origin {
    font-size: 85%;
    color: limegreen;
    margin-top: 0.3rem;
}

.snac-origin > a {
    color: #363533;
}

.snac-score {
    float: right;
    font-size: 85%;
    margin-left: 0.5rem;
}

.snac-top-user-banner > img {
    width: 100%;
}

.snac-metadata {
    margin-bottom: 1rem;
}

.snac-top-user-name {
    font-size: 150%;
    margin-bottom: -1.1rem;
    margin-top: 0.5rem;
}

.snac-top-user-id {
    font-size: 110%;
    margin-bottom: 1rem;
}

.snac-top-user-bio {
    margin-bottom: 1em;
}

.snac-top-user-bio br {
    display: none;
}

.snac-top-nav {
    color: #e2e0de;
    display: flex;
    align-items: center;
    justify-content: end;
}

.snac-search-box {
    margin-left: 1em;
    width: 10em;
    color: #363533;
}

.snac-top-nav > a {
    text-transform: capitalize;
    border-left: 1px solid;
    padding-left: 0.6rem;
    line-height: 1em;
}

.snac-top-nav > a:first-of-type {
    padding-left: 0;
    border-left: 0;
}

.snac-top-nav > a:hover {
    text-decoration: underline;
}

.snac-top-nav > .snac-avatar {
    margin-right: auto;
}

.snac-avatar {
    float: left;
    height: 2.5rem;
    aspect-ratio: 1 / 1;
    margin-right: 0.5rem;
    border-radius: 8px;
}

.snac-author {
    font-size: 95%;
    text-decoration: none;
    font-weight: 700;
    color: #363533;
}

.snac-author-tag {
    font-size: 90%;
    color: #363533;
    text-decoration: none;
}

.snac-pubdate {
    color: #a0a0a0;
    font-size: 90%;
    float: right;
}

.snac-top-controls {
    padding-bottom: 1.5em;
}

.e-content summary {
    margin-bottom: 1rem;
    color: palevioletred;
}

.snac-post {
    border-top: 1px solid #c1c1c1;
    margin-bottom: 1rem;
}

.snac-post-header {
    line-height: 1.3;
}

.snac-children {
    padding-left: 1.5em;
    border-left: 1px solid #c1c1c1;
}

.snac-textarea {
    font-family: inherit;
    width: 100%;
    color: inherit;
    border-radius: 4px;
    border: inherit;
}

.snac-history {
    display: none;
}

.snac-btn-mute {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-unmute {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-follow {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-unfollow {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-hide {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-delete {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-limit {
    float: right;
    margin-left: 0.5em;
}

.snac-btn-unlimit {
    float: right;
    margin-left: 0.5em;
}

.snac-footer {
    margin-top: 2em;
    font-size: 75%;
    color: #666;
}

.snac-poll-result {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 500px) {
    body {
        font-size: 14px;
    }

    sup {
        left: 2px;
    }

    .snac-children {
        padding-left: 1em;
    }

    input[class^="snac-btn-"] {
        font-size: 80%;
    }

    .snac-pubdate {
        font-size: 80%;
    }

    h2::before {
        top: -0.2rem;
    }

    .snac-top-nav > a {
        padding-left: 0.2rem;
        margin: -0.2rem;
    }
}
