*, p {
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: 'Karla', sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;

    --base-color: #2b2b2b;
    --base-color2: #161616;
    --base-text-color: #000000;
    --base-text-color-reverse: #ffffff;
    --base-text-color2: #1d1d1d;
    --base-text-color3: #3b3b3b;
    --base-border-color: #dddddd;

    --base-background-hover: #f8f8f8;

    --base-button-text-color: #ffffff;
    --base-button-color: #000000;
    --base-button-color-hover: #272727;
}

body.dark {
    font-family: 'Karla', sans-serif;
    background-color: #000;
    color: #e6ecf0;

    --base-color: #2b2b2b;
    --base-color2: #161616;
    --base-text-color: #c9c9c9;
    --base-text-color-reverse: #000000;
    --base-text-color2: #777;
    --base-border-color: #1a1a1a;

    --base-background-hover: #070707;
    --base-button-text-color: #000000;
    --base-button-color: #ffffff;
    --base-button-color-hover: #c9c9c9;
}

.main-title {
    padding: 1em;
    font-family: 'Inter';
    font-weight: 700;
    font-size: 1.25em;
    text-align: center;
    border-bottom: 1px solid var(--base-border-color);
}

.logo {
    text-decoration: none;
    font-family: 'Inter';
    color: var(--base-text-color);
    font-weight: 600;
}

.logo:hover {
    text-decoration: underline;
    color: var(--base-text-color2);
}

.login {
    outline: none;
    border: none;
    font-family: 'Inter';
    font-size: 0.9em;
    font-weight: 600;
    color: var(--base-button-text-color);
    background-color: var(--base-button-color);
    padding: .5em 2em;
    border-radius: .2em;
    cursor: pointer;
    transition: .1s;
}

.login:hover {
    background-color: var(--base-button-color-hover);
}

.a1 {
    text-decoration: none;
    color: #3f3f3f;
    font-size: .9rem;
}

.a1:hover {
    text-decoration: underline;
    color: #868686;
}

.a2 {
    color: #727272;
}

.a2:hover {
    color: #b3b3b3;
}

.flex-1 {
    display: flex;
    justify-content: space-between;
    gap: .5em;
}

nav {
    display: flex;
    flex-direction: column;
    gap: .5em;
    padding: 1em;
    border-bottom: 1px solid var(--base-border-color);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: .5em;
}

main {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 600px;
    border-left: 1px solid var(--base-border-color);
    border-right: 1px solid var(--base-border-color);
    min-height: 100vh;
    background: none;
}

.post {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: .5em;
    padding: 1rem;
    border-bottom: 1px solid var(--base-border-color);
}

.post.hover:hover {
    background-color: var(--base-background-hover);
}

#comment {
    border: none;
    outline: none;
    background: none;
    resize: none;
    color: var(--base-text-color);
    padding: .8em;
    font-size: 1.2em;
    line-height: 1.3;
    width: 100%;
    height: auto;
    height: 100px;
}

#comment::placeholder {
    font-family: 'Karla';
    font-size: .8em;
}

#comment-btn {
    background-color: var(--base-text-color);
    color: var(--base-text-color-reverse);
    font-family: 'Inter';
    font-weight: 500;
    border: none;
    outline: none;
    padding: .8em;
    cursor: pointer;
}

#comment-btn:hover {
    background-color: var(--base-text-color2);
    color: var(--base-text-color-reverse);
    font-family: 'Inter';
    font-weight: 500;
    border: none;
    outline: none;
    padding: .8em;
    cursor: pointer;
}

#comment-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

#comment-btn:disabled:hover {
    background-color: var(--base-text-color);
    color: var(--base-text-color-reverse);
    cursor: default;
}

.bar {
    display: flex;
    flex: 1;
    justify-content: end;
    color: var(--base-text-color);
}

.post-content {
    font-size: 16px;
    line-height: 1.4;
    color: var(--base-text-color);
}

.post-content h1, h2 {
    white-space: pre-wrap;
    font-size: 1em;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .timeline-container {
        max-width: 100%;
        border: none;
    }
}

/*------------------------------------ Chat ------------------------------------*/

.chat-message {
    font-family: 'Inter';
    gap: .25em;
    padding: 1em;
    border-bottom: 1px solid var(--base-border-color);;
}

.chat-message .date {
    color: #9c9c9c;
    font-weight: 300;
}

.chat-message .handle {
    text-decoration: none;
    color: #9c9c9c;
}

.chat-message .handle:hover {
    text-decoration: underline;
    color: #7d9bff;
}

.chat-message .text {
    flex-wrap: wrap;
    gap: 0.25em;  
}

/*------------------------------------ Icons ------------------------------------*/

i {
    display: inline-block;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: transform 0.1s ease;
}

.svg1 {
    width: 16px;
    height: 16px;
    background-color: #7e7e7e;
}

.svg2 {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
}

.profile-icon {
    -webkit-mask-image: url('/static/icons/profile.svg');
    mask-image: url('/static/icons/profile.svg');
}

.home-icon {
    -webkit-mask-image: url('/static/icons/home.svg');
    mask-image: url('/static/icons/home.svg');
}

.magnifying-glass-icon {
    -webkit-mask-image: url('/static/icons/magnifying-glass.svg');
    mask-image: url('/static/icons/magnifying-glass.svg');
}

