body {
    margin: 0;
    padding: 0;
    background: #FFF;
    font: 400 16px Poppins, sans-serif;
}

h1, h2, h3, h4 {
    padding: 1rem 0 0 0;
    margin: 0 0 2rem 0;
    font-weight: 700;
    color: #000;
    position: relative;
    line-height: 2.5rem;
}

h1 {
    font-size: 1.85rem;
    text-align: center;
}

h1 span {
    color: #666;
}

h2 {
    font-size: 1.55rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.8rem;
}

a {
    text-decoration: underline;
    color: #2E5C70;
    transition: .5s;
}

a:hover {
    color: #666;
}

ul, ol {
    margin: 1.5rem 0;
    padding: 0 1.8rem;
}

ol {
    padding-left: 2rem;
}

li {
    margin-top: 0.8rem;
    line-height: 1.8rem;
}

hr {
    border: 0;
    border-bottom: 1px solid #E5E7EB;
    margin: 2rem 0;
}

pre {
    padding: 1rem 1.4rem;
    max-width: 100%;
    overflow: auto;
    line-height: 1.5rem;
    margin: 0 0 1.8rem 0;
}

code {
    padding: 3px 5px;
    font-weight: 700;
}

pre, code {
    font-family: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
    background: #F6F8FA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
}

pre code {
    border: 0;
    border-radius: 0;
    padding: 0;
    font-weight: 400;
}

blockquote {
    padding: 1.5rem;
    background: #F6F8FA;
    border-left: 5px solid #E5E7EB;
    font-style: italic;
    margin: 1rem 0 1.8rem 0;
    line-height: 1.5rem;
}

small {
    font-size: .9rem;
}

table {
	border-collapse: collapse;
	width: 100%;
	margin: 1rem 0 1.8rem 0;
    font-size: .9rem;
}

td, th {
	border: 1px solid #E5E7EB;
	text-align: left;
	padding: .5rem;
}

th {
	background: #F6F8FA;
}

tr:nth-child(odd) {
	background: #F6F8FA;
}

kbd {
  color: #444;
  border: 1px solid #444;
  border-bottom: 3px solid #444;
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
}

mark {
  padding: 2px 5px;
  border-radius: 4px;
  background-color: #fd3;
}

figure {
    margin: 0 0 .5rem 0;
    padding: 0;
}

figcaption {
    margin-top: .3rem;
    font-size: .9rem;
    text-align: center;
    color: #666;
}

form {
    margin: 0 0 2rem 0;
}

form .row {
    margin-top: 1rem;
}

label {
    display: block;
    margin: 0 0 .5rem 0;
}

textarea, select, input {
    font-size: 1rem;
    padding: .6rem;
    margin-bottom: .2rem;
    color: #000;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 5px;
    max-width: 100%;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    border: 0;
}

input[type="checkbox"],
input[type="radio"],
input[type="checkbox"] + span,
input[type="radio"] + span {
    cursor: pointer;
}

#header-content,
#main-content,
#footer-content {
    margin: auto;
    max-width: 1024px;
    padding: 1.5rem 1rem;
}

#main-content {
    min-height: 55vh;
}

#header-content {
    display: flex;
}

#header-content .logo {
    flex: 0 0 200px;
}

#header-content nav {
    flex: 1;
    text-align: right;
    line-height: 43px;
}

#header-content nav a {
    margin-left: 16px;
    color: #444;
}

/* Classes */

.button {
    background: #2E5C70;
    color: #FFF;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 .5rem 1rem 0;
    border: 0;
    font-size: 1.1rem;
    cursor: pointer;
}

a.button:hover {
    color: #FFF;
}

.button.secondary {
    background: #000;
}

.center, p.center {
    text-align: center;
}

.right, p.right {
    text-align: right;
}

.required {
    color: #900;
}

.message {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.message.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.message.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message.warning {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.message.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Header */
#header-content .title {
    font-size: 1.8rem;
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

#header-content .title img {
    display: inline-block;
    vertical-align: middle;
}

/* Footer */

#footer-content {
    text-align: center;
}

#footer-content p {
    margin: 0 0 .5rem 0;
}

/* Article */

