*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}
body{
    background: #efefef;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1876f2;
    padding: 5px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo{
    width: 160px;
    margin-right: 45px;
}
.nav-left, .nav-right{
    display: flex;
    align-items: center;
}
.nav-left ul li{
    list-style: none;
    display: inline-block;
}
.nav-left ul li a img{
    width: 40px;
    margin: 0 25px;
}
.user-icon img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}
.user-icon{
    margin-left: 30px;
}
.search-box{
    background: #ffffff;
    width: 350px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-box a img{
    width: 18px;
}

.search-box input{
    width: 100%;
    background: transparent;
    padding: 10px;
    outline: none;
    border: 0;
}
.online{
    position: relative;
}
.online::after{
    content: '';
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #41db51;
    position: absolute;
    top: 0;
    right: 0;
}
.offline{
    position: relative;
}
.offline::after{
    content: '';
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #9a9a9a;
    position: absolute;
    top: 0;
    right: 0;
}
.container{
    display: flex;
    justify-content: space-between;
    padding: 13px 5%;
}
.left-sidebar{
    flex-basis:25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;

}
.right-sidebar{
    flex-basis:25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    color: #626262;

}
.main-content{
    flex-basis: 47%;
}
.links a, .shortcuts a{
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #626262;
    width: fit-content;
}
.links a img{
    width: 25px;
    margin-right: 15px;
}
.links a:last-child{
    color: #1876f2;
}
.links{
    border-bottom: 1px solid #ccc;
}

.shortcuts a img{
    width: 40px;
    border-radius: 4px;
    margin-right: 15px;
}
.shortcuts p{
    margin: 25px 0;
    color: #626262;
    font-weight: 500;
}

.titles{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.titles h4{
    font-weight: 600;
    font-size: 16px;
}
.titles a{
    text-decoration: none;
    color: #1876f2;
    font-size: 12px;
}
.event{
    display: flex;
    font-size: 14px;
    margin-bottom: 20px;
}

.left-event{
    border-radius: 10px;
    height: 65px;
    width: 65px;
    margin-right: 15px;
    padding-top: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.event p{
    font-size: 12px;
}
.event a{
    font-size: 12px;
    text-decoration: none;
    color: #1876f2;
}
.left-event span{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1876f2;
    color: #fff;
    font-size: 10px;
    padding: 4px 0;
}
.right-event p img{
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 5px;
}
.ads{
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
}
.online-list{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.online-list .online img{
    width: 40px;
    border-radius: 50%;
}
.online-list .online{
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.online-list .online::after{
    top: unset;
    bottom: 5px;
}
.stories{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.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-radius: 50%;
    top: 10px;
    left: 10px;
    border: 3px solid #1876f2;
}
.story p{
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.story1{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.5)), url(images/status.jpg);
}
.story2{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.5)), url(images/status1.jpg);
}
.story3{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.5)), url(images/status2.jpg);
}
.story4{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.5)), url(images/status3.png);
}
.story.story1 a img{
    top: unset;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    border: 0;
    width: 35px;
}
.write-post{
    width: 100%;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    color: #626262;
}
.profile{
    display: flex;
    align-items: center;
}

.profile img{
    width: 45px;
    border-radius: 50%;
    margin-right: 10px;
}
.profile p{
    margin-bottom: -5px;
    font-weight: 500;
    color: #626262;
}

.profile small{
    font-size: 12px;
}

.profile small img{
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-left: 5px;
}

.post-input{
    padding-left: 55px;
    padding-top: 20px;
}

.post-input textarea{
    width: 100%;
    border: 0;
    outline: 0;
    border-bottom: 1px solid #ccc;
    background: transparent;
    resize: none;
}

.add-post{
    display: flex;
    margin-top: 10px;
}

.add-post a{
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #626262;
    margin-right: 30px;
    font-size: 13px;
}

.add-post a img{
    width: 20px;
    margin-right: 10px;
}
.post{
    width: 100%;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    color: #626262;
    margin: 20px 0;
}
.profile span{
    font-size: 13px;
    color: #9a9a9a;
}
.post-text{
    color: #9a9a9a;
    margin: 15px 0;
    font-size: 15px;
}
.post-text span{
    color: #626262;
    font-weight: 500;
}

.post-text a{
    color: #1876f2;
    text-decoration: none;
}
.post-image{
    width: 100%;
    border-radius: 4px;
    margin-bottom: 5px;
}
.post-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-icons div img{
    width: 18px;
    margin-right: 10px
}

.activity-icons div{
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
}
.load-more, #reset{
    display: block;
    margin: auto;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #9a9a9a;
    color: #626262;
    background: transparent;
    border-radius: 4px;
}
.footer{
    text-align: center;
    color: #9a9a9a;
    padding: 10px 0 20px;
    font-size: 13px;
}

/*functions*/
.post-image-container{
    position: relative;
    display: inline-block;
}
.loader{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 5px solid #fff;
    border-top: 5px solid #1876f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}