html {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); /* Match body background */
    height: 100%;
}

body, html {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    font-family: Arial, sans-serif;
    height: 100%;
}

#scrollToTopBtn {
    position: fixed;
    top: 20px;
    margin-bottom: 20px;
    right: calc(50% - 300px - 20px);
    padding: 15px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

.feed {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    overflow: hidden;
}

.timeline-feed {
    max-width: 500px;
    max-height: 500px;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.user-block {
    display: flex;
    align-items: center;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-info {
    display: flex;
    align-items: center;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.username {
    font-weight: bold;
    margin-right: 5px;
}

.verification-badge {
    width: 15px;
    height: 15px;
}

.follow-text {
    color: #1F99DF;
    font-size: 1em;
    margin-left: 10px;
    text-decoration: none;
}

.location {
    font-size: 0.8em;
    color: #666;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.post-image-container {
    width: 100%; /* Ensures that the image container fills the width of the .feed */
    display: flex;
    justify-content: center;
}

.post-image, .carousel-images img {
    width: 100%; /* Ensures images fill the container's width */
    object-fit: contain; /* Scales the images correctly to fit the container without cropping */
    height: auto; /* Adjusts height automatically to maintain the aspect ratio */
}

.carousel-control {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.8);
    z-index: 2;
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.interaction-icons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px 15px;
}

.like-icon, .comment-icon, .share-icon, .bookmark-icon {
    width: 25px;
    height: 25px;
    opacity: 0.8;
}

.caption {
    padding: 15px;
}

.divider::after {
    content: '';
    display: block;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 20px 50px;
}

.annotation {
    display: block;
    margin-top: 10px;
    position: relative;
}

.annotation::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    border: solid transparent;
    border-bottom-color: #888;
    border-width: 10px;
    margin-left: -10px;
}

.text-feed {
    max-width: 600px;
    margin: 40px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    overflow: hidden;
}

.text-block {
    padding: 30px;
    font-size: 2rem;
    color: #333;
    font-family: 'DM Sans', sans-serif;
}

.body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background-color: #f4f4f4;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 95vh;
        }

.h1 {
            color: #5a5a5a;
        }

.audio {
            width: 100%; /* Full width */
            max-width: 600px; /* Maximum width */
            outline: none;
            opacity: 0.8;
            transition: opacity 0.3s ease;
}

