.close-stories {
    width: 3rem;
    height: 3rem;
    position: relative;
    border-radius: 50%;
    display: flex;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0.25;
    float: right;
}

.close-stories:hover {
    opacity: 0.5;
}

.close-stories:active {
    opacity: 1;
    transform-origin: center;
    transform: scale(0.95);
}

.close-stories:before,
.close-stories:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 60%;
    height: 2px;
    background: #fff;
    content: " ";
    z-index: 0;
    transform-origin: center;
    transform: rotate(45deg);
}

.close-stories:before {
    transform: rotate(-45deg);
}

.close-stories:hover {
    opacity: 0.5;
}

.close-stories:active {
    opacity: 1;
    transform-origin: center;
    transform: scale(0.95);
}

.wrap-story-page-preview,
.wrap-story-page {
    display: none;
}

.text-input {
    flex: 1;
}

#selected-images-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-container {
    margin: 5px;
    position: relative;
}

.image-container img {
    max-width: 100px;
    max-height: 100px;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.remove-btn:hover {
    opacity: 1;
}

.post-text-delete {
    margin-left: auto;
    margin-top: -52px
}

.post-text-delete span a {
    color: #797979 !important;
    text-decoration: none !important;
    font-size: 24px !important;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: 0.2s linear all;
}

.post-text-delete span a:hover {
    background: #EEE;
}
.post-text-delete span i {
    margin-top: -10px;
}
.post-share {
    border: 1px solid #eee;
    border-radius: 20px;
}
.post-share .post-person-avatar {
    width: 2.4rem !important;
    height: 2.4rem !important;
}
.feed .feed-posts .feed-post .post-summary.post-summary-share {
    border-top:none !important;
    padding-top: 0 !important;
}

.post-abilities {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bt.like-feed-comment,
.bt.reply-feed-comment {
    cursor: pointer;
}

.bt.like-feed-comment.comment-like {
    color: #74b3dc !important;
    font-weight: 600;
}

.bt.like-feed-comment:hover,
.bt.reply-feed-comment:hover {
    background: #f3f1f1;
}

.see-more-comment {
    font-size: 1rem;
    cursor: pointer;
    margin-top: -10px;
}

.see-more-comment:hover {
    text-decoration: underline;
}

.feed-sidebar-account .btn-outline-primary {
    border: solid 1px #5bcefa !important;
    padding: 0.25rem 0.75rem;
}

.feed-sidebar-account .btn-outline-primary {
    border: solid 1px #5bcefa !important;
    padding: 0.25rem 0.75rem !important;
}

.feed .feed-posts .feed-post .post-content .post-content-images a {
    width: auto;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: 50%;
    max-width: calc(50% - var(--gap));
    border-radius: 1rem;
    /* margin: var(--gap) 0 0 var(--gap); */
    margin: 0 5px;
}

.feed .feed-posts .feed-post .post-content .post-content-images img {
    /* max-width: calc(100% - var(--gap)) !important; */
    max-width: 100% !important;
}

.own-store-feed img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
}

.own-store-feed h3 {
    font-size: 1rem;
}

.own-store-feed {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.block-own-story-feed {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
}

.header-own-store-feed h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.header-own-store-feed,
.own-store-feed {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.menu-own-story-feed {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.menu-own-story-feed .close {
    font-size: 20px;
    color: #ffffff;
    background: #ccc;
    margin-top: 0px;
}

.menu-own-story-feed .wrap-close {
    width: 40px;
    height: 40px;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
}

.menu-own-story-feed .wrap-close:hover {
    opacity: 0.5;
}

.icon-own {
    width: 40px;
    height: 40px;
}

.icon-own img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.block-confirm-story {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 1rem;
}

.block-confirm-story .group-btn-story {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.block-confirm-story .group-btn-story .sumbit-story {
    padding: 8px 15px;
    background: #5bcefa;
    color: #ffffff;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}

.sumbit-story:hover {
    opacity: 0.8;
    transition: all 0.2s;
}

.block-confirm-story .group-btn-story .discard-story {
    padding: 8px 46px;
    background: #ccc;
    color: #3a3a3a;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}

.discard-story:hover {
    opacity: 0.8;
    transition: all 0.2s;
}

.col-right-menu-store {
    position: relative;
}

.image-container img {
    max-width: 100px;
    max-height: 100px;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.remove-btn:hover {
    opacity: 1;
}

.post-text-delete {
    margin-left: auto;
    margin-top: -52px
}


.bt.like-feed-comment,
.bt.reply-feed-comment {
    cursor: pointer;
}

.bt.like-feed-comment.comment-like {
    color: #74b3dc !important;
    font-weight: 600;
}

.bt.like-feed-comment:hover,
.bt.reply-feed-comment:hover {
    background: #f3f1f1;
}

.warp-txt-see-more,
.warp-txt-see-less {
    padding: 0px 0px 0px 0px;
    margin-top: -0.6rem;
    margin-bottom: 20px;
}

.comment-replies .warp-txt-see-more,
.comment-replies .warp-txt-see-less {
    padding: 0px 0px 0px 0px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 0.6rem;
}

.see-more-comment,
.see-less-comment {
    font-size: 15px;
    color: rgb(101, 103, 107);
    cursor: pointer;
    color: #5bcefa!important;
}

.see-more-comment:hover,
.see-less-comment:hover {
    text-decoration: underline;
}

.tagged-user {
    font-weight: bold;
    color: black;
    padding-left: 1rem
        /* หรือสีที่คุณต้องการ */
}

.reply-comment-detail {
    /* padding-left: 1rem; */
}

.reply-detail {
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    color: #333;
}
.reply-detail-container {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
}

.feed-profile-sidebar img {
    width: 3rem;
    height: 3rem;
}

.post-reply-details a strong:hover {
    color: #5bcefa !important;
}

.url-username-feed a strong:hover {
    color: #5bcefa !important;
}

a {
    text-decoration: none;
}

.additional-count {
    cursor: pointer;
    color: #007bff;
    /* Change to your desired color */
    margin-top: 10px;
    /* Adjust the margin as needed */
}

/* Optional hover effect */
.additional-count:hover {
    text-decoration: underline;
}

.wrap-rightbar-uploadimg {
    width: 100%;
    height: 40rem;
    background: #f3f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page {
    margin: 1em auto;
    max-width: 768px;
    height: 100%;
}

.imgContainer {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.imgPreview {
    border-radius: 50%;
    margin-left: 20px;
}

.cropper-view-box {
    border-radius: 50%;
    outline: none;
}

.cropper-face.cropper-move {
    opacity: 0;
}

.ep-slider-bar {
    margin-top: 20px;
}

.warp-upload-story-modal {
    width: 300px;
    height: 500px;
    background: rgb(238, 174, 202);
    background: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.warp-upload-story-modal:hover {
    opacity: 0.8;
    transition: all 0.2s;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.warp-upload-story-modal span,
.warp-upload-story-modal i {
    color: #ffffff;
}

.preview-img-uploads {
    width: 100%;
}

.img-preview-up-story {
    padding: 1rem;
    margin: 3rem;
    border: 1px solid #e4dcdc;
    border-radius: 12px;
}


/* Add this to your CSS file or style section in your HTML */

/* Loading spinner */
.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Container for the loading spinner */
.loading-container {
    text-align: center;
    padding: 20px;
}




.close-stories {
    width: 3rem;
    height: 3rem;
    position: relative;
    border-radius: 50%;
    display: flex;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0.25;
    float: right;
}

.close-stories:hover {
    opacity: 0.5;
}

.close-stories:active {
    opacity: 1;
    transform-origin: center;
    transform: scale(0.95);
}

.close-stories:before,
.close-stories:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 60%;
    height: 2px;
    background: #fff;
    content: " ";
    z-index: 0;
    transform-origin: center;
    transform: rotate(45deg);
}

.close-stories:before {
    transform: rotate(-45deg);
}

.close-stories:hover {
    opacity: 0.5;
}

.close-stories:active {
    opacity: 1;
    transform-origin: center;
    transform: scale(0.95);
}

.wrap-story-page-preview,
.wrap-story-page {
    display: none;
}

.text-input {
    flex: 1;
}

#selected-images-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-container {
    margin: 5px;
    position: relative;
}

.image-container img {
    max-width: 200px;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #9b9393;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
    width: 30px;
    border-radius: 50%;
    transition: opacity 0.3s;
    height: 30px;
}

.remove-btn:hover {
    opacity: 1;
}

.post-text-delete {
    margin-left: auto;
    margin-top: -52px
}

.post-text-delete span a {
    color: #ff0000;
    text-decoration: none;
    font-size: 13px;

}

.bt.like-feed-comment,
.bt.reply-feed-comment,
.bt.reply-comment-like {
    cursor: pointer;
}

.bt.like-feed-comment.comment-like,
.bt.reply-comment-like.comment-like {
    color: #74b3dc !important;
    font-weight: 600;
}

.bt.like-feed-comment:hover,
.bt.reply-feed-comment:hover,
.bt.reply-comment-like:hover {
    background: #f3f1f1;
}

.tagged-user {
    font-weight: bold;
    color: black;
    padding-left: 1rem
        /* หรือสีที่คุณต้องการ */
}

.post-reply-comment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* margin-bottom: 1rem; */
}
.post-reply-comment + .post-reply-comment {
    margin-top: 1rem;
}
.post-reply-comment:last-child {
    margin-bottom: 0;
}

.post-reply-comment .post-reply-avatar {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #5BCEFA;
}

.post-reply-comment .post-comment-reply-avatar {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #5BCEFA;
}

.post-reply-comment .post-reply-details {
    padding-left: 1rem;
}

.post-reply-comment .post-reply-details a {
    text-decoration: unset;
    color: #1f1f1f;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-reply-comment .post-reply-details p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(31, 31, 31, 0.5);
}

.post-reply-comment .post-reply-details strong {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8rem;
    color: #1f1f1f;
}

.post-reply-comment .post-reply-details span {
    font-size: 0.8rem;
    color: rgba(31, 31, 31, 0.5);
    /* cursor: pointer; */
}

.detail-comment-reply {
    padding-left: 3.5rem;
}


/* Feed reply */
.comment-reply-container {
    display:flex;
}
.comment-replies {
    display: flex;
    flex-direction: column;
    margin-left: 29px;
}
.comment-reply {
    display: flex;
    align-items: flex-start;
    /* padding-bottom: 1rem; */
    /* padding-left: 12px; */
    /* padding-top: 16px; */
    gap: 0.8rem;
    border-left: 1px solid #f0f2f5;
}
.comment-reply.reply-last {
    border-left: none;
}
.reply-user-avatar {
    margin-top: 14px;
}
/* .comment-reply + .comment-reply {
    margin-top: 1rem;
} */

.feed .feed-posts .feed-post .post-thread .post-replies .post-reply {
    gap: 0.8rem;
    margin-left: 0.8rem;
    padding-top: 0.8rem;
}

.feed .feed-posts .feed-post .post-thread .post-replies .post-reply .post-reply-details {
    display: flex;
    flex-direction: column;
    background: #ebf7fa;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    color: #333;
}
.feed .feed-posts .feed-post .post-thread .post-replies .post-reply .post-reply-details p {
    color: #1f1f1f;
    font-size: 1rem;
}

.feed .feed-profile-sidebar {
    background: none;
    border-radius: 0;
    padding: 0;
}

.feed .feed-card {
    padding: 1.5rem;
    background: #FFF;
    border-radius: 1rem;
}

.feed .feed-card h3 {
    margin-bottom: 0.6rem;
}
.feed .feed-card .feed-card-detail {
    font-size: 0.8rem;
    color: #696969;
}

.feed .feed-card .feed-trend {
    padding: 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
}

.feed .feed-card .feed-trend:hover {
    background: #f2f3f4;
}

.feed .feed-card .feed-trend p {
    margin: 0;
}

.feed .feed-card .feed-trend-title {
    color: #5BCEFA;
    font-size: 1rem;
    font-weight: bold;
}

.feed .feed-card .feed-trend-count {
    color: rgba(31, 31, 31, 0.5);
    font-size: 0.75rem;
}


/* . {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8rem;
    color: rgba(31, 31, 31, 0.5);
} */

.url-username-feed a strong:hover {
    color: #5bcefa !important;
}

a {
    text-decoration: none;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-container .slide {
    min-width: 100vw;
    height: 100vh;
    box-sizing: border-box;
}

.slider-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#loadingBarContainer {
    width: 100%;
    height: 4px;
    border: 1px solid #ccc;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    background: #ccc
}

#loadingBar {
    height: 100%;
    width: 0;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

.reply-comment-ml {
    margin-left: 12px;
}


#gifContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gifImage {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.gifImage:hover {
    transform: scale(1.1);
}

#gifTextarea {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.post-content-img img {
    width: 90%;
    height: auto;
}

.share-social {
    border: 1px solid #eee;
}
.social-links {
    list-style: unset !important;
    padding: 0 0.4rem;
    margin-bottom: 2px;
}

.social-links li {
    padding: 0;
}

.social-links a {
    color: #212529;
    font-size: 0.8rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    gap: 0.4rem;
    transition: 0.3s all linear;
}
.social-links a img {
    height: 15px;
}
.social-links a:hover {
    color: #5bcefa;
    background: #effaff;
}

.container-modal h5 {
    margin: 1rem 0;
}
.container-modal .close {
    margin-top: -32px;
}
.show-post .post-content-text .feed-description {
    /* border: 1px solid #eee; */
    padding: 1.5rem 1.5rem;
    /* background: #fff; */
    border-radius: 1rem;
    margin-top: 1rem;
}
.feed-post .post-content .post-content-text .feed-description .read-more,
.feed-post .post-content .post-content-text .feed-description .read-less {
    color: #b5b5b5 !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
}
.feed-post .post-content .post-content-text .feed-description .read-less {
    margin-top: 1rem;
    display: inline-block;
}
.feed-share {
    flex-wrap: initial !important;
}
.share-feed-container {
    width: inherit;
}

.container-modal {
    max-width: 500px !important;
}
.post-bg-select #description {
    overflow-y: auto !important;
}

.feed-profile-sidebar .feed-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.feed-profile-sidebar .feed-head img {
    width: 20px;
    height: 20px;
}


@media only screen and (max-width: 600px) {
    .container-modal {
        width: 100%;
    }
}
