@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --blue: #1877f2;
  --light-gray: #f0f2f5;
  --dark-gray: #65676b;
  --white: #ffffff;
  --light-gray-2: #e4e6eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--light-gray);
}
input,
button {
  border: none;
  outline: none;
}
a {
  text-decoration: none;
}

nav {
  height: 55px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

/* left-navbar */
nav .left-navbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

nav .left-navbar .search-input {
  background-color: var(--light-gray);
  height: 40px;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 30px;
  cursor: pointer;
  color: var(--dark-gray);
}

nav .left-navbar .search-input input {
  width: 100%;
  height: 100%;
  background-color: transparent;
  font-size: 1rem;

  // flex: 1;
  // font-size: 14px;
}

nav .left-navbar .logo {
  font-size: 1.8rem;
  color: var(--blue);
  font-weight: 600;
}

/* center-navbar */
nav .center-navbar {
  flex: 1.5;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(5, 1fr);
  // grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
nav .center-navbar a {
  height: 55px;
  font-size: 1.2rem;
  color: var(--dark-gray);
  display: grid;
  place-items: center;
  opacity: 0.8;
  padding: 0 40px;
}
nav .center-navbar a:hover {
  background-color: var(--light-gray);
}

/* right-navbar */
nav .right-navbar {
  flex: 1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
nav .right-navbar a {
  height: 40px;
  width: 40px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: black;
  position: relative;
}
nav .right-navbar a .icon {
  width: 20px;
  height: 20px;
  background-color: #e41e3f;
  font-size: 0.8rem;
  color: white;
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: absolute;
  top: -2px;
  right: -2px;
}
nav .right-navbar .right-navbar-image {
  width: 40px;
  height: 40px;
}

nav .right-navbar .right-navbar-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}
.container {
  margin-top: 80px;
}

.left-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 25%;
  height: 100vh;
  margin-top: 50px;
  padding: 20px 15px;
  overflow-y: auto;
  padding-bottom: 80px;
  //its either top 55 == margin-top:50px
  // top:55px;
  //  height: calc(100vh - 55px);
}
.left-sidebar a,
.right-sidebar .contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 10px;
  border-radius: 7px;
  // color:var(--dark-gray);
  // font-size:1.2rem;
  // opacity:0.8;
}
.left-sidebar a:hover,
.right-sidebar .contacts a:hover {
  background-color: var(--light-gray-2);
}
.left-sidebar a img,
.right-sidebar .contacts a img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.left-sidebar a p,
.right-sidebar .friend-request p,
.right-sidebar .contacts a p {
  color: #111111;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}
.left-sidebar a i,
.right-sidebar .birthdays i {
  font-size: 1.7rem;
  color: var(--blue);
  opacity: 0.8;
}
.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
  width: 0;
}

.feed {
  margin: 0 30%;
  min-height: 100vh;
}
.feed .create-post {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 10px;
  border-radius: 12px;
}
.feed .create-post .input-section {
  display: flex;
  align-items: center;
  gap: 15px;
}
.feed .create-post .input-section input {
  padding: 8px 12px;
  background-color: var(--light-gray);
  border-radius: 30px;
  width: 100%;
  font-size: 1rem;
}
.feed .create-post .input-section img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.feed .post-types {
  display: flex;
  justify-content: space-between;
}
.feed .post-types .post-type {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
  padding: 10px 2px;
  border-radius: 20px;
  // background-color:var(--light-gray);
  cursor: pointer;
}

