* {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
}

.container {
    margin: auto;
    display: flex;
    justify-content: center;
}

/* First Section */

.first {
    width: 22%;
    height: 96vh;
    margin: 12px 14px;
    margin-right: 0px;
    border-right: 2px solid rgb(47, 51, 54);
    position: sticky;
    top: 12px;
}


.first svg {
    filter: invert(1);
    width: 32px;
    cursor: pointer;
}


.sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 22px;
    cursor: pointer;
}

.sidebar ul li {
    list-style: none;
    display: flex;
    gap: 15px;
    font-size: 20px;
    color: rgb(231, 233, 234);
    font-weight: 500;
}

.button button {
    margin-top: 18px;
    padding: 14px 99px;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-hid {
    background-color: rgb(47, 51, 54);
    margin-top: 18px;
    margin-left: -10px;
    padding: 10px;
    border-radius: 50%;
    border: none;
    display: none;
}


.btn-hid svg {
    filter: invert(1);
}

.sidebar ul li .material-symbols-outlined {
    font-size: 30px;
}

.profile {
    margin-top: 70px;
    display: flex;
    cursor: pointer;
}

.profile img {
    border-radius: 50%;
}

.info {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    font-weight: 700;
    font-size: 15px;
    gap: 5px;
}

.profile span {
    display: flex;
    align-items: center;
}

.acc {
    color: rgb(113, 118, 123);
}

/* Second Section */

.second {
    width: 47%;
}

.second nav {
    position: sticky;
    top: 0;
    background-color: black;
    padding-top: 20px;

}

.navbar {
    display: flex;
    justify-content: space-around;
    color: rgb(113, 118, 123);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.second-input img {
    border-radius: 50%;
}


.second-input {
    margin-top: 17px;
    display: flex;
    gap: 12px;
    padding: 0 12px;
    box-sizing: border-box;
}

.second-input textarea {
    background-color: black;
    color: white;
    border: none;
    outline: none;
    font-size: 20px;
    font-weight: 400;
    resize: none;
    margin-bottom: 2px;
    line-height: 1.5;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px;
    width: 78vh;
}

.second-input #happening::placeholder {
    color: rgb(231, 233, 234);
    font-size: 20px;
    font-weight: 400;
}

.what-hpn {
    display: flex;
    flex-direction: column;
}

.globe {
    color: rgb(29, 155, 240);
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.underline {
    height: 1px;
    background-color: rgb(47, 51, 54);
}

.underline1 {
    width: 80%;
    margin: auto;
    margin-top: 20px;
}

.sec-icons {
    display: flex;
    justify-content: space-around;
}

.symbols {
    color: rgb(29, 155, 240);
    margin-top: 20px;
    cursor: pointer;
}

.sec-btn button {
    background-color: white;
    color: black;
    padding: 10px 30px;
    border: none;
    border-radius: 15px;
    margin-top: 15px;
    cursor: pointer;
}

.underline2 {
    margin-top: 20px;
    width: 100%;
}

.symbols-below {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 17px 0;
    color: rgb(29, 155, 240);
    cursor: pointer;
}

.posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 18px;
}

.post {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 15px;
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: 4px;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info {
    font-weight: 500;
    font-size: 14px;
    color: white;
}

.user-info .handle,
.user-info .dot,
.user-info .time {
    color: rgb(113, 118, 123);
    font-weight: normal;
    margin-left: 6px;
}

.tweet-text {
    font-size: 15px;
    color: rgb(231, 233, 234);
    line-height: 1.5;
}

.tweet-img img {
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
}

.tweet-img video {
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    height: 500px;
}

.tweet-actions {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-top: 10px;
    color: rgb(113, 118, 123);
    font-size: 18px;
    cursor: pointer;
}

.tweet-actions span:hover {
    color: rgb(29, 155, 240);
}

/* THIRD SECTION */

.third {
    margin-top: 12px;
    width: 31%;
    border-left: 1px solid rgb(47, 51, 54);
    display: flex;
    flex-direction: column;
}

.third .input {
    position: sticky;
    top: 10px;
    background-color: black;
}

.third input {
    margin-left: 22px;
    background-color: black;
    color: white;
    width: 302px;
    border: 2px solid rgb(47, 51, 54);
    border-radius: 20px;
    padding: 12px 19px;
    padding-top: 10px;
    font-size: 14px;
}

.third input::placeholder {
    color: white;
}

.third-happening {
    margin: 21px 24px;
    padding: 15px;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 12px;
    /* width: 82%; */
    width: 309px;
}

.trending .fst {
    margin-bottom: 30px;
    color: rgb(113, 118, 123);
    font-weight: 600;
}


.trending .mid {
    color: white;
    font-weight: 600;
}

.trending ul li {
    list-style: none;
}

.who-to-follow {
    border: 1px solid rgb(47, 51, 54);
    border-radius: 12px;
    margin: 0 24px;
    width: 309px;
    padding: 15px;
    position: sticky;
    top: 90px;
}

.who-to-follow li {
    list-style: none;
    line-height: 30px;
}

.follow-suggest {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.follow-suggest img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.follow-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.follow-name {
    font-weight: 600;
    color: white;
}

.follow-handle {
    color: rgb(113, 118, 123);
    font-size: 14px;
}

.follow-btn {
    background-color: white;
    color: black;
    padding: 6px 14px;
    border: none;
    border-radius: 18px;
    font-weight: bold;
    cursor: pointer;
}

.hid {
    display: none;
}



/* Media Queries */

@media screen and (max-width: 1202px) {
    .hidden {
        display: none !important;
    }

    .btn-hid {
        display: block;
    }

    .first {
        width: 17%;
        display: flex;
        justify-content: flex-end;
    }

    .second {
        width: 52%;
    }

    .third {
        width: 31%;
    }

    .third input {
        width: 78%;
    }

    .third-happening {
        width: 80%;
    }

    .who-to-follow {
        width: 80%;
    }

}

@media screen and (max-width: 1070px) {
    .first {
        width: 14%;
    }

    .third {
        width: 34%;
    }
}

@media screen and (max-width: 988px) {
    .third {
        display: none;
    }

    .first {
        width: 20%
    }

    .second {
        width: 90%;
    }
}

@media screen and (max-width: 668px) {
    .btn-hid {
        margin-left: -3px;
        padding: 5px;
    }

}

@media screen and (max-width: 566px) {
    .sec-icons-hide {
        display: none !important;
    }

    .container {
        display: block;
    }

    .first {
        display: none;
    }

    .second {
        width: 100%;
        margin: 0;
    }
}