*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100%;
}
:root{
    --hover-bar : #fff;
    --hover: #000;
    --body-color : #efefef;
    --nav-color: #5F7FF5;
    --bg-color: #fff;
    --text-color: #000;
    --imp-color:  #521212;
    --hms:  #626262;
    --hsg:  #9a9a9a;
    --bsg: #add8e6;
    --love: rgb(210, 210, 210);
}


.dark-theme{
    --hover-bar: #000;
    --hover: #fff;
    --body-color : #0a0a0a;
    --nav-color: #000;
    --bg-color: #000;  
    --text-color: #fff;
    --imp-color: #fff;
    --hms: #fff;
    --hsg:  #fff;
    --bsg: #0a0a0a;
    --love: #111111;
}


body{
    background: var(--body-color);
    transition: background 0.3s;
}

.upper-nav{
    color: var(--text-color);
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-color);
    padding: 5px 5%;    
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo{
    width: 70px;
    margin-right: 45px;
    cursor: pointer;
    border-radius: 50px;
}

.nav-left , .nav-right {
    display: flex;
    align-items: center;
}

.nav-left  ul li{
    list-style-type: none;
    display: inline-block;
}

ul .chatting-nav li{
    display: inline-block;
    
}


.nav-left ul li img{
    width: 28px;
    margin: 0 15px;
    cursor: pointer;
}

.nav-user-icon img{
    width: 42px;
    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 15px;
}

.search-box img{
    width: 18px;
    cursor: pointer;
}

.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;
}

.container{
    display: flex;
    justify-content: space-between;
    padding: 13px 5%;
}

.left-sidebar{
   /* background: #cbdffa;*/
    flex-basis: 25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;
} 

.right-sidebar{
    background: var(--bg-color); 
    flex-basis: 20%;
    position: absolute;
    top: 18%;
    width: 25%;
    align-self: flex-start;
    padding: 20px;
    border-radius: 4px;
    margin-left: 72%;
    color: var( --imp-color);
} 

.like-buttons-counting{
    width: 40px;
    border: none;
    background: none;
    color: #919191;
    font-size: 28px;
    margin: 0 8px;
    pointer-events: none;
}
.main-content{
    margin-top: 10px;
    flex-basis: 47%; 
    margin-right: 27%;;
} 

.imp-links a, .shortcut-links a{
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var( --imp-color);
    width: fit-content;
}

.imp-links a img{
    width: 25px;
    margin-right: 15px;
}

.imp-links a:last-child{
    color: #1876f2;
}

.imp-links{
    border-bottom: 1.5px solid #ccc;
}

.shortcut-links a img{
    width: 40px;
    border-radius: 4px;
    margin-right: 15px;
}

.shortcut-links p{
    margin: 25px 0;
    color: #626262;
    font-weight: 510;
}

.sidebar-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sidebar-title h4{
    font-weight: 620;
    font-size: 17px;
}

.sidebar-title a{
    text-decoration: none;
    color: #1876f2;
    font-size: 13px;
}

.event{
    display: flex;
    font-size: 15px;
    margin-bottom: 20px;
}

.left-event{
    border-radius: 10px;
    height: 58px;
    width: 65px;
    margin-right: 16px;
    padding-top: 11px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.event p{
  font-size: 13px;
}

.event a{
    font-size: 14px;
    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;
}

.sidebar-ads{
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
}

.online-list{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.online-list a{
    text-decoration: none;
    color: var(--imp-color);
}

.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;
}
/* this part is of old story container */
/* and new story container part is also written here */

.story-gallery{
    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: 10.5px;
}

.story img{
    position: absolute;
    width: 45px;
    border-radius: 50%;
    top: 10px;
    left: 10px;
    border: 5px solid #1876f2;
    cursor: pointer;
}

.story p{
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.story1{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.7)), url(images/status-1.png);
}
.story2{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.7)), url(images/status-2.png);
}
.story3{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.7)), url(images/status-3.png);
}
.story4{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.7)), url(images/status-4.png);
}
.story5{
    background-image:linear-gradient(transparent,rgba(0,0,0,0.7)), url(images/status-5.png);
}

.story.story1 img{
    top: unset;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    border: 0;
    width: 35px;
}

.write-post-container{
    width: 100%;
    background: var(--bg-color); 
    border-radius: 6.5px;
    padding: 20px;
    color: var(--hms);
}

.user-profile{
    display: flex;
    align-items: center;
}

.user-profile img{
    width: 45px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
}

