*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}

:root{
    --body-color:#efefef;
    --nav-contain-color: #1876f2;
    --bg-color: #fff;
}
.dark-theme{
    --body-color:#0a0a0a;
    --nav-contain-color: #000;
    --bg-color: #000;
}


body{
    background: var(--body-color);
    transition: background 0.3s;
}
.nav-contain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5%;
    background: var(--nav-contain-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-left{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.logo{
    width: 160px;
    margin-right: 45px;
}
.nav-left ul li{
    list-style: none;
    display: inline-block;
}
.nav-left ul li img{
    width: 28px;
    margin: 0 15px;
}
.nav-right{
    display: flex;
    align-items: center;
}


/* setting */
.ssetting-menu{
    position: absolute;
    width: 90%;
    max-width: 300px;
    height: 400px;
    background: var(--bg-color);
    box-shadow: 0 0 10px rgb(0 0 0 / 40%);
    top: 100%;
    right: 5%;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}
.ssetting-menu-height{
    max-height: 400px;
}
.setting-menu-inner{
    padding: 20px;
}
.user-profile a {
    text-decoration: none;
    font-size: 12px;
    color: #1876f2;
}
.setting-menu-inner hr {
    border: 0;
    height: 1px;
    margin: 15px 0;
    background: var(--bg-color);
}
.setiing-icon{
    width: 38px;
    border-radius: 50%;
    margin-right: 10px;
}
.setting-links{
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 20px;
}
.setting-links a{
    text-decoration: none;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    color: #626262;
}
#dark-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ccc;
    width: 45px;
    border-radius: 15px;
    padding: 2px 3px;
    cursor: pointer;
    display: flex;
    transition: padding-left 0.5s background 0.5s;
}
#dark-btn span{
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
}
#dark-btn.dark-btn-on{
    padding-left: 23px;
    background: #000;
}



