

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #F0F2F5;

}

.nav {
  height: 60px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.fb {
  font-size: 40px;
  color: #1877f2;
}

.search-box {
  background: #F0F2F5;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

.fa-magnifying-glass {
  margin-right: 10px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  margin-left: 5px;
  font-size: 16px;
  width: 180px;

}


.nav-center {
  display: flex;
  gap: 45px;
  font-size: 20px;
  color: #555;
}

.nav-center i {
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 8px;
}

.nav-center i:hover {
  background: #e4e6eb;
}

.active {
  color: #1877f2;
  border-bottom: 3px solid #1877f2;
}


.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-right i {
  background: #e4e6eb;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 21px;
}

.nav-right i:hover {
  background: #ddd;
}

.profile img {
  width: 45px;
  height: 45px;
  background: #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.profile-m {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center center;
}




.sidebar {
  width: 300px;
  height: 100vh;
  background: #F0F2F5;
  padding: 10px;
  overflow-y:auto;
  border-right: 1px solid #ddd;
}

.profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.menu-item span {
  font-size: 26px;
  color: #1877f2;
}

.menu-item p {
  font-size: 16px;
  font-weight: 500;
  color: #050505;
}


.menu-item:hover {
  background: rgb(206, 205, 205);
}

.menu-item.active {
  background: #e4e6eb;
}

.see-more span {
  color: #555;
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: #65676b;
  line-height: 1.6;
  padding: 10px;
}


.homep {
  display: flex;
  justify-content: space-between;

}

.hcenter {
  display: flex;
  justify-content: space-between;

}

.imge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.rightside {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.rgtt {
  margin-left: 15px;
}

.rggt {
  margin-right: 15px;


}

.conp {
  font-size: 18px;
  font-weight: 600;
  color: #797878;
}

.rggt i {
  cursor: pointer;
  padding: 8px;
}

.rggt i:hover {
  background-color: rgba(179, 177, 177, 0.219);
  border-radius: 50%;
}

.im {
  margin-bottom: 15px;
}

.ho {
  margin-bottom: 10px;
}

.imm {
  margin-top: 10px;
}

.fa-plus {
  font-size: 24px;
  padding: 5px;
  border-radius: 50%;
  background-color: rgba(128, 128, 128, 0.226);
}




.center-content {
  width: 700px;
  ;
}

.post-box {
  display: flex;
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-box img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
}

.post-box input {
  width: 75%;
  font-size: 18px;
  padding: 10px;
  border: none;
  background: #f0f2f5;
  border-radius: 30px;
  outline: none;
  font-weight: 500;
}

.EMO {
  padding-left: 15px;
  font-size: 26px;
}

.EMO i {
  padding: 2px;
  cursor: pointer;
}




.stories {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.story {
  width: 120px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: white;
  cursor: pointer;
}
.story:hover {
  opacity: 0.8;
}

.storyy-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    
}

.storyy-card {
    min-width: 110px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;   
    background-color: white;
}

.storyy-card:hover{
  opacity: 0.8;
  cursor: pointer;
}

.bg-img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.profilee {
    position: absolute;
    top: 10px;
    left: 10px;
}

.profilee img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #1877f2;
        object-fit: cover;

}

.name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: rgb(255, 255, 255);
    font-weight: 500;
    font-size: 14px;
    opacity: 1.6;
}

.imk {
  width: 100%;
  height: 80%;
  top: 0;
  object-fit: cover;
  position: absolute;
}
 
.cret {
  width: 100%;
  height: 75%;
  object-fit: cover;
}

.plu {
  width: 30px;
}

.story span {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 14px;
}

.create p {
  position: absolute;
  bottom: 8px;
  text-align: center;
  width: 100%;
  color: rgb(44, 44, 44);
  font-size: 14px;
  font-weight: 500;
}

.plus {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  background: #ffffff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}


.fb-post {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.post-top {
  display: flex;
  align-items: center;
  padding: 10px;
}

.profilei {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.post-user {
  flex: 1;
  margin-left: 10px;
}

.post-user h4 {
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}
.post-user h4:hover {
  text-decoration: underline;
}

.post-user span {
  font-size: 14px;
  color: gray;
  font-weight: 500;
  cursor: pointer;

}
.post-user span:hover {
  text-decoration: underline;
}
.like{
  width: 100%;
  height: 60px;
}
.like i{
  font-size: 22px;
  cursor: pointer;
  padding: 20px 10px;
  margin-left: 10px;
}
.like i:hover{
  background-color: rgba(128, 128, 128, 0.24);
  border-radius: 20px;
}
.post-menu {
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
}
.post-menu:hover {
  background-color: rgba(128, 128, 128, 0.24);
  border-radius: 20px;
}

.post-image img {
  width: 100%;
  display: block;
}



@media (max-width: 1024px) {

  .sidebar{
    width: 220px;
  }

  .center-content{
    width: 60%;
  }

  .nav-center{
    gap: 20px;
  }

}



@media (max-width: 768px) {

  .homep{
    flex-direction: column;
  }

  .sidebar{
    display: none;
  }

  .center-content{
    width: 100%;
    padding: 10px;
  }

  .nav-center{
    display: none;
  }

  .search-box input{
    width: 100px;
  }

  .post-box input{
    width: 60%;
    font-size: 16px;
  }

  .stories{
    overflow-x: auto;
  }

  .storyy-wrapper{
    gap: 8px;
  }

  .story{
    min-width: 110px;
  }

  .storyy-card{
    min-width: 110px;
  }

}



@media (max-width: 480px) {

  .nav{
    padding: 0 10px;
  }

  .fb{
    font-size: 30px;
  }

  .nav-right i{
    padding: 8px;
    font-size: 16px;
  }

  .post-box{
    flex-wrap: wrap;
  }

  .EMO{
    width: 100%;
    margin-top: 5px;
  }

}