article.activity-object {
    background: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

article .activity-context {
    border-bottom: 1px solid #E5E7EB;
    padding: 0 0 .8rem 1.7rem;
    margin-bottom: .8rem;
    background-repeat: no-repeat;
    line-height: 24px;
}

article .activity-context.share {
    background-image: url(../images/share.png);
}

article .activity-context.reply {
    background-image: url(../images/reply.png);
}

article .object-header {
    display: flex;
    margin-bottom: .8rem;
}

article .object-main {
    cursor: pointer;
}

article .object-updated {
    font-size: .8rem;
    margin-bottom: .8rem;
}

article .object-avatar {
    flex: 0 0 60px;
}

article .object-avatar img {
    border: 1px solid #ccc;
    display: block;
    width: 50px;
    height: 50px;
    background: #fff;
}

article .object-actor {
    flex: 1;
}

article .object-actor time {
    display: block;
}

article .object-actor time,
article .object-actor .actor-handle {
    font-size: .9rem;
}

article .object-actor time a.permalink {
    color: #555;
    text-decoration: none;
    vertical-align: middle;
    margin-left: 2px;
}

article .object-actor time a.permalink:hover {
    color: #2E5C70;
}

article .object-visibility {
    flex: 0 0 40px;
    font-size: .8rem;
}

article .object-interaction {
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid #E5E7EB;
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

article .object-interaction a {
    margin-right: 5px;
}

article .object-interaction a.delete {
    color: #721c24;
}

article .object-interaction .interaction {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    height: 24px;
}

article .object-interaction .total {
    padding: 0 0 0 32px;
    font-size: .8rem;
    text-decoration: none;
    background-repeat: no-repeat;
    line-height: 24px;
    display: inline-block;
}

article .object-interaction .total.likes {
    background-image: url(../images/like.png);
    color: #9d121f;
}

article .object-interaction .total.replies {
    background-image: url(../images/response.png);
    color: #2E5C70;
}

article .object-interaction .total.announces {
    background-image: url(../images/share.png);
    color: #FF9800;
}

article .object-interaction .total.likes.active {
    font-weight: 700;
}

article .object-interaction .total.announces.active {
    font-weight: 700;
}

article .object-interaction .interaction-global {
    flex: none;
}

article .object-interaction .interaction-utilities {
    flex: none;
    height: 24px;
}

article .object-interaction .interaction-utilities .interaction {
    margin: 0 0 0 10px;
}

article .object-interaction .interaction-utilities a {
    margin: 0 0 0 5px;
    color: #666;
    display: inline-flex;
    align-items: center;
}

article .object-interaction .interaction-utilities a:hover {
    color: #333;
}

article .object-interaction .interaction-utilities .edit-toggle:hover {
    color: #2E5C70;
}

article .object-interaction .interaction-utilities .delete-toggle:hover {
    color: #9d121f;
}

/* Attachments */

article .object-attachments {
    margin-top: .8rem;
}

article .object-attachments img,
article .object-attachments video {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* Thread */

.thread .thread-depth {
    padding-left: 1.5rem;
}

.thread .thread-depth.depth-1 {
    border-left: 2px solid #EF4444;
}

.thread .thread-depth.depth-2 {
    border-left: 2px solid #F97316;
}

.thread .thread-depth.depth-3 {
    border-left: 2px solid #FF9800;
}

.thread .thread-depth.depth-4 {
    border-left: 2px solid #22C55E;
}

.thread .thread-depth.depth-5 {
    border-left: 2px solid #3B82F6;
}

.thread article .object-main {
    padding: 1.5rem 0;
    cursor: auto;
}

.thread article .object-main.selected {
    background: #f8f9fa;
    border: 1px solid #ccc;
    padding: 1.5rem 1rem;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.thread article .object-interaction {
    padding: .8rem 0;
    border-bottom: 1px solid #E5E7EB;
    overflow-x: auto;
}

.thread article .object-visibility {
    display: none;
}

/* Intro */

.intro {
    padding: 1rem;
    margin: 0 0 2rem 0;
    display: flex;
}

.intro .avatar {
    flex: 0 0 110px;
}

.intro .avatar img {
    border: 1px solid #ccc;
    display: block;
    width: 90px;
    height: 90px;
    background: #fff;
}

.intro .info {
    flex: 1;
}

.intro .info .description {
    margin: .8rem 0;
    font-size: .9rem;
}

.intro .info .links a {
    margin-right: .8rem;
    font-size: .9rem;
}

/* Users */

.users-container h1 {
    text-align: left;
}

.users-container .user {
    background: #f8f9fa;
    border-radius: 8px;
}

.users-container .users.pending .user {
    border: 1px solid #F97316;
    background: #fff4ec;
}

.users-container .users form {
    margin: 0;
    text-align: right;
}

.users-container .users form .button {
    margin: 0;
    padding: .3rem 1rem;
    font-size: .9rem;
}

.users-container .users.rejected .user {
    border: 1px solid #EF4444;
    background: #ffe5e7;
}

/* Forms */

.form-user {
    border: 1px solid #ccc;
    width: 50%;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-user.follow {
    width: 100%;
    display: table;
    box-sizing: border-box;
    padding: .5rem;
}

.form-user.follow .row {
    vertical-align: bottom;
    display: table-cell;
    padding: .5rem;
}

.form-user.follow .row:first-child {
    width: 100%;
}

.form-user.follow .row .button {
    margin: 0 0 .2rem 0;
}

.form-user .bottom {
    margin-top: 2rem;
    margin-bottom: .5rem;
}

.form-user.register .input-username {
    display: flex;
    align-items: center;
}

.form-user.register .input-username input {
    flex: 1;
    min-width: 0;
}

.form-user.register .input-username span {
    margin-left: 8px;
    white-space: nowrap;
}

/* Note Form */

.note-form .message:empty {
    display: none;
}

.new-note-form .cancel {
    display: none;
}

.note-form {
    margin: 1rem 0;
    padding: 1rem 0;
    border-radius: 8px;
}

.new-note-form .note-form {
    padding: 1rem;
    background: #f8f9fa;
}

.note-form form {
    margin: 0;
}

.note-form .content textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    box-sizing: border-box;
}

.note-form .panel {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.note-form .panel[hidden] {
    display: none;
}

.note-form .panel.attachment .label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.note-form .panel.attachment input[type="file"] {
    font-size: 0.9rem;
    padding: 0.4rem;
    margin-bottom: 0.5rem;
}

.note-form .panel.attachment input[type="text"] {
    font-size: 0.9rem;
    padding: 0.4rem;
}

.note-form .panel.visibility label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.note-form .panel.visibility select {
    font-size: 0.9rem;
    padding: 0.4rem;
}

.note-form .panel.emoji {
    display: none;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.note-form .panel.emoji:not([hidden]) {
    display: flex;
}

.note-form .panel.emoji button {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.note-form .panel.emoji button:hover {
    background: #f0f0f0;
}

.note-form .toolbar {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    gap: 0.5rem;
}

.note-form .tools {
    display: flex;
    gap: 0.3rem;
}

.note-form .tool {
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    padding: 0;
}

.note-form .tool:hover {
    background: #f0f0f0;
    color: #333;
}

.note-form .tool.active {
    background: #2E5C70;
    border-color: #2E5C70;
    color: #fff;
}

.note-form .actions {
    flex: 1;
    text-align: right;
}

.note-form .actions .button {
    margin: 0 0 0 .5rem;
    padding: .5rem 1rem;
    font-size: .95rem;
}

.note-form .message {
    margin-top: .8rem;
}

.object-reply-form .note-form {
    margin-top: 1rem;
    margin-bottom: 0;
}

.object-reply-form .object-main {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f4e8;
    border: 1px solid #c3e6cb;
    border-left: 3px solid #28a745;
    border-radius: 8px;
    cursor: default;
}

.thread .object-reply-form .object-main {
    padding: 1rem;
}

@media (max-width: 1000px) {
    #header-content {
        display: block;
        text-align: center;
    }

    #header-content nav {
        display: inline-block;
    }

    #header-content nav a {
        margin: 0 8px;
    }

    .table-container {
        overflow-x: auto;
    }

    .table-container table {
        min-width: 450px;
    }

    .thread .thread-depth {
        padding-left: 1rem;
    }

    article .object-actor .actor-handle,
    article .object-actor time {
        font-size: .8rem;
    }

    .note-form .toolbar {
        flex-wrap: wrap;
    }

    .object-main .note-form .tools {
        width: 100%;
    }

    .object-main .note-form .actions {
        flex: none;
        width: 100%;
        margin-top: .5rem;
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .object-main .note-form .actions .button {
        margin: 0;
    }
}

@media (max-width: 700px) {
    .form-user {
        margin: 0 0 2rem 0;
        width: auto;
    }
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Poppins-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Poppins-Italic.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/Poppins-Bold.woff2) format('woff2');
}