.chat-icon {
    -webkit-mask-image: url('/static/icons/chat.svg');
    mask-image: url('/static/icons/chat.svg');
}

.comments-icon {
    -webkit-mask-image: url('/static/icons/comments.svg');
    mask-image: url('/static/icons/comments.svg');
}

.comments-icon:hover {
    background-color: #e29b02;
}

.repost-icon {
    -webkit-mask-image: url('/static/icons/repost.svg');
    mask-image: url('/static/icons/repost.svg');
}

.repost-icon:hover {
    background-color: #13d42d;
}

.likes-icon {
    -webkit-mask-image: url('/static/icons/like.svg');
    mask-image: url('/static/icons/like.svg');
}

.likes-icon:hover {
    background-color: #ff2121;
}

.views-icon {
    -webkit-mask-image: url('/static/icons/views.svg');
    mask-image: url('/static/icons/views.svg');
}

.bookmark-icon {
    -webkit-mask-image: url('/static/icons/bookmark.svg');
    mask-image: url('/static/icons/bookmark.svg');
}

.settings-icon {
    -webkit-mask-image: url('/static/icons/settings.svg');
    mask-image: url('/static/icons/settings.svg');
}

.dots-icon {
    -webkit-mask-image: url('/static/icons/dots.svg');
    mask-image: url('/static/icons/dots.svg');
}

.arrow-icon {
    -webkit-mask-image: url('/static/icons/arrow.svg');
    mask-image: url('/static/icons/arrow.svg');
}

.message-icon {
    -webkit-mask-image: url('/static/icons/message.svg');
    mask-image: url('/static/icons/message.svg');
}

.group-icon {
    -webkit-mask-image: url('/static/icons/group.svg');
    mask-image: url('/static/icons/group.svg');
}

.calendar-icon {
    width: 14px;
    height: 14px;
    -webkit-mask-image: url('/static/icons/calendar.svg');
    mask-image: url('/static/icons/calendar.svg');
    background-color: var(--base-text-color2);
}

.link-icon {
    width: 14px;
    height: 14px;
    -webkit-mask-image: url('/static/icons/link.svg');
    mask-image: url('/static/icons/link.svg');
    background-color: var(--base-text-color2);
}

.approved-icon {
    width: 18px;
    height: 18px;
    -webkit-mask-image: url('/static/icons/approved.svg');
    mask-image: url('/static/icons/approved.svg');
    background-color: #00c91b;
}

.login-icon {
    -webkit-mask-image: url('/static/icons/login.svg');
    mask-image: url('/static/icons/login.svg');
}

.logout-icon {
    -webkit-mask-image: url('/static/icons/logout.svg');
    mask-image: url('/static/icons/logout.svg');
    background-color: var(--base-text-color);
}

.moon-icon {
    -webkit-mask-image: url('/static/icons/moon.svg');
    mask-image: url('/static/icons/moon.svg');
    background-color: var(--base-text-color);
}

.logout-icon:hover {
    background-color: #ff3535;
}

/*--------------------------------- Buttons Styles --------------------------------*/

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.buttons button {
    font-family: 'Inter';
    font-weight: 600;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: .5em;
    cursor: pointer;
    color: #7e7e7e;
}

.button-none {
    background: none;
    border: none;
    cursor: pointer;
}

.post-button {
    font-family: 'Inter';
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    outline: none;
    border: none;
    padding: .75em;
    border-radius: 2em;
    cursor: pointer;
    background-color: #ffffff;
    color: #000000;
    transition: .1s;
}

.post-button:hover {
    background-color: #e9e9e9;
}

.button-style-1 {
    font-family: 'Inter';
    font-size: .9em;
    font-weight: 600;
    text-align: center;
    outline: none;
    border: none;
    padding: .8em 1.5em;
    border-radius: 2em;
    cursor: pointer;
    background-color: #ffffff;
    color: #000000;
    transition: .1s;
}

.button-style-1:hover {
    background-color: #e9e9e9;
}

.spinner {
    display: inline-block;
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*------------------------------------ Links ------------------------------------*/

.link {
    text-decoration: none;
    font-family: 'Inter';
    font-size: .95em;
    color: #288cff;
}

.link:hover {
    text-decoration: underline;
}

/*------------------------------------ Profile ------------------------------------*/

.profile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: .5em;
    border-bottom: 1px solid var(--base-border-color);
}

.profile-bar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: .25em;
    font-family: 'Inter';
    font-size: .9em;
    font-weight: 500;
    color: #838383;
}

.profile-handle {
    font-family: 'Inter';
    color: var(--base-text-color2);
}

.profile-meta {
    display: flex;
    gap: .8em;
    color: var(--base-text-color2);
}

.profile-meta item {
    display: flex;
    gap: .2em;
    align-items: center;
}

.profile-stats {
    display: flex;
    gap: 2em;
}

.profile-stats item {
    display: flex;
    gap: .2em;
    align-items: center;
}

.profile-stats item .number {
    font-family: 'Inter';
    font-size: .85em;
    font-weight: 600;
    color: #ffffff;
}

.profile-stats item .string {
    color: var(--base-text-color2);
    font-size: .9em;
    font-weight: 500;
}

.profile-options {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--base-border-color);
}

.profile-options a {
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    padding: .9em;
    font-family: 'Inter';
    font-weight: 500;
    text-align: center;
    color: var(--base-text-color2);
}

.profile-options a:hover {
    background: var(--base-color2);
}