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

:root {
  --body-color: #efefef;
  --nav-color: #218df1;
  --bg-color: #fff;
}

.dark-theme {
  --body-color: #0a0a0a;
  --nav-color: #254b6f;
  --bg-color: #000;
}

body {
  background: var(--body-color);
  transition: background 0.4s;
}

/*Navbar CSS*/

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: 160px;
  margin-right: 45px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left ul li {
  list-style: none;
  display: inline-block;
}

.nav-left ul li img {
  width: 28px;
  margin: 0 15px;
}

.nav-user-icon img {
  width: 40px;
  border-radius: 50%;
}

.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;
}

.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%;
  position: absolute;
  background: #41db51;
  top: 0;
  right: 0;
}

/*Three Columns CSS*/

.container {
  display: flex;
  justify-content: space-between;
  padding: 13px 5%;
}

.left-side-bar {
  flex-basis: 25%;
  position: sticky;
  top: 70px;
  align-self: flex-start;
}

.right-side-bar {
  flex-basis: 25%;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  background: var(--bg-color);
  padding: 15px 20px;
  border-radius: 4px;
  color: #626262;
}

.main-content-bar {
  flex-basis: 47%;
}

.important-links a,
.shortcut-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  color: #626262;
  width: fit-content;
}

.important-links a img {
  width: 25px;
  margin-right: 15px;
}

.important-links a:last-child {
  color: #218df1;
}

.important-links {
  border-bottom: 1px solid#ccc;
}

.shortcut-links a img {
  width: 40px;
  border-radius: 4px;
  margin-right: 15px;
}

.shortcut-links p {
  margin: 20px 0;
  color: #626262;
  font-weight: 500;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.right-side-bar h4 {
  font-weight: 600;
  font-size: 16px;
}

.sidebar-title a {
  text-decoration: none;
  color: #218df1;
  font-size: 12px;
}

.event {
  display: flex;
  font-size: 14px;
  margin-bottom: 15px;
}

.left-event {
  border-radius: 10px;
  height: 55px;
  width: 65px;
  margin-right: 20px;
  padding-top: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.event p {
  font-size: 12px;
}

.event a {
  font-size: 12px;
  text-decoration: none;
  color: #218df1;
}

.left-event span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #218df1;
  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: 15px;
}

.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;
}

.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: 10px;
}

.story img {
  position: absolute;
  width: 45px;
  border-radius: 50%;
  top: 10px;
  left: 10px;
  border: 5px solid #218df1;
}

.story p {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.story1 {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)),
    url(images/status-1.png);
}

.story2 {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)),
    url(images/status-2.png);
}

.story3 {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)),
    url(images/status-3.png);
}

.story4 {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)),
    url(images/status-4.png);
}

.story5 {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)),
    url(images/status-5.png);
}

.story.story1 img {
  top: unset;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%);
  border: 0;
  width: 35px;
}

.write-post-container {
  width: 100%;
  background: var(--bg-color);
  border-radius: 6px;
  padding: 20px;
  color: #626262;
}

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

.user-profile img {
  width: 45px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-profile p {
  margin-bottom: -5px;
  font-weight: 500;
  color: #626262;
}

.user-profile small {
  font-size: 12px;
}

.post-input-container {
  padding-left: 55px;
  padding-top: 20px;
}

.post-input-container textarea {
  width: 100%;
  border: 0;
  outline: 0;
  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: #626262;
  margin-right: 30px;
  font-size: 13px;
}

.add-post-links img {
  width: 20px;
  margin-right: 10px;
}

.post-container {
  width: 100%;
  background: var(--bg-color);
  border-radius: 6px;
  padding: 20px;
  color: #626262;
  margin: 20px 0;
}

.user-profile span {
  font-size: 13px;
  color: #9a9a9a;
}

.post-text {
  color: #9a9a9a;
  margin: 15px 0;
  font-size: 15px;
}

.post-text a {
  color: #218df1;
  text-decoration: none;
}

.post-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 5px;
}
.post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-icons div img {
  width: 18px;
  margin-right: 10px;
}

