* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: gilroy;
  width: 100%;
  height: 100%;
}

#main {
  width: 100%;
  height: 100%;
  background-color: #F0F2F5;
}

#nav {
  display: flex;
  width: 100%;
  height: 8%;
  background-color: #FFFFFF;
}

#nav-p1 {
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 35%;
  height: 100%;
  /* background-color: rgb(199, 181, 181); */
}

#nav-p1>img {
  width: 50px;
  height: 50px;
}

#nav-p1 #search-input {
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 300px;
  height: 70%;
  border-radius: 30px;
  background-color: #F0F2F5;

}

#search-input>i {
  font-size: 20px;
  color: #65676B;
}

#search-input>input {
  padding: 9px 8px;
  font-weight: 100;
  font-family: sans-serif;
  font-size: 17px;
  color: #65676B;
  outline: none;
  border: none;
  background-color: #F0F2F5;

}

#nav-p2 {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 37%;
  height: 100%;
  /* background-color: red; */
}

.icon-div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all linear .1s;
  /* background-color: rgb(238, 177, 177); */
}

.icon-div>i {
  font-size: 30px;
}

.icon-div:hover {
  border-bottom: 5px solid blue;
}

.icon-div:hover i {
  color: blue;
}

.icon-div:nth-child(1) {
  border-bottom: 5px solid blue;
}

.icon-div:nth-child(1) i {
  color: blue;
}

#nav-p3 {
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: 28%;
  height: 100%;
  /* background-color: rgb(115, 145, 241); */
}

#nav-p3 i {
  font-size: 30px;
}

#nav-p3 #dp {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-image: url(./dbimg.jpg);
  background-size: cover;
}

#part2 {
  overflow: hidden;
  display: flex;
  width: 100%;
  height: 92%;
  /* background-color: rebeccapurple; */
}

#feed1 {
  overflow: auto;
  width: 30%;
  height: 100%;
  /* background-color: rgb(180, 202, 19); */
}

#feed1::-webkit-scrollbar {
  display: none;
}

#top {
  padding: 20px 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 90%;
  border-bottom: .1px solid black;
  /* background-color: red; */
}

#top #container {
  cursor: pointer;
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 90%;
  height: 50px;
  /* background-color: rebeccapurple; */
}

#top #container:hover {
  background-color: #d8d7d79a;
}

#container>img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

#container>h3 {
  font-size: 17px;
  font-weight: 500;
}

#container #seemore {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #bcbcbc;
}

#container #seemore i {
  font-size: 30px;
}

#bottom {
  padding: 10px;
  width: 100%;
  height: 30%;
  /* background-color: rgb(17, 210, 84); */
}

#bottom>h2 {
  margin-left: 10px;
}

#b-p2 {
  padding: 10px;
  margin-top: 5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 60px;
  transition: all linear .2s;
}

#b-p2>img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

#b-p2>h4 {
  font-size: 20px;
  margin-top: -35%;
  margin-left: 25%;
  font-weight: 100;
}

#b-p2:hover h4 {
  color: blue;
}

#b-p2:hover {
  background-color: #bcbcbc7d;
}

#bottom>h4 {
  margin-top: 10px;
  margin-left: 10px;
  font-weight: 100;
}

#feed2 {
  overflow-y: auto !important;
  /* Yeh !important lagakar kisi pichle rule ko override karega */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 8%;
  width: 40%;
  height: auto;
  max-height: 100%;
  /* background-color: rgb(22, 224, 238); */
}

#feed2::-webkit-scrollbar {
  display: none;
}

#overflow {
  padding-bottom: 10px;
  width: 100%;
  height: auto;
}

#feed2-top {
  overflow-x: auto;
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px;
  height: fit-content;
  /* background-color: red; */
}

#feed2-top::-webkit-scrollbar {
  display: none;
}

.story-card {
  overflow: hidden;
  flex-shrink: 0;
  width: 26%;
  height: 40vh;
  border-radius: 20px;
  background-position: 50% 50%;
  background-size: cover;
  /* background-color: rebeccapurple; */
}

.story-card .overlay {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.459);
}

.overlay .see-story {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid blue;
  /* background-color: red; */
  background-size: cover;
}

#see-story2 {
  background-image: url(./storyimg-1.webp);
}

