.sidebar {
    width: 80px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px;
}

.sidebar:hover .text {
    opacity: 1;
    margin-left: 10px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.menu-item:hover,
.profile:hover {
    background-color: #1a1a1a;
}

.menu img {
    width: 22px;
}

.profile img {
    border-radius: 50%;
}

.menu-item,
.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px 10px 10px 5px;
    border-radius: 8px;
}

.text {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* midbar */

.midbar {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
}

.main-content {
    width: 700px;
    margin-left: 400px;
}

.story-container {
    display: flex;
    flex-direction: row;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.story-container::-webkit-scrollbar {
    display: none;
}

.story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.story-ring {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    padding: 3px;
}

.story-ring img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid black;
}

.story-text {
    width: 80px;
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* post container */
.post-container {
    display: flex;
    flex-direction: column;
    width: 550px;
    margin: 30px auto;
    margin-top: 30px;
    
}

.post {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 25px;
}

.user-detail {
    width: 100%;
    padding: 0 15px;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.post-profile {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0px;
    border: 2px solid #d62976
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    line-height: 1.3;
}

.top-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-size: 15px;
    font-weight: bold;
}

.post-timing {
    color: rgb(145, 143, 143);
    font-size: 13px;
}

.post-song {
    font-size: 10px;
    color: rgb(197, 197, 197);
}

.dot-button img {
    width: 15px;
    height: 15px;
    margin-right: 20px;
}

.image-video {
    height: 600px;
    width: 100%;
    text-align: center;
}

.image-video img {
    height: 600px;
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #313131;
}

.image-video video {
    width: 100%;
    max-width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

/* post update  */

.post-update {
    width: 100%;
}

.update-icons {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
}

.icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon img {
    width: 25px;
}

.like-icon {
    filter: brightness(0) invert(1);
    transition: 0.3s;
    cursor: pointer;
}

.like-icon.liked {
    filter: invert(27%) sepia(96%) saturate(7471%) hue-rotate(356deg) brightness(101%) contrast(109%);
}
.description-box {
    padding: 0 15px;
}

.description-box span {
    font-size: 16px;
}

.description{
    color: rgb(221, 214, 214);
}

.more {
    font-size: 13px;
    color: silver;
    padding-left: 15px;
}

/* left-bar */

.left-bar {
   height: fit-content;
   width: 300px;
   position: sticky;
   top: 40px;
}

.switch-account {
    display: flex;
    justify-content: space-between;
    /* flex-direction: row; */
    gap: 10px;
    align-items: center;
}

.account {
    display: flex;
    width: 50px;
    border-radius: 50%;
}

.account img {
    width: 50px;
    border-radius: 50%;
    border: 2px solid #d62976
}

.switch-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.account-name {
    display: flex;
}

.bio-text {
    font-size: 12px;
    color: #afa5a5;
}

.btn {
    display: flex;
    gap: 40px;
    margin-left: 40px;
    font-weight: bold;
}

.btn a {
    text-decoration: none;
    color: #4f5bd5;
    font-size: 12px;
    font-weight: bold;
}

.other-suggest {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 5px;
}

.other-suggesttext {
    font-size: 14px;
    color: #d1cfcf;
    cursor: pointer;
}

.suggest-account {
    display: flex;
    justify-content: space-between;
    /* flex-direction: row; */
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.profile-account {
    display: flex;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
}

.profile-account img {
    width: 50px;
    border-radius: 50%;
    border: 2px solid #d62976
}


.suggest-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.suggest-username {
    padding-bottom: 6px;
}

.suggest-profileimage {
    display: flex;
    position: relative;
    align-items: center;
}

.small-profile,
.small-profile1 {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    border: 2px solid black;
}

.small-profile {
    left: 0;
    z-index: 1;
}

.small-profile1 {
    left: 12px;
    z-index: 2;
}

.suggest-bio {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: fixed;
    bottom: 20px;
    left: auto;
    right: 20px;
    width: 260px;
    height: 60px;
    background-color: #262626;
    border-radius: 50px;
    border: 1px solid #333;
    /* border-top: 1px solid #262626; */

}

.message {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.message img {
    width: 20px;
}

.message-text {
    font-size: 14px;
    font-weight: 500;
}

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

.message-profile img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #262626;
    margin-left: -8px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* mobile  */

@media (max-width: 768px) {

    body {
        margin: 0;
        padding-top: 60px 0 80px 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar {
        display: none;
    }

    .left-bar {
        display: none;
    }
}

.mobile-topbar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        position: fixed;
        top: 0;
        width: 100%;
        background: black;
        /* border-bottom: 1px solid #262626; */
        z-index: 1000;
        box-sizing: border-box;
    }

    .logo-text {
        font-size: 28px;
        font-family: 'Billabong';
        font-weight: bold;
    }

    .left-icon {
        width: 22px;
    }

    .top-icons img {
        width: 22px;
    }

    .midbar {
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
    }

    .main-content {
        margin:  0;
        width: 100%;
        padding: 0 10px;
    }

    .story-container {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 5px;
        margin-top: 50px;
    }

    .story-ring img {
        width: 60px;
        height: 60px;
    }

    .story-text {
        font-size: 10px;
        width: 60px;
    }

    .post-container {
        width: 100%;
        margin: 10px 0;
    }

    .post {
        padding: 10px 0;
    }

    .user-detail {
        padding: 0 10px;
    }

    .image-video {
        width: 100%;
        height: auto;
    }

    .image-video img,
    .image-video video {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 6px;
    }

    .update-icons {
        padding: 8px 10px;
        gap: 15px;
    }

    .icon img {
        width: 22px;
    }

    .like-icon {
        filter: brightness(0) invert(1);
        transition: 0.3s;
        cursor: pointer;
    }
    
    .description-box {
        padding: 0 10px;
    }

    .last-bar {
        position: fixed;
        bottom: 10px;
        left: 5%;
        width: 90%;
        height: 55px;
        border-radius: 40px;
        background: #262626;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        z-index: 1000;
    }

    .message img {
        width: 18px;
    }

    .message-text {
        font-size: 13px;
    }

    .message-profile img {
        width: 25px;
        height: 25px;
    }
}

.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55px;
        background: black;
        border-top: 1px solid #262626;
        z-index: 1000;
    }

    .bottom-item {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        cursor: pointer;
    }

    .bottom-item img {
        width: 24px;
    }

    .profile-icon {
        border-radius: 50%;
        border: 2px solid white;
    }

    body {
        padding-bottom: 60px;
    }

    .last-bar {
        display: none;
    }
}

/* story-viewer js start */

.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.story-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}


