@media (max-width: 600px) {
    .results-section img {
        max-width: 250px !important;
        width: 100%;
        height: auto !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    /* Hide elements with .hide-on-mobile on small screens */
    @media (max-width: 600px) {
        .hide-on-mobile {
            display: none !important;
        }
    }

    }
}
.upload-section {
    border: 2px solid #f0f0f0;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 376px;  /* Limit the maximum width */
    height: 400px;  /* Set a fixed height */
    width: 80%; /* Adjust the width as needed */
    position: relative;  /* Add relative positioning */
    border-radius: 8px; /* Add rounded corners */
}
.upload-section:hover {
    background-color: #f8f9fa;
}
.preview-img {
    width: 100%;  /* Set the image width to 100% of the upload section */
    display: none;
    margin-top: 10px;  /* Add margin to separate from the text */
    transition: opacity 0.5s ease;  /* Add transition for fading effect */
}
.container {
    max-width: 700px;  /* Increase the maximum width of the container */
}
.btn-custom {
    width: 100%;  /* Set the button width to 100% */
}
.reset-button {
    max-width: 300px;  /* Limit the maximum width to match the upload section */
    width: 100%;  /* Set the width to 100% */
}
.content {
    flex: 1;
}
.faded {
    opacity: 0.5;  /* Set opacity to 50% for fading effect */
}
.results-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* Prevent horizontal scroll */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.subsection {
    margin-bottom: 20px;
}
.subsection table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap; /* Prevent text wrapping */
}
.subsection th, .subsection td {
    padding: 10px;
    text-align: left;
    font-size: 0.875rem; /* Adjust font size to fit text on one line */
}
.subsection th {
    background-color: #343a40;
    color: #fff;
    border-radius: 4px 4px 0 0;
}
.subsection td {
    border: none; /* Remove border */
    background-color: #fff; /* Set background color to white */
}
/* Remove the alternating row colors */
.subsection tr:nth-child(even) {
    background-color: #fff; /* Set background color to white */
}
#imageresultsSection {
    overflow: visible; /* Ensure content is not clipped */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    height: auto;
}

.same-size-button {
    width: 100%; /* Ensure all buttons take up the full width of their container */
    max-width: 300px; /* Optionally set a maximum width for consistency */
}
