/* ibs-styles.css */

/* User Info Styles */
.ibs-user-info {
    margin-bottom: 20px;
}

.ibs-user-details p {
    margin: 5px 0;
}

.ibs-profile-pic img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tabs Styles */
.ibs-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow tabs to wrap to the next line on small screens */
    overflow: hidden;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
}

.ibs-tabs button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 15px; /* Slightly larger padding for easier touch */
    transition: 0.3s;
    font-size: 17px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-right: 2px;
}

.ibs-tabs button:hover, .ibs-tabs button.active {
    background-color: #ddd;
}

@media (max-width: 600px) {
    .ibs-tabs button {
        font-size: 15px; /* Slightly smaller font size on small screens */
        padding: 10px 12px; /* Adjust padding for smaller screens */
    }
}


/* Tab Content Styles */
.ibs-tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
}

#Stories {
    display: block;
}

/* Grid Styles */
.ibs-stories-grid, .ibs-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns with equal width */
    gap: 10px;
}

.ibs-story {
   width: 100%; 
    height:auto; /* Adjust height for posts */
    padding: 10px;
    display: flex;
    justify-content: center;
     flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
    overflow: hidden; /* Add this to prevent overflow */
}

.ibs-story:hover, .ibs-post:hover {
    transform: scale(1.05);
}

.ibs-story img, .ibs-post img , .ibs-story video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
     width: 100%; /* Make image/video take full width of the container */
    height: auto; /* Maintain aspect ratio */
}

/* Error Message Styles */
.ibs-error {
    color: red;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .ibs-profile-pic img {
        width: 80px;
        height: 80px;
    }

    .ibs-tabs button {
        padding: 15px 20px;
        font-size: 20px;
    }
    .ibs-story {
        width: 100%; /* Full width on smaller screens */
        height: auto; /* Adjust height automatically */
        padding: 5px;
    }
.ibs-post {
    width: 100%; /* Full width of the grid column */
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
    overflow: hidden; /* Prevent overflow */
    height: auto; /* Adjust height based on content */
}
.ibs-post img, .ibs-post video {
    width: 100%; /* Make image/video take full width of the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the entire area of the container */
}
   .ibs-stories-grid, .ibs-posts-grid {
        grid-template-columns: 1fr; /* Single column layout for very small screens */
    }

    .ibs-user-details p, .ibs-error {
        font-size: 16px;
    }
}
    /* Ensure that text doesn't appear too small */
    body {
        font-size: 16px;
    }
    .ibs-download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    text-decoration: none; /* No underline */
    border-radius: 4px; /* Rounded corners */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold font */
    text-align: center; /* Centered text */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

.ibs-download-btn:hover, .ibs-download-btn:focus {
    background-color: #0056b3; /* Darker blue on hover/focus */
    color: #fff; /* Maintain white text on hover/focus */
    text-decoration: none; /* No underline on hover/focus */
}
.ibs-story img, .ibs-post img, .ibs-story video, .ibs-post video {
    width: 100%; /* Make image/video take full width of the container */
    height: auto; /* Adjust height to maintain aspect ratio */
    object-fit: contain; /* Ensure content is fully visible */
}

.user-info-container {
    display: block;
    border: 1px solid black;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 20px;
}

.user-text-info {
    margin-left: 140px; /* Adjust this value if needed */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .profile-pic {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
    }

    .user-text-info {
        margin-left: 100px; /* Adjusted for smaller profile picture */
    }

    .user-info-container {
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .profile-pic {
        position: static;
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .user-text-info {
        margin-left: 0; /* Text now flows below the picture */
    }
}

   .ibs-form {
            text-align: center; /* Center align form contents */
            margin: 0 auto; /* Center the form on the page */
            max-width: 100%; /* Ensure it doesn't overflow on small screens */
        }
        .ibs-form input[type="text"] {
            width: 80%; /* Responsive width */
            margin-bottom: 10px; /* Space below the text input */
            padding: 8px; /* Padding inside the text input */
        }
        .ibs-form input[type="submit"] {
            width: 50%; /* Responsive width */
            padding: 10px; /* Padding inside the submit button */
            cursor: pointer; /* Pointer cursor on hover */
        }
        @media (max-width: 600px) {
            .ibs-form input[type="text"], .ibs-form input[type="submit"] {
                width: 90%; /* Wider inputs on smaller screens */
            }
        }