.feed .post-types .post-type:hover {
  background-color: var(--light-gray);
  // border-radius:30px;
}
.feed .post-types .post-type i {
  font-size: 1.3rem;
  // color:var(--blue);
  // opacity:0.8;
}
.feed .post-types .post-type span {
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

.feed .status-section {
  display: flex;
  gap: 10px;
  margin: 15px 0px;
  overflow-x: auto;
}
.feed .status-section::-webkit-scrollbar {
  height: 0;
}
.feed .status-section .status {
  min-width: 110px;
  height: 200px;
  overflow: hidden;

  border-radius: 10px;
  cursor: pointer;
  position: relative;
  // background-color: var(--light-gray);
}
.feed .status-section .status img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed .status-section .status .profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 10px;
  left: 10px;
  overflow: hidden;
  border: 4px solid blue;
}
#create-post {
  background-color: var(--white);
  // color: white;
  // padding: 10px 0px;
  // border-radius: 8px;
  // font-size: 1rem;
  // font-weight: 600;
  // cursor: pointer;
}
#create-post img {
  height: 70%;
}
#create-post .plus-icon {
  height: 40px;
  width: 40px;
  background-color: var(--blue);
  border-radius: 50%;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  color: var(--white);
  border: 5px solid var(--white);
}
#create-post p {
  margin-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
}
.feed .posts .post {
  background-color: var(--white);
  // padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
.feed .posts .post .post-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
.feed .posts .post .post-header .user-details {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.feed .posts .post .post-header .user-details .user-name {
  font-size: 0.85rem;
  // color:var(--dark-gray);
  font-weight: 600;
}
.feed .posts .post .post-header .user-details .date {
  font-size: 0.8rem;
  color: var(--dark-gray);
  font-weight: 500;
}
.feed .posts .post .post-header .header-icons {
  display: flex;
  gap: 10px;
}
.feed .posts .post .post-header .header-icons .header-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dark-gray);
  font-size:1.3rem;
}
.feed .posts .post .post-header .header-icons .header-icon:hover {
  background-color: var(--light-gray);
}

.feed .posts .post .post-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.feed .posts .post .post-text{
  margin:10px 0px;
  font-size:0.9rem;
  padding:0px 10px;
}
.feed .posts .post .post-image{
  height:500px;
  width:100%;
  object-fit:cover;
}
.feed .post-footer{
  padding:0px 10px;
}
.feed .post .post-reactions{
  display:flex;
  justify-content:space-between;
}
.feed .post .post-reactions .likes{
  display:flex;
  // align-items:center;
  gap:10px;
}
.feed .post .post-reactions .likes p{
  font-size: 0.9rem;
}
.feed .post .post-reactions .users img{
  width:20px;
  height:20px
  object-fit:cover;
  border-radius:50%;
  margin-left:-10px;
}
.feed .post .post-reactions .users img:first-child{
  margin-left:0px;
}
.feed .post .post-reactions .comment-text{
  font-size:0.9rem;
  color:var(--dark-gray)
}
.right-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 25%;
  height: 100vh;
  margin-top: 50px;
  padding: 20px 15px;
  overflow-y: auto;
  padding-bottom: 80px;
}
.right-sidebar .friend-request {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0px;
}

.right-sidebar .friend-request img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.right-sidebar .friend-request span {
  font-size: 0.8rem;
  color: var(--dark-gray);
  // font-weight:600;
  // opacity:0.8;
}

.right-sidebar .friend-request .request-info {
  flex: 1;
}
.right-sidebar .friend-request .action-buttons {
  margin: 15px 0px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.right-sidebar .friend-request .action-buttons button {
  background-color: var(--light-gray-2);

  padding: 10px 0px;
  border-radius: 8px;
  // font-size:0.8rem;
  font-weight: 600;
  cursor: pointer;
}
#confirm-btn {
  background-color: var(--blue);
  color: white;
}

.right-sidebar .birthdays {
  display: flex;
  font-size: 0.9rem;
  gap: 15px;
  color: #111111;
  align-items: center;
}

.right-sidebar .birthdays p span {
  font-weight: 600;
}
.online-dot {
  width: 12px;
  height: 12px;
  background-color: #31a24c;
  position: absolute;
  bottom: 0px;
  right: 0px;
  border-radius: 50%;
  border: 2px solid white;
}

.line {
  height: 1px;
  background-color: var(--dark-gray);
  margin: 10px 0;
  opacity: 0.2;
}
.sidebar-text {
  margin: 15px 0px;
  font-weight: 600;
  color: var(--dark-gray);
}

footer{
  margin:15px 0;
  text-align:center;
  font-size: 0.8rem;
  font-weight:600;
  color:var(--dark-gray)
}
footer p{
  margin:8px 0;
}