.activity-icons div {
  display: inline-flex;
  align-items: center;
  margin-right: 30px;
}

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

.post-profile-icon img {
  width: 20px;
  border-radius: 50%;
  margin-right: 5px;
}

.load-more-button {
  display: block;
  margin: auto;
  cursor: pointer;
  padding: 5px;
  border: 1px solid #9a9a9a;
  color: #626262;
  background: transparent;
  border-radius: 4px;
}

.footer {
  text-align: center;
  color: #9a9a9a;
  padding: 10px 0 20px 0;
  font-size: 13px;
}

.settings-menu {
  position: absolute;
  width: 90%;
  max-width: 350px;
  background: var(--bg-color);
  box-shadow: 0 0 10px rgbs(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  top: 108%;
  right: 5%;
  max-height: 0;
  transition: max-height 0.3s;
}

.settings-menu-height {
  max-height: 450px;
}
.user-profile a {
  font-size: 12px;
  color: #218df1;
  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: 38px;
  margin-right: 10px;
  border-radius: 50px;
}

.setting-links a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #626262;
}

#dark-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ccc;
  width: 45px;
  border-radius: 15px;
  padding: 2px 3px;
  cursor: pointer;
  display: flex;
  transform: padding-left 0.6s, background 0.6s;
}

#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;
}

/*--Profile Page--*/

.profile-container {
  padding: 20px 15%;
  color: #626262;
}

.cover-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 14px;
}

.profile-details {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pd-row {
  display: flex;
  align-items: flex-start;
}

.pd-img {
  width: 100px;
  margin-right: 20px;
  border-radius: 6px;
}

.pd-row div h3 {
  font-size: 25px;
  font-weight: 600;
}

.pd div p {
  font-size: 13px;
}

.pd-row div img {
  width: 25px;
  border-radius: 50%;
  margin-top: 12px;
}

.profile-right button {
  background: #218df1;
  border: 0;
  outline: 0;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  border-radius: 3px;
  margin-left: 10px;
  cursor: pointer;
}

.profile-right button img {
  height: 15px;
  margin-right: 10px;
}

.profile-right button:first-child {
  background: #e4e6eb;
  color: #000;
}

.profile-right {
  text-align: right;
}

.profile-right a {
  background: #e4e6eb;
  border-radius: 3px;
  padding: 12px;
  display: inline-flex;
  margin-top: 30px;
}

.profile-right a img {
  width: 20px;
}

.profile-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 20px;
}

.info-col {
  flex-basis: 33%;
}

.post-col {
  flex-basis: 65%;
}