.user-profile p{
    margin-bottom: px;
    font-weight: 500;
    color: var(--hms);
    cursor: pointer;
}

.user-profile small{
    font-size: 13px;
    cursor: pointer;
    color: var(--hms);
}

.fa-angle-down{
    margin-left: 5px;
    cursor: pointer;
}

.post-input-container{
    padding-left: 55px;
    padding-top: 20px;
}

.post-input-container textarea{
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text-color);
    border-bottom: 1px solid #ccc;
    background: transparent;
    resize: none;
}

.add-post-links{
    display: flex;
    margin-top: 10px;
}

.add-post-links a{
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--hms);
    margin-right: 30px;
    font-size: 15px;
}

.add-post-links a img{
    width: 20px;
    margin-right: 10px;
}

.post-container{
    width: 100%;
    background: var(--bg-color); 
    border-radius: 7px;
    padding: 20px;
    color: var(--hms);
    margin: 20px 0;
}

.user-profile span{
    font-size: 15px;
    color: var(--hsg);
}

.post-text{
    color: var(--hsg);
    margin: 16px 0;
    font-size: 16.5px;
}

.post-text span{
    color: #626262;
    font-weight: 520;
    cursor: pointer;
}

.post-text a{
    color: #1876f2;
    text-decoration: none;
}

.post-img{
    width: 100%;
    border-radius: 4.5px;
    margin-bottom: 5px;
}

.post-row{
  
    justify-content: space-between;
}

.activity-icons div a img{
    width: 19px;
    margin-right: 11px;
}

.activity-icons div{
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
}

.post-profile-icons{
    display: flex;
    align-items: center;
}

.post-profile-icons img{
    width: 21px;
    border-radius: 50%;
    margin-right: 6px;
}

.post-row a{
    color: #9a9a9a;
}

.load-more-btn{
    display: block;  
    margin: auto;
    cursor: pointer;
    padding: 5px 10px;
    border:  1.5px solid #9a9a9a;
    color: #626262;
    background: transparent;
    border-radius: 4px;
}

.footer{
    text-align: center;
    color: #9a9a9a;
    padding: 220px 0 20px;
    font-size: 15px;
}

.settings-menu{
    position: absolute;
    width: 90%;
    max-width: 350px;
    background: var(--bg-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.9);
    border-radius: 4px;
    overflow: hidden;
    top: 110%;
    right: 5%;
    max-height: 0;
    transition: max-height 0.3s;
}

.settings-menu-height{
    max-height: 450px;
}

.user-profile a{
    font-size: 14px;
    color: #1876f2;
    text-decoration: none;
}

.settings-menu-inner{
    padding: 20px;
}

.settings-menu hr{
    border: 0;
    height: 1px;
    background: #9a9a9a;
    margin: 15px 0;
} 

.setting-links{
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.setting-links .settings-icon{
    width: 40px;
    margin-right: 11px;
    border-radius: 50%;
}

.setting-links a{
    display: flex;
    flex: 1;
    text-decoration: none;
    align-items: center;
    justify-content: space-between;
    color: var(--hms);
}

#dark-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ccc;
    width: 46px;
    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: #0a0a0a;
}

.rating-box h2{
    color: var( --text-color);
    margin-top: 50px;
    margin-left: 80px;
}

.rating-box button{
    margin-top: 75px;
    margin-left: 18%;
    width: 5%;
    height: 30px;
    color: #1876f2;
    border-radius: 30px;
    background: wheat;
    transition:transform 1s ease;
    cursor: pointer;
}

.rating-box button:hover{
    background: #1876f2;
    color: white;
}

          /*profile part*/

.profile-container{
  padding: 20px 15%;
  color: #626262;
}

.cover-img{
  width: 100%;
  border-radius: 7px;
  margin-bottom: 15px;
}