#see-story3 {
  background-image: url(./storyimg-2.webp);
}

#see-story4 {
  background-image: url(./storyimg-3.webp);
}

#see-story5 {
  background-image: url(./storyimg-4.webp);
}

#see-story6 {
  background-image: url(./storyimg-5.webp);
}

.overlay>h4 {
  font-size: 18px;
  color: #FFFFFF;
}

#story-card2 {
  background-image: url(./storyimg-1.webp);
}

#story-card3 {
  background-image: url(./storyimg-2.webp);
}

#story-card4 {
  background-image: url(./storyimg-3.webp);
}

#story-card5 {
  background-image: url(./storyimg-4.webp);
}

#story-card6 {
  background-image: url(./storyimg-5.webp);
}

#story-card1 img {
  object-fit: cover;
  width: 100%;
  height: 75%;
}

#story-card1 #story-uplaod {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 25%;
  background-color: #FFFFFF;
}

#story-card1 #story-uplaod>#upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-top: -12%;
  background-color: #FFFFFF;
}

#story-card1 #story-uplaod>#upload>i {
  font-size: 28px;
}

#feed2-middle {
  overflow: hidden;
  border-radius: 30px;
  margin-top: 5%;
  width: 100%;
  height: 20vh;
  background-color: #FFFFFF;
}

#milddle-part1 {
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 50%;
  /* background-color: rebeccapurple; */
}

#dbimg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: url(./dbimg.jpg);
  background-size: cover;
}

#middle-search {
  width: 400px;
  padding: 10px 8px;
  font-weight: 100;
  font-family: sans-serif;
  font-size: 17px;
  color: #65676B;
  outline: none;
  border: none;
  border-radius: 20px;
  background-color: #F0F2F5;
}

#milddle-part2 {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 50%;
  /* background-color: rgb(29, 184, 52); */
}

.middle-p2-box {
  padding: 0px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  height: 80%;
  /* background-color: rgb(238, 184, 184); */
}

.middle-p2-box>img {
  width: 25px;
}

.middle-p2-box>h3 {
  font-weight: 100;
}

#post-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1px;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 5%;
  width: 100%;
  height: 80vh;
  background-color: #FFFFFF;
}

#post-top {
  display: flex;
  width: 100%;
  height: 10%;
  background-color: #FFFFFF;
}

#post-top-p1 {
  padding-left: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 60%;
  height: 100%;
  /* background-color: red; */
}

#top-p1-photo {
  overflow: hidden;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  /* background-color: rebeccapurple; */
}

#top-p1-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#top-p1-text h3 {
  cursor: pointer;
  font-weight: 100;
}

#top-p1-text h3:hover {
  text-decoration: underline;
}

#top-p1-text h4 {
  cursor: pointer;
  font-weight: 100;
}

#top-p1-text h4:hover {
  text-decoration: underline;
}

#post-top-p2 {
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 40%;
  height: 100%;
  /* background-color: rgb(179, 255, 0); */
}

#top-p2-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

#top-p2-icons:hover {
  background-color: #E4E6EB;
}

#top-p2-icons i {
  font-size: 25px;
}

#post-img {
  overflow: hidden;
  border: .1px solid black;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom: none;
  width: 90%;
  height: 70%;
  background-color: #FFFFFF;

}

#post-img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

#post-img>video {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

#post-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 20%;
  /* background-color: rgb(81, 211, 247); */
}

#iamges-like {
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -10px;
  justify-content: flex-start;
  width: 90.2%;
  height: 30%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border: .1px solid black;
  /* background-color: rebeccapurple; */
}

#iamges-like i:nth-child(1) {
  font-size: 25px;
  color: blue;
}

#iamges-like i:nth-child(2) {
  font-size: 25px;
  color: red;
}

#iamges-like>h3 {
  letter-spacing: normal;
  font-weight: 100;
  margin-left: 10px;
  font-size: 25px;
}

#like-dislike {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: .1px solid black;
  margin-top: 5%;
  width: 90.2%;
  height: 40%;
  /* background-color: red; */
}

.all-likes {
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  gap: 5px;
  width: auto;
  height: 100%;
  /* background-color: rebeccapurple; */
}

.all-likes i {
  font-size: 20px;
}

#likes>i:hover {
  color: blue;
}