.profile-intro {
  background: var(--bg-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.profile-intro h3 {
  font-weight: 600;
}

.intro-text {
  text-align: center;
  margin: 10px 0;
  font-size: 15px;
}
.intro-text img {
  width: 15px;
  margin-bottom: -3px;
}

.profile-info hr {
  border: 0;
  height: 1px;
  background: #ccc;
  margin: 24px 0;
}

.profile-intro ul li {
  list-style: none;
  font-size: 15px;
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.profile-intro ul li img {
  width: 26px;
  margin-right: 10px;
}

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

.title-box a {
  text-decoration: none;
  color: #218df1;
  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;
}

.profile-intro p {
  font-stretch: 14px;
}

.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;
}

.mobile-nav {
  display: none;
}

.left-side {
  flex-basis: 20%;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  background: var(--bg-color);
  padding-bottom: 5px;
}

.right-side {
  flex-basis: 79%;
  position: sticky;
  top: 70px;
  align-self: flex-start;
}

.market-container {
  display: flex;
  justify-content: space-between;
  padding: 13px 5%;
}

.notification {
  text-decoration: none;
  color: #626262;
  width: fit-content;
  margin-bottom: 30px;
  margin-left: 20px;
  background: var(--bg-color);
  width: 100%;
  border-radius: 5px;
  box-shadow: 8px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
}

.notification h4 {
  margin-bottom: 10px; /* Add some space between the title and the content */
}

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

.notification img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  margin-right: 15px;
}

.notification .text {
  text-align: left;
}

.notification .text p {
  margin: 0;
  font-weight: 500;
  color: #626262;
}

.notification .blue-dot {
  display: block; /* Make the dot appear on a new line */
}

.catogories a img {
  width: 42px;
  margin: 10px 20px 5px 15px;
}

.catogories a {
  display: flex;
  text-decoration: none;
  color: #9a9a9a;
  align-items: center;
  margin-left: 20px;
}
.catogories {
  display: block;
}

.left-side h3 {
  font-size: 22px;
  color: #626262;
  margin: 20px 0 10px 20px;
}

.catogories p {
  font-size: 16px;
  margin-left: 20px;
  color: #777777;
}

.search-box-market {
  background: #efefef;
  width: 230px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  margin-left: 10px;
  margin-bottom: 15px;
  border: 2px solid #218df1;
}

.search-box-market img {
  width: 18px;
}

.search-box-market input {
  width: 100%;
  background: transparent;
  padding: 10px;
  outline: none;
  border: 0;
}

.topic {
  font-size: 17px;
  color: #626262;
  margin-bottom: 15px;
  margin-left: 20px;
  position: relative;
}

.title-for-you {
  display: grid;
  grid-template-columns: repeat(5, auto);
  grid-gap: 10px;
  margin-top: 15px;
  margin-left: 20px;
}
.card {
  width: 210px;
  background: var(--bg-color);
  align-items: center;
  border-radius: 5px;
  padding: 5px;
}

.card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}
#price {
  font-size: 15px;
  color: #626262;
}

.card p {
  font-size: 13px;
  color: #9a9a9a;
}

.card small {
  font-size: 11px;
  color: #218df1;
}
.cloth {
  margin: 0;
  padding: 0;
  border: 0;
}

/*Media Quary for HomePage*/

@media (max-width: 900px) {
  .right-side-bar {
    display: none;
  }

  .left-side-bar {
    display: none;
  }

  .nav {
    flex-wrap: wrap;
  }

  .search-box {
    display: none;
  }

  .logo {
    width: 110px;
    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-bar {
    flex-basis: 100%;
  }

  .story img {
    width: 30px;
    border-width: 3px;
  }

  .story p {
    font-size: 10px;
  }

  .story.story1 img {
    width: 25px;
    bottom: 30px;
  }

  .add-post-links a {
    margin-right: 15px;
    font-size: 10px;
  }

  .add-post-links img {
    width: 16px;
    margin-right: 5px;
  }

  .post-input-container {
    padding-left: 0;
  }

  .add-post-links {
    text-align: center;
  }

  .profile-container {
    padding-left: 0;
  }

  .mobile-nav {
    display: flex;
    align-items: center;
    top: 100;
    margin-left: 10px;
  }

  .mobile-nav ul li {
    list-style: none;
    display: inline-block;
    margin: 6px 6px 4px;
    font-size: 13px;
    padding-bottom: 4px;
    border-bottom: 1px solid #218df1;
  }
}

/*Media Quary for Profile Page*/

@media (max-width: 900px) {
  .profile-container {
    padding: 20px 5%;
  }

  .profile-details {
    flex-wrap: wrap;
  }

  .profile-right {
    text-align: left;
    margin-top: 15px;
  }

  .profile-right button {
    margin-left: 0;
    margin-right: 10px;
  }

  .pd-row div h3 {
    font-size: 17px;
  }

  .pd-row div p {
    font-size: 12px;
  }

  .profile-info {
    flex-wrap: wrap;
  }
  .info-col,
  .post-col {
    flex-basis: 100%;
  }
}