.profile-details{
    background: var(--bg-color);
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pd-row{
    display: flex;
    align-items: flex-start;
}

.pd-images{
    width: 100px;
    margin-right: 20px;
    border-radius: 50%;
}

.pd-row div h3{
    font-size: 28px;
    font-weight: 620;
    color: var(--hsg);
}

.pd-row div p{
    font-size: 15px;
    color: var(--hsg);
} 

.pd-row div img{
    width: 25px;
    border-radius: 50%;
    margin-top: 13px;
}

.pd-right button{
    background: #1876f2;
    border: 0;
    outline: 0;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    border-radius: 4px;
    margin-left: 11px;
    cursor: pointer;
}

.pd-right button img{
    height: 16px;
    margin-right: 9px;
}

.pd-right button:first-child{
    background: #e4e6eb;
    color: #000;
}

.pd-right{
    text-align: right;
}

.pd-right a{
    background: #e4e6eb;
    border-radius: 4px;
    padding: 13px;
    display: inline-flex;
    margin-top: 28px;
}

.pd-right a img{
    width: 20px;    
}

.profile-info{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 22px;
}

.info-col{
    flex-basis: 33%;
}

.post-col{
    flex-basis: 65%;
}

.profile-intro{
    background: var(--bg-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.profile-intro h3{
    color: var(--imp-color);
    font-weight: 600;
}

.intro-text{
    color: var(--imp-color);
    text-align: center;
    margin: 10px 0;
    font-size: 16px;
}

.profile-intro hr{
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 24px 0;
}

.profile-intro ul li{
    list-style: none;
    font-size: 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    color: var(--hms);
}

.title-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-box a{
    text-decoration: none;
    color: #1876f2;
    font-size: 14px;
}

.photo-box{
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    margin-top: 15px;
}

.photo-box div img{
    width: 100%;
    cursor: pointer;
}

.harshdost{
    cursor: pointer;
    border-radius: 50%;
}

.profile-intro p{
    font-size: 16px;
}

.friends-box{
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    margin-top: 15px;
}

.friends-box div img{
    width: 100%;
    cursor: pointer;
    padding-bottom: 20px;
}

.friends-box div{
    position: relative;
}

.friends-box p{
    position: absolute;
    bottom: 0;
    left: 0;
    color: var(--imp-color);
    font-weight: bold;
}

.chatbox{
    margin-left: 30%;
    margin-top: 35px;
    width: 23%;
     border-radius: 7px;
}

.chatbox-nav{
    display: flex;
    width: 100%;
    height: 75px;
    background: var(--nav-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chatbox-nav img{
    width: 65px;
    border-radius: 50%;
    margin-top: 5px;
    margin-left: 10px;
    cursor: pointer;
}

.chatbox-nav p{
  margin-top: 20px;
  font-size: 18px;
  margin-left: 20px;
  cursor: pointer;
  color: var(--hms);
}

.chatbox-nav .c-other-op{
    margin-top: 20px;
    border-radius: 0%;
    width: 40px;
    height: 30px;
    margin-left: 240px;
}

.chatbox-body{
    display: flex;
    background: var(--love);
    width: 100%;
    height: 350px;
}

.chatbox-body .chats{
    margin-top: 20px;
    margin-left: 20px;
    background: white;
    height: 28px;
    border-radius: 15px;
    width: 140px;
}

.chatbox-body .chats p{
    margin-top: 5px;
    margin-left: 10px;
}

.chatbox-body .chats1{
    margin-top: 50px;
    margin-left: 90px;
    background: white;
    height: 28px;
    border-radius: 15px;
    width: 170px;
}

.chatbox-body .chats1 p{
    margin-top: 5px;
    margin-left: 10px;
}

.chatbox-footer{
    height: 47px;
    background: #1876f2;
}

.chatbox-footer .footer-img{
    margin-left: 10px;
    width: 25px;
}

.chatbox-footer .chatting{
    width: 68%;
    height: 30px;
    border: 0;
    outline: 0;
    color: var(--text-color);
    background: white;
    margin-top: 0px;
    resize: none;
    border-radius: 8px;
    display: flex;
}

.chatbox-footer img{
    width: 60px;
    cursor: pointer;
}
.chatbox-footer textarea{
   height: 30px;
   width: 80%; 
   font-size: 22px;
   margin-left: 20px;
   border: none;
   outline: 0;
   border-radius: 30px;
   margin-bottom: 20px;
   resize: none;
}
.activity-icons div i{
    margin-right: 10px;
    font-size: 22px;
    color: grey;
    cursor: pointer;
}


.noti-menu{
    position: absolute;
    width: 75%;
    max-width: 350px;
    background: var(--bg-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.9);
    border-radius: 4px;
    overflow: hidden;
    top: 110%;
    left: 15%;
    max-height: 0;
    transition: max-height 0.3s;
}

.settings-menu-height1{
    max-height: 450px;
}

.drop-whatsg{
    padding: 10px 15px;
    align-items: center;
    margin-bottom: 20px;
}

.drop-whatsg img{
    margin-top: 20px;
    border-radius: 50%;
    width: 50px;
}

.drop-whatsg h3{
    font-size: 22px;
    font-weight: 700;
    color: var(--imp-color);
}

.insaan a{
  text-decoration: none;
  display: flex;
  color: var(--hsg);
}

.insaan a p{
    margin-top: 37px;
    margin-left: 13px;
}

.drop-whatsg button{
    width: 90px;
    height: 30px;
    margin-top: 25px;
    margin-left: 100px;
    background: transparent;
    border: 2px solid #626262;
    cursor: pointer;
    font-weight: 500;
    color: #626262;
    border-radius: 7px;
}

/*this is for notification drop down menu*/


.hnoti-menu{
    position: absolute;
    width: 50%;
    max-width: 350px;
    background: var(--bg-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.9);
    border-radius: 4px;
    overflow: hidden;
    top: 110%;
    left: 5%;
    max-height: 0;
    transition: max-height 0.3s;
    
}

.settings-menu-height2{
    max-height: 450px;
}

.hnoti-menu h3{
    padding: 10px 15px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
}

.hnoti-menu p{
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text-color);
}
/* media query for home page */

.sign-in-btn button{
   width: 90px;
   height: 25px;
   background: #1876f2;
   border-radius: 30px;
   border: none;
   cursor: pointer;
}

/* sign in  page */

.sign-in{
    margin-top: 100px;
    margin-left: 37%;
    width: 25%;
    height: 360px;
    border-radius: 30px;
    border: 2px solid var(--text-color);
}

.sig{
   margin-top: 15%;
}

.sign-in form{
    padding: 25px 25px;
}

.sign-in form input{
    width: 320px;
    height: 25px;
    border: none;
    border-radius: 30px;
    outline: none;
}

.sign-in form h3{
    margin-bottom: 20px;
    font-size: 20px;
    color: #1876f2;
}


.sign-in form textarea{
    width: 320px;
    height: 55px;
    border: none;
    outline: none;
    resize: none;
    border-radius: 10px;
}

.sign-in  a button{
    width: 80px;
    height: 25px;
    border: none;
    outline: none;
    background: yellow;
    list-style-type: none;
    margin-top: 20px;
    border-radius: 30px;
    cursor: pointer;
}

@media (max-width: 900px){
    .right-sidebar{
        display: none;
    }

    .left-sidebar{
        display: none;
    }

    nav{
        flex-wrap: wrap;
        width: 100%;
    }

    .search-box{
        display: none;
    }

    .logo{
        width: 100px;
        margin-right: 20px;
    }

    .nav-left ul li img{
        width: 20px;
        margin: 0 8px;
    }

    .nav-user-icon img{
        width: 30px;
    }

    .nav-user-icon{
        margin-left: 0;
    }

    .add-post-links{
        flex-wrap: wrap;
    }

    .main-content{
        flex-basis: 50%;
    }

    .story-img{
        width: 20px;
        border-width: 3px;
    }

    .story p{
        font-size: 12px;
    }

    .story .story1 img{
        width: 10px;
        bottom: 30px;
    }

    .add-post-links a{
        margin-right: 12px;
        font-size: 9px;
    }

    .add-post-links a img{
        width: 16px;
        margin-right: 5px;
    }

    .post-input-container{
        padding-left: 0;
    }
}


/*media query for profile page */ 

@media (max-width:900px){
   .profile-container{
    padding: 20px 5%;
   }

   .profile-details{
    flex-wrap: wrap;
   }

   .pd-right{
    text-align: left;
    margin-top: 15px;
   }

   .pd-right button{
    margin-left: 0;
    margin-right: 10px;
   }

   .pd-row div h3{
    font-size: 16px;
   }

   .profile-info{
    flex-wrap: wrap;
   }
  
   .info-col, .post-col{
    flex-basis: 100%;
   }

   /*for navigation notification bar */
   .noti-menu{
    width: 260px;
   }

   .drop-whatsg button{
    margin-left: 70px;
   }
}


/* for chat box */

@media (max-width:900px){
   .chatbox{
    margin-left: 20px;
    width: 92%;
   }
   .chatbox-nav{
    width: 100%;
   }

   .chatbox-nav .c-other-op{
    margin-left: 50%;
   }
   .chatbox-body .chats{
    width: 42%;
    margin-left: 5px;
   }

   .chatbox-body .chats1{
    width: 170px;
    margin-left: 30px;    
   }
   .chatbox-footer{
    width: 100%;
   }
   .chatbox-footer textarea{
    width: 70%;
    margin-left: 5px;
    height: 28px;
   }

   /*.nav-left .logo{
    width: 15%;
   }*/
}