.profile-text {
    background-color: rgba(0, 0, 0, 0.6);  
    padding: 5px;  
    color: white;
    border-radius: 5px;                         
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sticky-field {
    position: sticky; border-radius: 5px;
    top: 20px;  z-index: 100;  margin-bottom: 20px;  
  }
  
.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}
.important-info{
    display: flex;
    justify-content: space-between;
    column-gap: 100px;
}
.ms-auto {
    margin-left: auto;
    align-items: flex-end;
}
.icon-wrapper {
    position: relative;
    margin: 0.5rem;
    cursor: pointer;
}
.icon-item {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.icon-item.fa-clock {
    color: #e3d8b6;
}
.icon-text {
    position: absolute;
    bottom: 100%; /* This will place the text just above the icon */
    left: 50%;
    transform: translateX(-50%); 
    display: none;
    padding: 0.2rem 0.4rem; 
    background-color: black;
    color: white;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 1;
    margin-bottom: 5px; /* Adjusts distance from icon */
}
.icon-arrow {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black; /* Arrow color */
    transform: translateX(-50%);
}
.icon-wrapper:hover .icon-item {
    transform: scale(1.1);
}

.icon-wrapper:hover .icon-text {
    display: block;
}

/* post area style *//* Style for the form wrapper */
#postForm {
    background-color: whitesmoke;  
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e1e4e8;  
    margin-bottom: 20px;  
}

/* Style for the textarea */
#postForm textarea {
    width: 100%;
    border: none;
    outline: none; 
    font-size: 15px;
    resize: vertical;  
    padding: 5px;
    border-radius: 5px;
    box-shadow: none;  
    background-color: transparent;  /* makes the textarea have the same background as the form */
}

/* Style for the placeholder text in the textarea */
#postForm textarea::placeholder {
    color: #777;
}

/* Style for the post button */
#submit-comment,
#postForm .btn {
    background-color: #1da1f2;  
    color: #ffffff;  
    font-weight: bold;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;  
    cursor: pointer;
    float: right;  
    font-size: 14px;  /* slightly smaller font size for the button to make it look more modern */
    transition: 0.3s;  /* smoothens the hover effect */
}

#postForm .btn:hover {
    background-color: #0c84d2;  /* a slightly darker shade of blue for hover effect */
}



/* This will handle positioning for the tooltip */
.comment-reaction-container,
.reaction-container {
    position: relative;
    display: inline-block;
}

/* Existing tooltip styles */
.reaction-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s linear;
    background-color: black;
    color: white;
    padding: 3px 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.8em;
    z-index: 1;
    margin-bottom: 5px;
}

.comment-reaction-container:hover .reaction-text,
.reaction-container:hover .reaction-text {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
/* reaction counts & comment-count*/
.comment-count,
.reaction-count {
    margin-left: 3px;   /* Space between the icon and the count */
    vertical-align: middle;  /* Aligns the count with the icon */
    font-size: 0.9em;   /* Optional: Adjust the font size if necessary */
}

/* New changes */

/* Default styles */
.like-icon ,
.dislike-icon {
    background-color: #000; color: #fff; border: none; padding: 4px 5px; border-radius: 4px;
    cursor: pointer; font-size: 16px; transition: background-color 0.3s; 
}

.like-icon:hover ,
.dislike-icon:hover{
    background-color: gold;
    color: #000;
}

/* Active styles */
.like-icon.selected, .dislike-icon.selected {
    background-color: gold;
    color: #000;
}

/* Additional styles for the container if you want some visual feedback when hovered */
.comment-reaction-container:hover,
.reaction-container:hover {
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 5px;
}

/* Comment styling */

.comments-container {
    max-height: 300px; /* Set your desired maximum height */
    overflow-y: auto;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
}

.comment-reply{
    padding: 0px 5px; border: none; color: white; background-color: black; border-radius: 5px;
  }
.comment-reply:hover {color: black;background-color: gold;}
  
.modal {
    display: none; position: fixed; z-index: 1; left: 0;
    top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: #fefefe; margin: 5% auto; padding: 20px; border: 1px solid #888;
    width: 90%; max-width: 600px; overflow-y: auto; /* Make the modal content scrollable */    
}

.column {
    display: inline-block;
    width: 48%; /* Adjust as needed for spacing */
    vertical-align: top;
    margin-right: 2%;
}

.columns-container {
    display: flex; flex-wrap: wrap; 
}

.modal img {
    width: 100%; cursor: pointer; margin-bottom: 10px;  
}

.btn-secondary {
    margin-bottom: 10px;
}
.gif{
    margin-right: auto; background-color: #e9ecef; border: 1px solid #c9ccce;
}
.emojionearea .emojionearea-editor {
    width: 100%; min-height: 6em; padding: 0.375rem 0.75rem;
    font-size: 1rem; line-height: 1; background-color: #ffffff;
    background-clip: padding-box; border: none; border-radius: 0.3rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;  
}
.bold-dots {
    font-weight: bold;
    color: black;
}

[class^="commentDiv_"]{
    display: none;
    position: fixed; /* Change position to fixed */
    bottom: 0; /* Set it to the bottom of the screen */
    left: 15;
    width: 80%;
    box-shadow: 0px -5px 10px rgba(160, 150, 126, 0.5);
    background-color: whitesmoke;
    z-index: 999;
    transform: translateY(100%); 
    transition: transform 0.3s ease;
    padding: 20px 20px 70px 10px;
    max-height: 95%; 
    min-height: 70%;
    border-radius: 10px; 
}

[class^="commentDiv_"].active {
    transform: translateY(0%); /* Move it up by 30% of the viewport height */
    display: block;
}
.section-title{display: flex;justify-content: space-between;font-size: small;padding: 5px;
align-items: center;box-shadow: 0px 0px 2px rgba(211, 162, 38, 0.5);}
.section-title button{ border: none;font-weight: bold;color: rgb(254, 253, 253); padding: 0px 5px; border-radius: 5px;background-color:#6d757a;}
body.commentDiv-open {
    overflow: hidden; /* Prevent scrolling when commentDiv is open */
}
[id^="replyForm_"],
[id^="commentForm_"]{ display: flex; width: 100%; box-shadow: 0px 0px 10px rgba(84, 76, 57, 0.5); border-radius: 5px; 
    position: relative; padding: 5px 10px 5px 5px; background-color: white;}
[id^="replyForm_"] .btn-style, 
[id^="commentForm_"] .btn-style{font-size:20px; color:white; background-color:#0c84d2;padding:0px 5px; border-radius:5px; font-weight:bold;}
[id^="replyForm_"] textarea, [id^="commentForm_"] textarea{border: none;border-radius: 5px;width: 100%;padding: 5px;}
.list-group-item{
    border-radius: 5px; position: relative; left: 5px; padding: 0.5rem 0.5rem 0.1rem 0.5rem;
    margin: 5px 5px; box-shadow: 0px 0px 3px rgba(16, 16, 15, 0.5); 
}
[id^="commentsList_"]{max-height: 450px; min-height: 150px; overflow-y: auto; 
box-shadow: 0px 0px 2px rgba(211, 162, 38, 0.5); left: 1px; padding: 5px 15px 5px 5px; }

@media (max-width: 768px){
    [class^="commentDiv_"]{
      left: 0;
      width: 100%;
    }
  }

  .popup-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(167 163 168 / 50%);
    justify-content: center;
    align-items: center;z-index: 999999;
}

.popup-content {
    background-color: rgb(42 44 49);
    padding: 20px;
    border-radius: 5px; color:gold; 
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height:200px;
    font-size:20px;
    margin: auto;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}