@font-face {
    font-family: 'Chirp';
    src: url('/assets/fonts/chirp-regular-web.woff') format('woff');
}

@font-face {
    font-family: 'Chirp-Bold';
    src: url('/assets/fonts/chirp-bold-web.woff') format('woff');
}

@font-face {
    font-family: TwitterChirpExtendedHeavy;
    src: url(https://abs.twimg.com/fonts/chirp-extended-heavy-web.woff2) format('woff2');
    src: url(https://abs.twimg.com/fonts/chirp-extended-heavy-web.woff) format('woff');
    font-weight: 800;
    font-style: 'normal';
    font-display: 'swap';
}

@font-face {
    font-family: TwitterChirp;
    src: url(https://abs.twimg.com/fonts/chirp-regular-web.woff2) format('woff2');
    src: url(https://abs.twimg.com/fonts/chirp-regular-web.woff) format('woff');
    font-weight: 400;
    font-style: 'normal';
    font-display: 'swap';
}

@font-face {
    font-family: TwitterChirp;
    src: url(https://abs.twimg.com/fonts/chirp-medium-web.woff2) format('woff2');
    src: url(https://abs.twimg.com/fonts/chirp-medium-web.woff) format('woff');
    font-weight: 500;
    font-style: 'normal';
    font-display: 'swap';
}

@font-face {
    font-family: TwitterChirp;
    src: url(https://abs.twimg.com/fonts/chirp-bold-web.woff2) format('woff2');
    src: url(https://abs.twimg.com/fonts/chirp-bold-web.woff) format('woff');
    font-weight: 700;
    font-style: 'normal';
    font-display: 'swap';
}

@font-face {
    font-family: TwitterChirp;
    src: url(https://abs.twimg.com/fonts/chirp-heavy-web.woff2) format('woff2');
    src: url(https://abs.twimg.com/fonts/chirp-heavy-web.woff) format('woff');
    font-weight: 800;
    font-style: 'normal';
    font-display: 'swap';
}


/* 45vw 23vw 32vw */

* {
    margin: 0;
    outline: 0;
    border: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Chirp-Bold', sans-serif;
    list-style-type: none;
}

:root {
    --primary-color: #1DA1F2;
    /* Twitter Blue */
    --secondary-color: #657786;
    /* Dark Gray (for secondary text) */
    --accent-color: #1A91DA;
    /* Lighter Blue for hover or active states */
    --background-color: #F5F8FA;
    /* Light Gray Background */
    --text-color: #14171A;
    /* Black (for primary text) */
    --border-color: #E1E8ED;
    /* Light Border Color */
    --error-color: #E0245E;
    /* Twitter's Red (for errors or destructive actions) */
    --success-color: #17BF63;
    /* Twitter's Green (for success states) */
    --size-of-icons: 1em;
}

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

:root {
    --main-color: rgb(29, 161, 242);
    --border-color: rgb(56, 68, 77);
    --shadow-color: rgba(29, 161, 242, 0.1);
    --bg-color: #15202B;
}

html {
    color: #fff;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-height: 100vh;
}

body {
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: #fff;
}

button {
    cursor: pointer;
}

input:focus {
    outline: none;
}

img {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

*::-webkit-scrollbar {
    display: none;
}

.phone-nav a:nth-child(4).show {
    color: #17BF63 !important;
}

.phone-nav a:nth-child(4).show * {
    color: #17BF63 !important;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

.left-side {
    height: 100vh;
    width: 23vw;
    padding: 0 12px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


/* @media screen and (width < 1300px) {
    .left-side {}
} */

.left-navbar {
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.left-side svg,
.content-header svg,
.post-header svg,
.trends svg {
    fill: #fff;
    height: 1.75rem;
}

.left-navbar>div:not(.profile-btn)>div:nth-child(1) {
    padding: 1em 2px;
}

.left-navbar a {
    display: flex;
    padding: 4px 0;
}

.left-navbar a div {
    display: flex;
    padding: 12px;
    align-items: center;
    border-radius: 9999px;
}

.left-navbar a div:hover {
    background-color: var(--shadow-color);
}

.left-navbar a div:hover svg,
.left-navbar a div:hover span {
    color: var(--main-color);
    fill: currentColor;
}

.left-navbar a span {
    font-size: 20px;
    font-weight: bold;
    margin-left: 20px;
    margin-right: 16px;
}

.tweet-btn {
    font-family: var(--main-font);
    font-size: 16px;
    width: 90%;
    height: 46px;
    font-weight: 700;
    border: none;
    background-color: var(--main-color);
    border-radius: 30px;
    color: inherit;
    margin: 16px 0;
}

.left-side .right-column {
    display: flex;
    align-items: center;
}

.content {
    max-width: 45vw;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    max-height: 100vh;
    height: 100vh;
    width: 45vw;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

.content-header {
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 53px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.content-header div,
.trends-header div,
.trends-item>div>div {
    display: flex;
    margin-right: -10px;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.trends-header div {
    margin-right: 0;
}

.trends-item>div {
    position: relative;
}

.trends-item>div>div {
    position: absolute;
    width: 34.75px;
    height: 34.75px;
    top: -7px;
    right: 0px;
}

.content-header div:hover,
.trends-header div:hover,
.trends-item>div>div:hover {
    background-color: var(--shadow-color);
}

.trends-item>div>div:hover svg {
    fill: var(--main-color);
}

.content-header span {
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
}

.content-header svg,
.trends-header svg {
    fill: var(--main-color);
    width: 22px;
    height: 22px;
}

.content-header,
.tweet,
.post {
    padding: 15px;
}

.tweet {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.post:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.07);
}

.profile-btn {
    display: flex;
    margin: 12px 0;
    padding: 12px;
    cursor: pointer;
    width: calc(100% + 12px);
    border-radius: 9999px;
}

.profile-btn:hover {
    background-color: var(--shadow-color);
}

.profile-btn img {
    width: 40px;
    height: 40px;
}

.profile-btn strong {
    display: flex;
    align-items: center;
}

.profile-btn svg,
.details svg,
.search-bar svg {
    height: 1.25em;
    margin-left: 5px;
    vertical-align: bottom;
}

.tag,
.time,
.dot,
.details svg {
    color: rgb(136, 153, 166);
    fill: rgb(136, 153, 166);
    display: block;
}

.right-column {
    margin-left: 15px;
}

.right-column,
.right-column form,
.right-column input {
    width: 100%;
}

.profile-image {
    border-radius: 100%;
    width: 48px;
    height: 48px;
}

.right-column input {
    height: 56px;
    background-color: transparent;
    border: none;
}

.right-column input::placeholder,
.search::placeholder {
    font-size: 20px;
    color: #8899A6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tweet .right-column .bottom-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.tweet .right-column .bottom-row .buttons>div {
    width: 38px;
    height: 38px;
    border-radius: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tweet .right-column .bottom-row .buttons {
    display: flex;
}

.tweet .right-column .bottom-row .buttons>div:hover {
    background: var(--shadow-color);
}

.tweet .right-column .bottom-row svg {
    width: 22px;
    height: 22px;
    fill: var(--main-color);
}

.tweet .right-column .bottom-row .tweet-btn {
    width: 90px;
    opacity: 0.5;
    margin: 0;
}

.space {
    width: 100%;
    height: 12px;
    background-color: rgb(25, 39, 52);
    border-bottom: 1px solid var(--border-color);
}

.post {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.post-header {
    display: flex;
    justify-content: space-between;
}

.post-header>div {
    display: flex;
    align-items: center;
}

.dot {
    line-height: 20px;
    font-size: 15px;
    margin-top: -6px;
}

.details {
    cursor: pointer;
    padding: 6px;
    border-radius: 100%;
    justify-content: center !important;
}

.details svg {
    margin: 0;
}

.details:hover {
    background-color: var(--shadow-color);
}

.details:hover svg {
    fill: var(--main-color);
}

.post-header .tag,
.post-header .time,
.dot {
    margin-left: 4px;
}

.post .bottom-row {
    max-width: 425px;
    margin-top: 12px;
    justify-content: space-between;
}

.post .bottom-row,
.post .bottom-row>div {
    display: flex;
    align-items: center;
    color: rgb(136, 153, 166);
    cursor: pointer;
}

.post .bottom-row>div {
    margin: -8px;
}

.post .bottom-row>div>div {
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post .bottom-row>div:hover>div {
    background-color: var(--shadow-color);
}

.bottom-row>div:hover>div svg,
.post .bottom-row>div:hover>span {
    color: var(--main-color);
    fill: currentColor;
}

.post .bottom-row>div:nth-child(2):hover>div {
    background-color: rgba(23, 191, 99, 0.2);
}

.bottom-row>div:nth-child(2):hover>div svg,
.post .bottom-row>div:nth-child(2):hover>span {
    color: rgb(23, 191, 99);
    fill: currentColor;
}

.post .bottom-row>div:nth-child(3):hover>div {
    background-color: rgba(224, 36, 94, 0.2);
}

.bottom-row>div:nth-child(3):hover>div svg,
.post .bottom-row>div:nth-child(3):hover>span {
    color: rgb(224, 36, 94);
    fill: currentColor;
}

.post .bottom-row span {
    font-size: 13px;
}

.post .bottom-row span,
.post .bottom-row svg {
    fill: rgb(136, 153, 166) !important;
    color: rgb(136, 153, 166) !important;
    font-family: inherit;
}

.post .bottom-row svg {
    margin: 8px;
    width: 1.25em;
    height: 1.25em;
}

.post .bottom-row span {
    padding: 0 12px;
    line-height: 20px;
}

.right-side {
    padding: 12px 0 64px 0;
    width: 32vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.search-bar {
    position: relative;
}

.search-bar svg {
    position: absolute;
    top: 13px;
    left: 12px;
    fill: #8899A6;
}

.search {
    border-radius: 30px;
    border: none;
    width: 30vw;
    height: 46px;
    background-color: rgb(37, 51, 65);
    padding-left: 60px;
}

.search::placeholder {
    font-size: 16px;
}

.trends,
.who-to-follow {
    background-color: rgb(25, 39, 52);
    border-radius: 15px;
    margin-top: 12px;
}

.trends-header,
.trends-item,
.who-to-follow-header,
.user {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.trends-header>h2 {
    display: flex;
    justify-content: space-between;
}

.trends-header svg {
    fill: var(--main-color);
}

.trends-item svg,
.trends-header svg {
    vertical-align: text-bottom;
}

.trends-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition-duration: background-color 0.2s;
}

.trends-item:hover,
.more-btn:hover,
.user:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.trends-item>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trends-item span,
.trends-item svg {
    font-size: 13px;
    height: 1.25rem;
    color: rgb(136, 153, 166);
    fill: rgb(136, 153, 166);
}

.trends-item>span {
    margin-top: 4px;
}

.more-btn {
    padding: 16px;
    color: var(--main-color);
    cursor: pointer;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.user {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user img {
    margin-right: 12px;
}

.user>div {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.follow-btn {
    min-height: 32px;
    min-width: 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 15px;
    padding: 0 1em;
    color: var(--main-color);
    border: 1px solid currentColor;
    border-radius: 9999px;
    background-color: transparent;
}

.follow-btn:hover {
    background-color: var(--shadow-color);
}

.line {
    background-color: rgba(0, 0, 0, 0);
    height: 1px;
    border: 1px solid rgb(25, 39, 52);
    margin: 16px 0;
    border-radius: 16px;
}

.right-side footer nav {
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
}

.right-side footer span,
.right-side footer svg {
    height: 1em;
    vertical-align: text-bottom;
    margin: 2px 0;
    padding-right: 12px;
    line-height: 16px;
    color: rgb(136, 153, 166);
    fill: currentColor;
    font-size: 13px;
}

.right-side footer svg {
    margin: 0;
}

.right-side footer span:not(:last-child):hover {
    cursor: pointer;
    text-decoration: underline;
}

.search,
.tweet input {
    color: #fff;
}

textarea#postTextArea {
    width: 100%;
    resize: none;
    background: transparent;
    color: white;
}

textarea#postTextArea::placeholder {
    color: white;
}

@keyframes button-twitter-animation {
    from {
        top: 50%;
        height: 10em;
        width: 10em;
    }
    to {
        top: -3em;
        height: 6em;
        width: 6em;
    }
}

@keyframes login-fadein {
    0% {
        opacity: 0;
    }
    75% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes login-border-animation {
    to {
        stroke-dasharray: 100%;
        stroke-dashoffset: 0;
    }
}

.main {
    position: relative;
    height: 100vh;
    display: grid;
    place-content: center;
}

.login-fieldset-field,
.login-fieldset-submit {
    min-width: 250px;
    font-size: 1.6em;
    margin: 0.8em auto;
    padding: 0.8em;
    width: 80%;
    box-sizing: border-box;
}

.login>h1 {
    position: absolute;
    top: -1.5em;
}

.login {
    width: 40vw;
    box-sizing: border-box;
    margin: auto;
    position: relative;
    border: 0;
    border-radius: 5px;
}

.login-sides {
    height: 100%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    border: 0;
    border-radius: 5px;
}

.login-sides line {
    fill: none;
    stroke: #55acee;
    stroke-dasharray: 100%;
    stroke-dashoffset: 100%;
    stroke-linecap: round;
    stroke-width: 5;
    animation: login-border-animation 0.5s forwards;
}

.login-sides line.first {
    animation-delay: 0.5s;
}

.login-sides line.second {
    animation-delay: 0.75s;
}

.login-sides line.third {
    animation-delay: 1s;
}

.login-fieldset {
    animation: login-fadein 0.5s ease-in-out forwards;
    animation-delay: 0.5s;
    box-sizing: border-box;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    padding: 5em 0;
    opacity: 0;
}

.login-fieldset-field {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    border: 0;
    border: 1px solid #f2f2f2;
}

.login-fieldset-submit {
    background-color: #55acee;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-weight: bold;
    border: 0;
    border-radius: 3px;
}

.button-twitter {
    animation: button-twitter-animation 0.5s forwards;
    background-image: url("https://image.flaticon.com/icons/svg/145/145812.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #55acee;
    margin: auto;
    z-index: 1;
    transition: box-shadow 0.5s;
    border: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    bottom: auto;
    left: 0;
    right: 0;
    top: auto;
    height: 6em;
    width: 6em;
}

.button-twitter:hover {
    box-shadow: 0px 1px 1px 1px #ccc;
}

.button-twitter>* {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.welcome_user {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.welcome_user h1 {
    width: max-content;
    text-transform: capitalize;
}

article.top-row img {
    height: 70%;
    object-fit: cover;
}

.button-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.post-text {
    display: flex;
    width: 80%;
    background: transparent;
    color: #fff;
    margin: auto;
    border: white 1px solid;
    padding: 5px;
    resize: none;
    border-radius: 3px;
    height: 15vh;
}

input[type="file"] {
    position: absolute;
    z-index: -1;
    top: 10px;
    left: 8px;
    font-size: 17px;
    color: #b8b8b8;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.upload-btn {
    font-weight: 500;
    font-size: medium;
    text-align: center;
    border: white 1px solid;
}

.cancel-btn {
    text-align: center;
    color: red;
    text-decoration: underline;
}

.search-results {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    padding-top: 2em;
    overflow: scroll;
    width: 90%;
    max-height: 70vh;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1em;
    border-bottom: 1px solid var(--border-color);
    padding: 1em;
    width: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.banner {
    position: relative;
    padding-top: 20vh;
    background: var(--accent-color);
}

.banner .avatar {
    width: 100px;
    height: 100px;
    position: absolute;
    bottom: -50px;
    margin-left: 1em;
}

.bio {
    padding-top: 66px;
    padding-bottom: 66px;
    border: 1px solid var(--border-color);
    padding-left: 1em;
}

.bio .username {
    font-size: large;
}

.bio .username span {
    color: rgb(136, 153, 166);
    font-size: small;
}

.bio p {
    margin-top: 1em;
    color: rgb(136, 153, 166);
}

.share-btn {
    position: relative;
    cursor: pointer;
}

.share-btn::after {
    content: 'Copied';
    position: absolute;
    top: -20px;
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.share-btn.copied::after {
    opacity: 0.8;
    animation: fadeOut 1s forwards 1s;
}

@keyframes fadeOut {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

.post {
    flex-direction: column;
}

.content-box {
    width: 100%;
}

.comment {
    display: none;
}

.comment.show {
    display: block;
}

.comment-form input {
    width: 80%;
    padding: 0.5em;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    color: white;
}

.comment-form button {
    width: auto;
    padding: 1em;
    background: var(--accent-color);
    border-radius: 1em;
    color: white;
}

.comment-form {
    width: 100%;
    margin: 1em;
}

.comment-avatar {
    width: 30px;
    height: 30px;
}

.comment .user-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment p {
    margin-left: 35px;
}

.phone-nav {
    position: fixed;
    width: 100vw;
    height: 5vh;
    bottom: 0;
    left: 0;
    transform: translate(0, 0);
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-color);
    padding: 2em 1em;
    z-index: 99;
    border: 1px solid var(--border-color);
}

.phone-nav * {
    font-size: 2rem;
    color: white;
}

.active {
    color: var(--main-color);
}

.active * {
    color: var(--main-color);
}

.top-row {
    padding-right: 2em;
}

.phone-nav {
    display: none;
}

@media (max-width: 1024px) {
    .phone-nav {
        display: flex;
    }
    .post .bottom-row {
        padding-right: 1em;
    }
    .result-item {
        width: 90vw;
    }
    aside.left-side {
        display: none;
    }
    aside.right-side .search {
        width: 90vw;
    }
    aside.right-side {
        display: none;
        position: fixed;
        height: 100vh;
        width: 100vw;
        background: var(--bg-color);
    }
    aside.right-side.show {
        display: flex !important;
    }
    .content {
        width: 100vw;
        max-width: 100vw;
        padding-bottom: 10vh;
    }
    .login {
        width: 95vw;
    }
    .login>h1 {
        top: -5em;
    }
}

.logout-btn {
    background: transparent;
    font-size: 2em;
    margin: 0.5em 0;
    color: red;
    width: 100%;
    text-align: right;
    padding-right: 1em;
}