   
body{
    margin-top: 40px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.like-btn .fa-heart {
    color: #ccc; /* Default color for unliked heart */
    transition: color 0.3s;
}

.like-btn .fa-heart.liked {
    color: #00FF00; /* Color for liked heart */
}
/* Like and Share Button Container */
.like-share-buttons {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between like and share buttons */
}

.like-btn, .share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px; /* Adjust size as needed */
    color: #333; /* Icon color */
    transition: color 0.3s;
}

.like-btn .liked, .share-btn:hover {
    color: #00FF00; /* Change color when liked or hovered */
}

.like-btn i, .share-btn i {
    font-size: 24px; /* Icon size */
}

.like-count {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Description and Date Styling */
/* The Modal (background) */
.comment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Content */
.comment-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Comments and Form Styling */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}
.comment-form {
    display: flex;
    align-items: center;
}

.input-container {
    display: flex;
    align-items: center;
    width: 100%; /* Takes the full width of the form */
}

.input-container input[type="text"] {
    flex: 1; /* Ensures the input field takes up available space */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px; /* Adds space between input and button */
}

.input-container button {
    padding: 8px 12px;
    border: none;
    background-color: #0073e6;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.input-container button:hover {
    background-color: #005bb5;
}
.options-dropdown {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: none;
}
.notification-toast {
  display: none;
}
.feed-container .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin-bottom: 20px;
    overflow: hidden;
}

.feed-container .card .profile {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.feed-container .card .profile .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.feed-container .card .media {
    width: 100%;
    height: 300px; /* Set a fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow to maintain aspect ratio */
}

.feed-container .card .media video,
.feed-container .card .media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain aspect ratio, avoiding distortion */
}


.feed-container .card .details {
    padding: 10px;
    border-top: 1px solid #ddd;
}

.feed-container .card .details .text-description {
    font-size: 14px;
    margin: 0;
}

.feed-container .card .details .text-date {
    font-size: 12px;
    color: #888;
    margin: 5px 0;
}

.feed-container .card .interactions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