.search-box{
    width: 360px;
    background: var(--bg-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}
.search-box img{
    width: 18px;
}
.search-box input{
    width: 100%;
    background: transparent;
    padding: 10px;
    border: 0;
    outline: 0;
}
.user-icon{
    margin-left: 30px;
}
.user-icon img{
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.users{
    position: relative;
}
.users:after{
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: #41db51;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 0;
    right: 0;
}
.container{
    display: flex;
    justify-content: space-between;
    padding: 13px 5%;
}
.left-sidebar {
    flex-basis: 25%;
    align-self: flex-start;
    position: sticky;
    top: 70px;
}
.icon-links{
    border-bottom: 1px solid #ccc;
}
.icon-links a, .group-links a{
    text-decoration: none;
    display: flex;
    margin-bottom: 30px;
    align-items: center;
    color: #626262;
    width: fit-content;
}
.icon-links a img{
    width: 25px;
    margin-right: 15px;
}
.icon-links a:last-child{
    color: #1876f2;
}
.group-links p{
    margin: 25px 0;
    color: #626262;
    font-weight: 500;
}
.group-links a img{
    width: 40px;
    border-radius: 4px;
    margin-right: 15px;
}
.group-links a:last-child{
    color: #1876f2;
}
.right-sidebar {
    flex-basis: 25%;
    align-self: flex-start;
    position: sticky;
    top: 70px;
    background: var(--bg-color);
    color: #626262;
    padding: 20px;
    border-radius: 6px;
}
.sidebar-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.right-sidebar h4{
    font-size: 16px;
    font-weight: 600;
}
.sidebar-title a{
    text-decoration: none;
    color: #1876f2;
    font-size: 12px;
}
.events{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.events-left {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    text-align: center;
    padding-top: 10px;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}
.events-left span {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #1876f2;
    color: #fff;
    font-size: 10px;
    padding: 4px 0;
}
.events-right p{
    font-size: 12px;
}
.events-right a{
    text-decoration: none;
    font-size: 12px;
    color: #1876f2;
}
.sidebar-ads {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
}
.online-list{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}
.online-list .users{
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}
.online-list .users img{
    width: 40px;
    border-radius: 50%;
}
.users::after{
    top: unset;
    bottom: 5px;
}
.main-contant{
    flex-basis: 47%;
}
.story-gallery{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
}
.story {
    flex-basis: 18%;
    padding-top: 32%;
    position: relative;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}
.story img {
    position: absolute;
    width: 45px;
    border: 5px solid #1876f2;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}
.story p {
    position: absolute;
    width: 100%;
    bottom: 10px;
    color: #fff;
    text-align: center;
    font-size: 14px;
}
.story.story1 img {
    top: unset;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    border: 0;
    width: 35px;
}
.story1{
    background-image: linear-gradient(transparent,rgba(0,0,0,.5)),url(images/story.jpg);
}
.story2{
    background-image: linear-gradient(transparent,rgba(0,0,0,.5)),url(images/status-2.png);
}
.story3{
    background-image: linear-gradient(transparent,rgba(0,0,0,.5)),url(images/status-3.png);
}
.story4{
    background-image: linear-gradient(transparent,rgba(0,0,0,.5)),url(images/status-4.png);
}
.story5{
    background-image: linear-gradient(transparent,rgba(0,0,0,.5)),url(images/story1\ \(2\).jpg);
}
.post-container{
    width: 100%;
    background: var(--bg-color);
    color: #626262;
    padding: 20px;
    border-radius: 5px;
}
.user-profile{
    display: flex;
    align-items: center;
}
.user-profile img{
    width: 45px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
}
.user-profile p{
    font-weight: 500;
    color: #626262;
    margin-bottom: -5px;
}
.user-profile small{
    font-size: 12px;
}
.post-input{
    padding-left: 55px;
    padding-top: 20px;
}
.post-input textarea{
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
}
.post-links{
    display: flex;
    margin-top: 10px;
}
.post-links a{
    text-decoration: none;
    color: #626262;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-right: 30px;
}
.post-links a img{
    width: 20px;
    margin-right: 10px;
}
.post-user-contain{
    width: 100%;
    background: var(--bg-color);
    color: #626262;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}
.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-profile span{
    font-size: 13px;
    color: #9a9a9a;
}
.post-text{
    font-size: 15px;
    color: #626262;
    margin: 15px 0;
}
.post-icon{
    width: 100%;
    border-radius: 4px;
    margin-bottom: 5px;
}
.row-icon{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.icon div{
    display: inline-block;
    margin-right: 30px;
    text-align: center;
}
.icon img{
    width: 18px;
    margin-right: 10px;
    cursor: pointer;
}
.post-profile-icon{
    display: flex;
    align-items: center;
}
.post-profile-icon img{
    width: 20px;
    margin-right: 5px;
    border-radius: 50%;
    cursor: pointer;
}
.load-more-btn {
    display: block;
    margin: auto;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #9a9a9a;
    background: transparent;
    color: #626262;
    border-radius: 4px;
}
.footer {
    text-align: center;
    color: #9a9a9a;
    padding: 10px 0 20px;
    font-size: 16px;
}


/* profile page */
.profile-contain{
    padding: 20px 15%;
    color: #626262;
}
.cover-img{
    width: 100%;
    border-radius: 6px;
    margin-bottom: 14px;
}
.profile-details{
    background: var(--bg-color);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.pd-row{
    display: flex;
    align-items: flex-start;
}
.pd-img{
    width: 100px;
    margin-right: 20px;
    border-radius: 6px;
}
.pd-row div h3{
    font-size: 20px;
    font-weight: 600;
}
.pd-row div p{
    font-size: 13px;
}
.pd-row div img{
    width: 25px;
    border-radius: 50%;
    margin-top: 12px;
}
.pd-right button{
    background: #1876f2;
    border: 0;
    outline: 0;
    padding: 6px 10px;
    align-items: center;
    color: #fff;
    border-radius: 3px;
    margin-left: 10px;
    cursor: pointer;
}
.pd-right button img{
    height: 15px;
    margin-right: 10px;
}
.pd-right button:first-child{
    background: #e4e6eb;
    color: #000;
}
.pd-right{
    text-align: right;
}
.pd-right a{
    background: #e4e6eb;
    border-radius: 3px;
    padding: 12px;
    display: inline-flex;
    margin-top: 30px;
}
.pd-right a img{
    width: 20px;
}
.profile-info{
    display: flex;
    align-self: flex-start;
    justify-content: space-between;
    margin-top: 20px;
}
.info-col {
    flex-basis: 33%;
    position: sticky;
    top: 70px;
    align-self: self-start;
}
.post-col{
    flex-basis: 65%;
}
.profile-intro{
    background: var(--bg-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.profile-intro h3{
    font-weight: 600;
}
.intro-text{
    text-align: center;
    margin: 10px 0;
    font-size: 15px;
}
.intro-text img{
    width: 15px;
    margin-bottom: -3px;
}
.profile-intro hr{
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 24px 0;
}
.profile-intro ul li{
    list-style: none;
    font-size: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}
.profile-intro ul li img{
    width: 26px;
    margin-right: 10px;
    cursor: pointer;
}
.profile-intro ul li a {
    text-decoration: none;
    color: #1876f2;
    margin-left: 80px;
}
.titel-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.titel-box h3{
    font-weight: 600;
}
.titel-box a{
    text-decoration: none;
    font-size: 14px;
    color: #1876f2;
}
.photo-box {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    margin-top: 15px;
}
.photo-box div img {
    width: 100%;
    cursor: pointer;
}
.profile-intro p{
    font-size: 14px;
}
.friend-box {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    margin-top: 15px;
}
.friend-box div {
    position: relative;
}
.friend-box div img {
    width: 100%;
    cursor: pointer;
    padding-bottom: 20px;
}
.friend-box div p {
    position: absolute;
    bottom: 0;
    left: 0;
}