/* 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: space-around; /* Adjusted for even spacing */
    flex-wrap: wrap; /* Allow tabs to wrap to the next line on small screens */
    overflow: hidden;
    background-color: white; /* Container background */
    border: 1px solid #ccc;
    border-bottom: none;
    width: calc(100% - 20px); /* Adjusted width to account for margins */
    border-radius: 10px; /* Rounded edges for the container */
    margin: 0 10px 10px 10px; /* Margins for top, right, bottom, and left */
}

.ibs-tabs button {
    background-color: white; /* Default background for buttons */
    color: black; /* Default font color for buttons */
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 15px; /* Slightly larger padding for easier touch */
    transition: 0.3s;
    font-size: 17px;
    border-radius: 8px; /* More pronounced rounded edges for buttons */
    margin: 5px; /* Gap between buttons and container */
    width: 40%; /* Button width set to 40% */
}

/* Active button styles */
.ibs-tabs button.active {
    background-color: blue; /* Active background */
    color: white; /* Active font color */
}

/* Responsive adjustments for mobile devices */
@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 */
    }
}




/* Responsive adjustments for mobile devices */
@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="submit"] {
    width: 30%; /* Smaller width for the submit button */
    padding: 10px; /* Padding inside the submit button */
    cursor: pointer; /* Pointer cursor on hover for the submit button */
}

.ibs-form input[type="text"] {
    width: 80%; /* Responsive width */
    margin-bottom: 10px; /* Space below the text input */
    padding: 8px; /* Padding inside the text input */
}

@media (max-width: 600px) {
    .ibs-form input[type="text"] {
        width: 90%; /* Wider text input on smaller screens */
        /* Add any additional styles for text input on smaller screens */
    }

    .ibs-form input[type="submit"] {
        width: 60%; /* Smaller submit button on smaller screens */
        /* Add any additional styles for submit button on smaller screens */
    }
}



/* profile view style */
.res_profile{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  .res_profile_main{
    width: 100%;
    padding: 10px;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .res_profile_profile-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid #ffffff40;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  }
  .res_profile_image{
    position: relative;
    height: 150px;
    width: 150px;
  }
  .res_profile_image .profile-pic{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  }
  .res_profile_data{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }
  .res_profile_data h2{
    font-size: 33px;
    font-weight: 600;
  }
  .res_profile_span{
    font-size: 18px;
  }
  .res_profile_row{
    display: flex;
    align-items: center;
    margin-top: 20px;
  }
  .res_profile_row .info{
    text-align: center;
    padding: 0 20px;
  }
  
.download-btn {
    display: block; /* Make the link a block element */
    width: max-content; /* Set the width to the content size */
    margin: 10px auto; /* Center align and add some space above and below */
    padding: 8px 15px; /* Padding inside the button */
    background-color: blue; /* Blue background */
    color: white; /* White text */
    text-align: center; /* Center the text inside the button */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from the link */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Make the font bold */
    cursor: pointer; /* Change cursor to pointer */
}

.download-btn:hover {
    background-color: #0056b3; /* Slightly darker blue on hover */
}