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

:root {
  --body-color: #efefef;
  --nav-color: #1687fe;
  --bg-color: #fff;
  --primary-color: #edf2fc;
  --secondary-color: #212121;
  --textarea-color: black;
}

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

body {
  background: var(--body-color);
}

/* navbar start  */

nav {
  background-color: var(--nav-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  width: 160px;
  margin-left: 45px;
  margin-right: 30px;
}

.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: 30px;
  margin: 0 15px;
}

.user-icon {
  margin-left: 30px;
}

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

.search-box {
  background: #efefef;
  display: flex;
  align-items: center;
  width: 350px;
  border-radius: 20px;
  padding: 10px 15px;
}

.search-box img {
  width: 18px;
  margin-right: 10px;
}

.search-box input {
  width: 100%;
  background: transparent;
  outline: 0;
  border: 0;
}

.online {
  position: relative;
}

.online::after {
  content: "";
  width: 7px;
  height: 7px;
  background: #41db51;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  top: 0;
  right: 0;
}

/* main part  */

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

.left-sidebar {
  flex-basis: 25%;
  position: sticky;
  top: 70px;
  align-self: flex-start;
}
.right-sidebar {
  flex-basis: 25%;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  background: var(--bg-color);
  padding: 20px;
  color: #626262;
  border-radius: 5px;
}
.main-content {
  flex-basis: 47%;
}

.imp-links {
  border-bottom: 2px solid #ccc;
}

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

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

.imp-links a:last-child {
  color: #1687fe;
}

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

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

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

.sidebar-title h4 {
  font-weight: 600;
  font-size: 16px;
}

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

.event {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

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

.left-event span {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 4px 0;
  background: #1687f2;
  width: 100%;
  color: #fff;
  font-size: 10px;
}

.right-event h4 {
  margin-bottom: 5px;
}

.right-event p {
  font-size: 12px;
  margin-bottom: 5px;
}

.right-event p i {
  margin-right: 5px;
}
.right-event a {
  font-size: 12px;
  text-decoration: none;
  color: #1687f2;
}

.ads {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 20px;
}

.online-list {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.online-list img {
  width: 40px;
  border-radius: 50%;
}

.online-list .online {
  margin-right: 15px;
}

.online-list .online::after {
  top: unset;
  bottom: 0;
}

/* main content  */

.story-gallery {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.story {
  position: relative;
  flex-basis: 18%;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)),
    url(images/status-1.png);
  background-size: cover;
  background-position: center;
  padding-top: 32%;
  border-radius: 10px;
}

.story img {
  position: absolute;
  width: 45px;
  border-radius: 50%;
  top: 10px;
  left: 10px;
  border: 3px solid #1687f2;
}

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

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

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

.write-post-container {
  width: 100%;
  background-color: 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 {
  font-weight: 500;
  color: unset;
}

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

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

.post-input-container textarea {
  width: 100%;
  border: 0;
  resize: none;
  outline: 0;
  border-bottom: 1px solid #626262;
  background-color: var(--bg-color);
  color: var(--textarea-color);
}

.add-post-links {
  margin-top: 10px;
  display: flex;
}

.add-post-links a {
  display: flex;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
  color: #626262;
  margin-right: 30px;
}

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

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

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

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

.post-text span {
  font-weight: 500;
  color: #626262;
}
.post-text a {
  text-decoration: none;
  color: #1687f2;
}

.post-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 5px;
}

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

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

.post-row .profile-pic {
  width: 45px;
  object-fit: cover;
}
.post-row .activity-icons img {
  width: 18px;
  margin-right: 5px;
}

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

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

.post-profile-icon a {
  text-decoration: none;
  font-size: 12px;
}

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

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

/* settings-menu  */

.settings-menu {
  position: absolute;
  top: 108%;
  right: 5%;
  background-color: var(--bg-color);
  width: 90%;
  max-width: 350px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  display: none;
}

.settings-menu-show {
  display: block;
}

.settings-menu-inner {
  padding: 20px;
}

.settings-menu-inner .user-profile a {
  text-decoration: none;
  color: #1687f2;
  font-size: 13px;
}

.settings-menu hr {
  background-color: #9a9a9a;
  margin: 15px 0;
}

.settings-link {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.settings-link .settings-icon {
  width: 38px;
  margin-right: 10px;
  border-radius: 50%;
}

.settings-link a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #1687fe;
  font-size: 14px;
}
.settings-menu-inner .user-profile div p {
  color: var(--textarea-color);
}

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

.dark-btn span {
  width: 18px;
  height: 18px;
  background-color: var(--bg-color);
  border-radius: 50%;
  display: inline-block;
}

.dark-btn-on {
  padding-left: 25px;
  background-color: #9a9a9a;
}

@media screen and (max-width: 900px) {
  .search-box {
    display: none;
  }

  .logo {
    width: 110px;
    margin-right: 10px;
  }
  .nav-left ul li img {
    width: 18px;
    margin: 0 8px;
  }
  .user-icon img {
    width: 30px;
  }

  .left-sidebar {
    display: none;
  }
  .right-sidebar {
    display: none;
  }

  .add-post-links {
    flex-wrap: wrap;
  }

  .main-content {
    flex-basis: 100%;
  }

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

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

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

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

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