@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
a
{
    text-decoration: none;
}
:root
{
    --body-color: #efefef;
    --nav-color: #1876f2;
    --bg-color:#fff;
}
.dark-theme
{
    --body-color: #0a0a0a;
    --nav-color: #000;
    --bg-color:#000;
}

body
{
    background-color: var(--body-color);
    transition: background .3s;
}
/* img
{
    width: 100%;
} */

/* *** main css start link ****  */
.logo_heading
{
    color: white;
    font-weight: 600;
}

nav
{
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 5px 5%;
    background-color: var(--nav-color);
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo
{
    width: 160px;
    margin-right: 36px;
}
.nev-left, .nev-right
{
    display: flex;
    align-items: center;
}
.nev-left ul li
{
    list-style: none;
    padding-left: 0;
    display: inline-block;
    cursor: pointer;
}
.nev-left ul li img
{
    width: 26px;
    margin: 0 10px;
}
.nav-user-icon img
{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}
.nav-user-icon 
{
    margin-left: 30px;
}
.search-box 
{
    background: #efefef;
    width: 350px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 5px;
}
.search-box img
{
    width: 18px;
}
.search-box input
{
    width: 100%;
    outline: none;
    border: 0;
    background: transparent;
    padding: 10px;
}
.online
{
    position: relative;
}
.online::after
{
    content: "";
    width: 7px;
    height: 7px;
    background-color: #41df51;
    border: 2px solid #efefef;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 0;
}

/* *** main section ***  */
.container
{
    display: flex;
    justify-content: space-between;
    padding: 13px 5%;
}
.left-side-bar
{
    flex-basis: 25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;
}
.right-side-bar
{
    flex-basis: 25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 4px;
    color: #626262;
    overflow-y:auto ;
}
.main-content
{
    flex-basis: 47%;
}

.imp-links a, .shortcut-links a
{
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #626262;
    width: fit-content;
}
.imp-links a img
{
    width: 25px;
    margin-right: 15px;
}
.imp-links a:last-child
{
    color: #1876f2;
    font-weight: 500;
}
.imp-links
{
    border-bottom: 1px solid #ccc;
}
.shortcut-links a img
{
    width: 40px;
    border-radius: 4px;
    margin-right: 15px;
}
.shortcut-links p
{
    margin: 25px 0;
    color: #626262;
    font-weight: 500;
}

/* ---- right bar section ------  */
.side-bar-title
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.side-bar-title h4
{
    font-weight: 600;
    font-size: 16px;
}
.side-bar-title a
{
    text-decoration: none;
    color: #1876f2;
    font-size: 12px;
}
.event
{
    display: flex;
    font-size: 14px;
    margin-bottom: 20px;
}
.left-event
{
    border-radius: 10px;
    width: 65px;
    height: 65px;
    margin-right: 25px;
    padding-top: 10px;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.event p
{
    font-size: 12px;
}
.event a
{
    font-size: 12px;
    text-decoration: none;
    color: #1875f2;
}
.left-event span
{
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: center;
    width: 100%;
    color: #fff;
    background: #1875f2;
    font-size: 10px;
    padding: 4px 0;
}
.sidebar-adds
{
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
}
.online-list
{
    display: flex;
    text-align: center;
    margin-bottom: 10px;
}
.online-list .online img
{
    width: 40px;
    border-radius: 50%;
}
.online-list .online
{
    width: 40px;
    border-radius: 50%;
    margin-right: 20px;
}
.online-list .online::after
{
    top: unset;
    bottom: 4px;
}
/* ----- main content -----  */
.story-gallary
{
    display: flex;
    margin-bottom: 20px;
}
.story
{
    flex-basis: 18%;
    padding-top: 32%;
    position: relative;
    background-image:linear-gradient(transparent , rgba(0, 0, 0 , 0.4)), url(images/mainprofile.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    margin-right: 15px;
}
.story img
{
    position: absolute;
    width: 35px;
    height: 35px;
    object-fit: cover;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    border: 3px solid #1876f2;
}
.story p
{
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color:#fff;
}
.story-2
{
    background-image:linear-gradient(transparent , rgba(0, 0, 0 , 0.4)), url(images/member-1.png);
}
.story-3
{
    background-image:linear-gradient(transparent , rgba(0, 0, 0 , 0.4)), url(images/member-2.png);
}
.story-4
{
    background-image:linear-gradient(transparent , rgba(0, 0, 0 , 0.4)), url(images/member-3.png);
}
.story-4
{
    background-image:linear-gradient(transparent , rgba(0, 0, 0 , 0.4)), url(images/member-5.png);
}
.story-5
{
    background-image:linear-gradient(transparent , rgba(0, 0, 0 , 0.4)), url(images/member-9.png);
}
.story.story-1 img
{
    top: unset;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    border: 0;
    width: 35px;
}

/* -- write post container -------  */
.write-post-container
{
    width: 100%;
    background: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    color: #626262;
}
.user-profile
{
    display: flex;
    align-items: center;
}
.user-profile img
{
    width:45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}
.user-profile p
{
    margin-bottom: -5px;
    font-weight: 600;
    color: #626262;
}
.user-profile small
{
    font-size: 12px;
}
.post-input-container
{
    padding-left: 55px;
    padding-top: 20px;
}
.post-input-container textarea
{
    width: 100%;
    border: 0;
    outline: 0;
    border-bottom: 1px solid #ccc;
    background: transparent;
    resize: none;
}
.add-post-link
{
    display: flex;
    margin-top: 10px;
}
.add-post-link a
{
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #626262;
    margin-right: 20px;
    font-size: 15px;
}
.add-post-link a img
{
    width: 23px;
    margin-right: 10px;
}
.post-container
{
    width: 100%;
    background-color: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    color: #626262;
    margin: 20px 0;
}
.user-profile span
{
    color: #9a9a9a;
    font-size: 13px;
}
.post-text
{
    color: #9a9a9a;
    margin: 15px 0;
    font-size: 15px;
}
.post-text span
{
    color: #626262;
    font-weight: 600;
}
.post-text a
{
    text-decoration: none;
    color: #1876f2;
}
.post-img
{
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.post-row
{
    display: flex;
    align-items: center;
    justify-content: space-between;    
}
.post-activity div img
{
    width: 18px;
    margin-right: 10px;
}
.post-activity div 
{
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}
.post-profile-icon
{
    display: flex;
    align-items: center;
}
.post-profile-icon img
{
    width: 20px;
    border-radius: 50%;
    margin-right: 5px;
}
.load-more-btn
{
    display: block;
    margin: auto;
    border: 1px solid #9a9a9a;
    color: #626262;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
}

.footer
{
    text-align: center;
    color: #9a9a9a;
    padding: 10px 0 20px;
    font-size: 13px;
}

/* ------ setting menu section ------  */
.setting-menu
{
    position: absolute;
    width: 90%;
    max-width: 350px;
    background-color:var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 0, 0 , 0.4);
    border-radius: 4px;
    overflow: hidden;
    top: 109%;
    right: 5%;
    max-height: 0;
    transition: max-height .3s;
}
.setting-menu-height
{
    max-height: 450px;
}
.user-profile a
{
    font-size: 12px;
    color: #1876f2;
    text-decoration: none;
}
.setting-menu-inner
{
    padding: 20px;
}
.setting-menu-inner hr
{
    border: 0;
    height: 1px;
    background: #9a9a9a;
    margin: 20px 0;
}
.setting-links
{
    display: flex;
    align-items: center;
    margin: 15px 0;
}
.setting-links .setting-icon
{
    width: 38px;
    margin-right: 10px;
    border-radius: 50%
}
.setting-links a
{
    text-decoration: none;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    color: #626262;
}
.user-profile p
{
    text-align: left;
}
#dark-btn
{
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ccc;
    width: 45px;
    border-radius: 15px;
    padding: 2px 3px;
    cursor: pointer;
    display: flex;
    transition: all ease-in-out .4s;
}
#dark-btn span
{
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
}
#dark-btn.dark-mode-on
{
    padding-left: 25px;
    background-color: #585757;
}




/* _--------- profile page ------  */
.profile-container
{
    padding: 20px 5%;
    color: #626262;
}
.profile-container img
{
    width: 100%;
    border-radius: 4px;
    margin-bottom: 14px;
}
.profile-detils
{
    background: #fff;
    padding: 20px;
    border-radius:4px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.pd-row
{
    display: flex;
    align-items: flex-start;
}
.pd-row .pd-images
{
    width: 100px;
    margin-right: 20px;
    border-radius: 5px;
}
.pd-row div h3
{
    font-size: 20px;
    font-weight: 600;
}
.pd-row div p
{
    font-size: 13px;
}
.pd-row div img
{
    width: 30px;
    border-radius: 50%;
    margin-top: 10px;
}
.pd-right button
{
    background: #1875f2;
    border: 0;
    outline: 0;
    padding: 10px 10px;
    display: inline-block;
    align-items: center;
    color: #fff;
    border-radius:  3px;
    margin-left: 20px;
    cursor: pointer;
    height: 35px;
}
.pd-right button img
{
    width: 20px;
    margin-right: 10px;
    float: left;
}


/* ------- media query for home page -----  */
@media (max-width:900px) {
    .right-side-bar
    {
        display: none;
    }
    .left-side-bar
    {
        display: none;
    }
    nav
    {
        flex-wrap: wrap;
    }
    .search-box
    {
        display: none;
    }
    .logo
    {
        width: 110px;
        margin-right: 10px;
    }
    .nev-left ul li img {
        width: 21px;
        margin: 0 6px;
    }
    .nav-user-icon img {
        width: 31px;
    }
    .nav-user-icon
    {
        margin-left: 0;
    }
    .add-post-link
    {
        flex-wrap:wrap;
    }
    .main-content
    {
        flex-basis: 100%;
    }
    .story img {
        width: 30px;
    }
    .story p
    {
        font-size: 10px;
    }
    .story.story1 img 
    {
        width: 30px;
        bottom: 30px;
    }
    .add-post-link a img 
    {
        width: 16px;
        margin-right: 5px;
    }
    .post-input-container {
        padding-left: 0px;
    }
}