.feed-container .card .interactions button {
   
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.feed-container .card .interactions .like {
    color: #333; /* Default color for the like button */
    transition: color 0.3s;
}

.feed-container .card .interactions .like.liked ion-icon {
    color: #28a745; /* Green color for the liked state */
}


.feed-container .card .interactions .like ion-icon {
    font-size: 24px;
    margin-right: 5px;
}

.feed-container .card .interactions .comment {
    background-color: #00FF00; /* Original background color */
    transition: background-color 0.3s, background-image 0.3s; /* Smooth transition effect */
}

.feed-container .card .interactions .comment:hover {
    background-image: linear-gradient(to right, #4caf50, #81c784); /* Green gradient */
    background-color: transparent; /* Ensure the solid color is overridden by the gradient */
    color: #fff; /* Change text color to white for better contrast on gradient */
}


.feed-container .card .interactions .share {
    background-color: #17a2b8;
}

.feed-container .card .interactions .share:hover {
    background-color: #117a8b;
}
/* CSS for Comment Input Text Box and Send Icon ************************************************************/

/* Responsive Styles */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it is above other content */
}

.fullscreen img, .fullscreen video {
    max-width: 90%; /* Allow the media to be responsive */
    max-height: 90%; /* Keep the media within the viewport */
    object-fit: contain; /* Maintain aspect ratio */
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001; /* Ensure the close button is above the media */
}

/* For mobile devices (portrait and landscape) */
@media (max-width: 480px) {
    body {
        margin-top: 0;
        overflow-x: hidden;
        background-color: #e8e8e8;
    }

    .feed-container {
        display: block;
        margin: 0;
        padding: 0;
        overflow: visible;
        scroll-behavior: smooth;
        background-color: #e8e8e8;
    }

    .feed-container .card {
        width: calc(100% - 20px);
        min-height: 100vh;
        max-height: 100vh;
        margin: 0 auto 60px auto;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.8);
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        border: 1px solid #e0e0e0;
        border-top: none;
    }

    .feed-container .card .profile {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        padding: 6px 12px;
        pointer-events: auto;
        background: transparent;
        border-bottom: 1px solid #e0e0e0;
    }

    .feed-container .card .profile .avatar {
        width: 32px;
        height: 32px;
        margin-right: 10px;
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.2s ease;
        border: none;
        object-fit: cover;
    }

    .feed-container .card .profile .avatar:hover {
        transform: scale(1.05);
    }

    .feed-container .card .profile a {
        display: inline-block;
        text-decoration: none;
        color: inherit;
    }

    .feed-container .card .profile .username {
        color: #000000 !important;
        font-weight: 600;
        font-size: 14px;
        margin: 0;
        text-decoration: none;
    }

    .feed-container .card .media {
        width: 100%;
        height: calc(100vh - 250px);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f8f8f8;
        position: absolute;
        top: 32px;
        bottom: 160px;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .feed-container .card .media video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
        pointer-events: auto;
        background-color: #000;
    }

    .feed-container .card .media video::-webkit-media-controls {
        z-index: 1000;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .feed-container .card .media video::-webkit-media-controls-panel {
        background: rgba(0, 0, 0, 0.75) !important;
        display: flex !important;
    }

    .feed-container .card .media video::-webkit-media-controls-play-button,
    .feed-container .card .media video::-webkit-media-controls-mute-button,
    .feed-container .card .media video::-webkit-media-controls-volume-slider,
    .feed-container .card .media video::-webkit-media-controls-timeline {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .feed-container .card .media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: auto;
        background-color: #000;
    }

    .feed-container .card .media-comments-container {
        width: 100%;
        height: calc(100vh - 180px);
        position: absolute;
        top: 50px;
        bottom: 130px;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .feed-container .card .interactions {
        display: none;
    }

    .feed-container .card .interactions button {
        background: transparent !important;
        backdrop-filter: none;
        border: none !important;
        border-radius: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        transition: all 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: none;
    }

    .feed-container .card .interactions button:hover {
        background: transparent !important;
        transform: scale(1.1);
        box-shadow: none;
    }

    /* Remove hover effects for share and comment buttons only */
    .feed-container .card .interactions .share-btn:hover,
    .feed-container .card .interactions .comment-btn:hover {
        background: transparent !important;
        transform: scale(1.1);
    }

    .feed-container .card .interactions .like-btn,
    .feed-container .card .interactions .share-btn,
    .feed-container .card .interactions .comment-btn {
        position: relative;
    }

    .feed-container .card .interactions .like-btn i {
        font-size: 32px;
        color: #000000 !important;
        pointer-events: none;
        filter: none;
    }

    .feed-container .card .interactions .like-btn .liked,
    .feed-container .card .interactions .like-btn i.liked {
        color: #ff0000 !important;
        font-size: 32px !important;
    }

    .feed-container .card .interactions .share-btn i,
    .feed-container .card .interactions .comment-btn i {
        font-size: 32px;
        color: #000000 !important;
        pointer-events: none;
    }

    /* Ensure all buttons are visible with white icons */
    .feed-container .card .interactions .share-btn,
    .feed-container .card .interactions .comment-btn {
        display: flex !important;
        visibility: visible !important;
    }

    .feed-container .card .interactions .share-btn i,
    .feed-container .card .interactions .comment-btn i {
        color: #000000 !important;
        display: block !important;
        filter: none !important;
        font-size: 32px !important;
    }

    /* All buttons have transparent background */
    .feed-container .card .interactions .share-btn,
    .feed-container .card .interactions .comment-btn {
        background-color: transparent !important;
        border: none !important;
    }

    /* Like button icon styling */
    .feed-container .card .interactions .like-btn i.fa-solid {
        color: #fff !important;
    }

    /* Share and Comment buttons have white background with BLACK icons */
    .feed-container .card .interactions .share-btn i.fa-share,
    .feed-container .card .interactions .comment-btn i.fa-pen-to-square,
    .feed-container .card .interactions .share-btn i.fa-solid,
    .feed-container .card .interactions .comment-btn i.fa-solid {
        color: #000000 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Make absolutely sure share and comment icons are BLACK */
    .feed-container .card .interactions button.share-btn i,
    .feed-container .card .interactions button.comment-btn i {
        color: #000000 !important;
    }

    .feed-container .card .details {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 8px 15px 50px 15px;
        z-index: 1;
        pointer-events: none;
        min-height: 140px;
        max-height: 160px;
        border-top: 1px solid #e0e0e0;
        display: block;
    }

    .feed-container .card .details * {
        pointer-events: auto;
    }

    .feed-container .card .details .like-count {
        color: #000000;
        font-weight: 600;
        margin-bottom: 6px;
        font-size: 14px;
        display: block;
    }

    .feed-container .card .details .text-description {
        color: #000000;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .feed-container .card .details .text-date {
        color: #8e8e8e;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Instagram-style smooth scrolling */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .feed-container .card {
        scroll-snap-align: start;
    }

    /* Add smooth snap scrolling effect */
    @supports (-webkit-overflow-scrolling: touch) {
        .feed-container {
            -webkit-overflow-scrolling: touch;
        }
    }

    /* Ensure buttons are always visible */
    .feed-container .card .interactions {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .feed-container .card .interactions button {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* Make sure all icons inside buttons are visible */
    .feed-container .card .interactions button i {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 32px !important;
    }

    /* Share and Comment button icons are BLACK */
    .feed-container .card .interactions .share-btn i.fa,
    .feed-container .card .interactions .share-btn i.fa-solid,
    .feed-container .card .interactions .comment-btn i.fa,
    .feed-container .card .interactions .comment-btn i.fa-solid {
        color: #000000 !important;
        font-size: 32px !important;
    }

    /* Ensure video controls are always accessible */
    .feed-container .card .media video::-webkit-media-controls-panel {
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 9999;
    }

    .feed-container .card .media video::-webkit-media-controls-play-button {
        z-index: 9999;
    }

    .feed-container .card .media video::-webkit-media-controls-volume-slider {
        z-index: 9999;
    }

    .input-container {
        flex-direction: column;
        width: 100%;
    }

    .send-icon {
        font-size: 20px;
        margin-left: 0;
    }

    .send-icon ion-icon {
        font-size: 20px;
    }
}

/* For tablets */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        margin-top: 0;
        overflow-x: hidden;
    }

    .feed-container {
        display: block;
        margin: 0;
        padding: 0;
        overflow: visible;
        scroll-behavior: smooth;
    }

    .feed-container .card {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: #000;
        display: flex;
        flex-direction: column;
        position: relative;
        border-bottom: 2px solid #000;
    }

    .feed-container .card .profile {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 10;
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 30px;
    }

    .feed-container .card .profile .avatar {
        width: 50px;
        height: 50px;
        margin-right: 12px;
        border: 2px solid #fff;
    }

    .feed-container .card .profile .username {
        color: #fff;
        font-weight: bold;
        font-size: 16px;
    }

    .feed-container .card .media {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #000;
        flex: 1;
    }

    .feed-container .card .media video,
    .feed-container .card .media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .feed-container .card .interactions {
        position: absolute;
        right: 20px;
        bottom: 100px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        z-index: 10;
    }

    .feed-container .card .interactions button {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.3s ease;
    }

    .feed-container .card .interactions .like-btn i,
    .feed-container .card .interactions .share-btn i,
    .feed-container .card .interactions .comment-btn i {
        font-size: 26px;
        color: #fff;
    }

    .feed-container .card .interactions .like-btn .liked {
        color: #ff0000;
    }

    .feed-container .card .details {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding: 20px 20px 120px 20px;
        z-index: 10;
    }

    .feed-container .card .details .like-count {
        color: #fff;
        font-weight: bold;
        margin-bottom: 12px;
        font-size: 16px;
    }

    .feed-container .card .details .text-description {
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .feed-container .card .details .text-date {
        color: #ccc;
        font-size: 12px;
    }

    .feed-container .card .details .like-share-buttons {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 8px;
        padding: 4px 0;
    }

    .feed-container .card .details .like-share-buttons button {
        background: transparent !important;
        border: none !important;
        border-radius: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.3s ease;
        cursor: pointer;
        box-shadow: none;
    }

    .feed-container .card .details .like-share-buttons button i {
        font-size: 28px;
        color: #000000 !important;
    }

    .feed-container .card .details .like-share-buttons .like-btn i.liked {
        color: #ff0000 !important;
    }

    .input-container {
        width: 100%;
    }

    .send-icon {
        font-size: 22px;
    }

    .send-icon ion-icon {
        font-size: 22px;
    }
}

/* For desktops and larger screens */
@media (min-width: 769px) {
    .feed-container .card {
        width: 80%;
        margin-bottom: 20px;
    }

    .feed-container .card .media {
        height: 300px;
    }

    .feed-container .card .details .text-description {
        font-size: 14px;
    }

    .feed-container .card .details .text-date {
        font-size: 12px;
    }

    .feed-container .card .interactions button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .feed-container .card .interactions .like ion-icon {
        font-size: 24px;
    }

    .feed-container .card .interactions .comment {
        font-size: 14px;
    }

    .feed-container .card .interactions .share {
        font-size: 14px;
    }



    .input-container {
        width: 100%;
    }


    .send-icon {
        font-size: 24px;
    }

    .send-icon ion-icon {
        font-size: 24px;
    }


}
