:root {
  --gradient: linear-gradient(to right, #e2336b, #fcac46);
  --background: #000;
  --text: #fff;
}
html{
  scroll-behavior: smooth;
}
/* :root {
  --background: #000;
  --text: #fff;
  --highlight: #ff1ead;
} */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Square+Peg&display=swap");
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  background: #f8f8f8;
 padding:15px;
}

.sidebar {
  position: fixed;
  width: 300px;
  height: 100vh;
  background: #f8f8f8;
  z-index: 2;
  transition: all 0.3s ease-in-out;
}
.main-home {
  position: absolute;
  width: calc(100% - 300px);
  top: 0;
  left: 300px;
  background: #fff;
  border-radius: 1rem 0 0 1rem;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}
.main-home.dark {
  background-color: #000;
  color: #fff;
}
.logo img {
  width: 140px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
}

.profile-img {
  display: flex;
  align-items: center;
  justify-content: center;
  widows: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #e2336b;
}

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

.name {
  display: flex;
  align-items: center;
  margin: 1rem 0 0 4rem;
}

.name h1 {
  font-size: 1.1rem;
}

.name img {
  margin-left: 4px;
  width: 20px;
  object-fit: center;
}

.profile-img span {
  font-size: 0.938rem;
  font-weight: 400;
}

.about {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.box {
  text-align: center;
}

.box h3 {
  font-size: 1rem;
  font-weight: 500;
}

.box span {
  font-size: 0.938rem;
  font-weight: 400;
}

.menu a {
  width: 100%;
  font-size: 1rem;
  color: #000;
  display: flex;
  align-items: center;
  line-height: 40px;
}

.menu a:hover,
.menu .active {
  color: #e2336b;
}

.menu .icon {
  margin-right: 1rem;
  font-size: 20px;
}

.menu a:hover::before,
.menu .active::before {
  content: "";
  position: absolute;
  right: 2px;
  width: 2px;
  height: 17px;
  background: #e2336b;
}

.main-home {
  padding: 20px;
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  width: 200px;
  height: 2.4rem;
  padding: 10px;
  border-radius: 10px;
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  margin-left: 7px;
}

.search o {
  font-size: 20px;
}

.header-content {
  display: flex;
  align-items: center;
}

.header-content i {
  color: #000;
  font-size: 20px;
  margin-left: 1rem;
}

.header-content .btn {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--gradient);
  margin-left: 1rem;
}

.header-content .btn i {
  color: hsla(0, 0%, 100%, 0.6);
  margin-left: 10px;
}

.toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ba2b8d;
  border-radius: 50px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.toggle::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  transition: all 0.3s ease-in-out;
}
.toggle.active::before {
  left: calc(100% - 20px - 6px);
}

.btn-text {
  color: #fff;
}
.stories-title {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.stories-title h1 {
  font-size: 1.8rem;
}
.stories-title .btn {
  display: flex;
  align-items: center;
  color: #000;
}

.stories-title .btn i {
  font-size: 24px;
  margin-right: 10px;
}

.stories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.stories-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #e2336b;
}

.stories-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.stories-img .color {
  border: 2px solid #dbdbdb;
}

.stories-img .add {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #fff;
  background: hsla(246, 100%, 67%, 0.7);
}

.feed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.feed h1 {
  font-size: 1.7rem;
}

.feed-text {
  display: flex;
  align-items: center;
}

.feed-text h2 {
  font-size: 1rem;
  margin-top: 1rem;
}
.feed-text span {
  font-size: 1rem;
  margin-top: 1rem;
  padding-left: 0.5rem;
}

.main-post {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  gap: 11px;
}

.post-box {
  width: 300px;
}

.post-box img {
  width: 100%;
  height: 344px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.post-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #e2336b;
}

.post-img img {
  width: 27px;
  height: 27px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.post-profile {
  display: flex;
  align-items: center;
}

.post-profile h3 {
  font-size: 12px;
  font-weight: 600;
  margin-left: 5px;
}

.likes {
  display: flex;
  align-items: center;
}

.likes i {
  font-size: 20px;
  margin-left: 7px;
}

.likes span {
  font-size: 14px;
  margin-left: 7px;
}
@media screen and (max-width: 992px) {
  .sidebar {
  width: 250px;
  }
  
  .main-home {
  width: calc(100% - 250px);
  left: 250px;
  }
  }
  
  @media screen and (max-width: 768px) {
  .sidebar {
  width: 100%;
  height: auto;
  position: relative;
  }
  
  .sidebar ul {
  width: 100%;
  display: flex;
  flex-direction: row;
  }
  
  .sidebar ul li {
  width: 50%;
  }
  
  .sidebar ul li a {
  width: 100%;
  }
  
  .main-home {
  width: 100%;
  position: relative;
  left: 0;
  border-radius: 0;
  }
  }
  
  @media screen and (max-width: 576px) {
  .search {
  width: 100%;
  margin-right: 1rem;
  }
  
  .header-content .btn {
  padding: 8px;
  margin-left: 0.5rem;
  }
  
  .header-content .btn i {
  margin-left: 5px;
  }
  }
  
  @media screen and (max-width: 375px) {
  .sidebar ul li {
  width: 100%;
  }
  
  .sidebar ul li a {
  width: 100%;
  }
  
  .name h1 {
  font-size: 1rem;
  }
  
  .menu a {
  font-size: 0.938rem;
  }
  
  .box h3 {
  font-size: 0.938rem;
  }
  
  .box span {
  font-size: 0.813rem;
  }
  }
  
  @media screen and (max-width: 320px) {
  .search input {
  width: 70%;
  }
  
  .header-content .btn {
  padding: 5px;
  margin-left: 0.5rem;
  }
  
  .header-content .btn i {
  font-size: 18px;
  margin-left: 5px;
  }
  }