#likes {
  position: relative;
}

#emojis {
  display: flex;
  opacity: 0;
  padding: 10px;
  position: absolute;
  top: -150%;
  left: -50%;
  border-radius: 50px;
  width: auto;
  height: auto;
  transition: all linear .5s;
  background-color: #ececec;
}

#likes:hover #emojis {
  opacity: 1;
}

#emojis img {
  transition: all linear .2s;
  margin-left: 10px;
  width: 40px;
}

#emojis img:hover {
  scale: 1.1;
  margin-top: -1%;
}

#feed3 {
  padding: 10px;
  width: 28%;
  height: 100%;
  /* background-color: rgb(74, 14, 170); */
}

#feed3-top {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 40%;
  /* background-color: red; */
}

#profile-page {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 90%;
  height: auto;
  /* background-color: rebeccapurple; */
}

#feed3-top #profile-page>h3 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  opacity: .6;
}

#profile-page>i {
  font-size: 30px;
}

#profile-page2 {
  margin-top: 10%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 90%;
  height: auto;
  /* background-color: rebeccapurple; */
}

#feed3-top #profile-page2>h3 {
  font-weight: 100;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#profile-page2>i {
  font-size: 30px;
}

#feed3-top>:nth-child(3) i {
  opacity: .7;
  font-size: 20px;
}

#feed3-top>:nth-child(3) h3 {
  opacity: .7;
  font-size: 17px;
}

#feed3-top>:nth-child(4) i {
  opacity: .7;
  font-size: 20px;
}

#feed3-top>:nth-child(4) h3 {
  opacity: .7;
  font-size: 17px;
}

#feed3-top #profile-page2 img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

#feed3-bottom {
  width: 100%;
  height: 60%;
  /* background-color: rgb(31, 184, 79); */
}

#feed3-bottom-contain {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  width: 100%;
  height: 80%;
  /* background-color: rebeccapurple; */
}

#feed3-bottom-contain::-webkit-scrollbar {
  display: none;
}

#contact {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  height: auto;
  /* background-color: blue; */
}

#contact>h4 {
  font-weight: 100;
  font-size: 20px;
  opacity: .7;
}

#search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 30%;
  /* background-color: red; */
}

#search-bar>i {
  opacity: .7;
  font-size: 25px;
}

#feed3-bottom-contain #user-name {
  margin-top: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 90%;
  height: auto;
  /* background-color: red; */
}

#feed3-bottom-contain #user-name:hover {
  background-color: #bcbcbc;
}

#feed3-bottom-contain #user-name>img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width:700px) {
  #main {
    overflow: hidden;
    width: 100%;
  }

  #nav {
    padding: 1rem .7rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #nav-p1>img {
    width: 35px;
    height: 35px;
  }

  #nav-p1 {
    width: 40%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #nav-p1 #search-input {
    overflow: auto;
    width: 40%;
    font-size: 2rem;
    height: 96%;
  }

  #search-input>input {
    width: 10px;
  }

  #nav-p2 {
    display: none;
  }

  #nav-p3 {
    width: fit-content;
  }

  #part2 {
    width: 100%;
    padding: 0rem .8rem;
  }

  #feed1 {
    display: none;
  }

  #feed3 {
    display: none;
  }

  #feed2 {
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    margin-left: -1%;
    max-height: 100%;
  }

  .story-card {
    overflow: hidden;
    flex-shrink: 0;
    width: 35%;
    height: 25vh;
    cursor: none;
  }

  #milddle-part1 {
    padding: 1rem;
    width: 100%;
    height: fit-content;
    z-index: 999999;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }

  #feed2-middle {
    padding-bottom: 1rem;
    width: 100%;
    height: fit-content;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }

  #middle-search {
    width: 80%;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }

  #dbimg {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }

  #milddle-part2 {
    margin-top: 1rem;
    width: 100%;
    height: fit-content;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }

  .middle-p2-box {
    width: fit-content;
    height: fit-content;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }

  .middle-p2-box>img {
    width: 1.2rem;
  }

  .middle-p2-box>h3 {
    font-size: .8rem;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }
  #top-p1-text h3{
    font-size: .8rem;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;

  }
  #top-p1-text h4{
    font-size: .6rem;
    user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
  }
  #emojis{
    top: -90%;
  }
}