* {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

body {
    background-color: #efefef;

}

nav {
    display: flex;
    align-items: center;
    background-color: rgb(85, 12, 221);
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {

    width: 150px;
    margin-left: 23%;
}

.left-side ul {
    list-style: none;
    display: flex;
}

.left-side ul li img {
    width: 24px;
    height: 24px;
    margin: 0 15px;
    cursor: pointer;
}

.right-side .profile img {
    border-radius: 50%;
    width: 40px;
    margin: 5px 10px;
    cursor: pointer;

}

.right-side .profile {
    margin-right: 30px;
}

.right-side .searchbox {
    display: flex;
    background-color: #efefef;
    border-radius: 50px;
    justify-content: center;
    border: 4px solid #efefef;
}

.right-side .searchbox img {
    width: 20px;
    height: 20px;
    align-self: center;
    margin-left: 5px;
}

.right-side .searchbox input {
    border: none;
    background-color: #efefef;
    padding: 5px;
    outline: none;
}

.online {
    position: relative;
}

.online::after {
    content: '';
    width: 7px;
    height: 7px;
    background-color: #25c40d;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 7px;
    right: 10px;
}

.contianer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 5%;

}

.contianer .lefts-side {
    align-self: flex-start;
    position: sticky;
    top: 70px;
    flex-basis: 25%;

}

.contianer .rights-side {

    position: sticky;

    top: 80px;
    flex-basis: 25%;
    background: white;
    color: #626262;
    padding: 10px 25px;

    /* border: 1px solid rgb(211, 195, 195); */

}

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

.frst a img {
    width: 30px;
    height: 30px;
    margin-right: 15px;

}

.frst a:last-child {
    color: blueviolet;
}

.frst {
    border-bottom: 1px solid #ccc;

}

.scnd a {
    display: flex;
    align-items: center;
    margin-top: 10px;
    text-decoration: none;
}

.scnd a img {
    border-radius: 50%;
    margin-right: 5px;
    width: 30px;
}

.rights-side .title {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 20px;
}

.rights-side .title h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.rights-side .title a p {
    color: rgb(151, 151, 233);
    font-size: 12px;
    margin-top: 5px;

}

.rights-side .title a {
    text-decoration: none;
}


.event {
    display: flex;
    align-items: center;
    margin-bottom: 25px;

}

.left-event {
    border-radius: 15px;
    scroll-behavior: hidden;
    width: 20%;
    height: 20%;
    margin-right: 20px;

}

.left-event h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    top: 0;
    right: 3px;

}

.left-event span {
    font-size: 12px;
    text-align: center;
    color: white;
    background: rgb(195, 75, 211);
    padding: 5px 10px;
    border-radius: 0 0 12px 12px;


}

.right-event h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: start;
    margin-top: 15px;
}

.right-event a {
    font-size: 15px;

    color: rgb(114, 114, 238);
    text-decoration: none;

}


.contianer .lefts-side .frst .ic {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: rgb(221, 89, 203);
}

.advrt-imgs {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
}

.title .link {
    text-decoration: none;
    font-size: 14px;
    color: rgb(151, 151, 233);
}

.maincontent {
    flex-basis: 47%;
    min-height: 150vh;

}

.online-list {
    display: flex;
    align-items: center;

}

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

.online-list p {
    font-size: 14px;
    color: #626262;
}

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


.storygalery {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.story {

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    aspect-ratio: 3 / 4;
    flex-basis: 18%;
    height: 200px;
    position: relative;
    border-radius: 11px;
    margin-right: 12px;

}


.story img {
    position: absolute;
    top: 3px;
    left: 10px;
    width: 35px;
    cursor: pointer;
    border: 2px solid #1876f2;
    border-radius: 50%;
}

.story p {
    display: flex;
    position: absolute;
    bottom: 5px;
    width: 100%;
    height: auto;
    left: 45px;
    font-size: 14px;
    text-align: center;
    color: rgb(255, 255, 255);

}

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

}

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

}

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

}

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

}

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


.write-poster {
    background: white;
    width: 98%;
    padding: 20px;

    color: #626262;
    border-radius: 6px;
}

.poster-container {
    display: flex;
    align-items: center;

}

.poster-container img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.poster-container p {

    font-weight: 500;
    color: #626262;
    cursor: pointer;
    color: #626262;
}

.poster-container small {
    font-size: 12px;
    cursor: pointer;
}

.input-text {
    padding-left: 55px;
    padding-top: 20px;


}

.input-text textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    background: transparent;
}

.poster-icons {
    display: flex;
    align-items: center;
    margin-top: 15px;

}

.poster-icons a {
    text-decoration: none;
    color: #626262;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-right: 30px;

}

.poster-icons a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.posts {
    width: 98%;
    background: white;
    color: #626262;
    margin-top: 15px;
    margin-bottom: 25px;
    padding: 25px;
}

.posts span {
    font-size: 12px;
    color: #c4b1b1;
}


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

.post-text span {
    color: #1876f2;
    cursor: pointer;
    font-weight: 500;
}

.post-text a {
    text-decoration: none;
    color: #1876f2;
    margin-right: 2px;

}

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

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

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

}

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

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

}

.post-profile img {
    width: 20px;
    border-radius: 50%;
    margin-right: 5px;
    align-items: center;
    justify-self: center;
}

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

.post-row a {

    margin-left: 400px;
    color: #9a9a9a;
}

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

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

.settings-menu {
    position: absolute;
    width: 280px;
    max-width: 350px;

    background: #ffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    top: 108%;
    right: 5%;
    max-height: 0;
    transition: max-height 0.3s;
    overflow: hidden;
}

.settings-menu-height {
    max-height: 500px;

}

.poster-container a {

    text-decoration: none;
    font-size: 12px;
    color: #1876f2;

}

.settings-ico {
    padding: 20px
}

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

}

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

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

.settings-link a {
    text-decoration: none;
    color: #626262;
    font-size: 14px;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    display: flex;

}

/* ===== Media Query for Small Devices ===== */
@media (max-width: 768px) {

  nav {
    flex-wrap: wrap;
    padding: 10px;
  }

  .logo {
    margin-left: 0;
    width: 120px;
  }

  .left-side ul {
    display: none; /* hide icons on small screens */
  }

  .right-side .searchbox {
    display: none; /* hide search box */
  }

  .contianer {
    flex-direction: column;
    padding: 10px;
  }

  .contianer .lefts-side,
  .contianer .rights-side {
    position: static;
    flex-basis: 100%;
    width: 100%;
    margin-bottom: 15px;
  }

  .maincontent {
    flex-basis: 100%;
    min-height: auto;
  }

  .storygalery {
    overflow-x: auto;
    gap: 10px;
  }

  .story {
    flex-basis: auto;
    min-width: 120px;
    height: 180px;
  }

  .posts,
  .write-poster {
    width: 100%;
    padding: 15px;
  }

  .post-row a {
    margin-left: 0;
  }

  .activity-icon div {
    margin-right: 15px;
  }

  .footer {
    font-size: 13px;
  }
}
