@media (max-width: 769px) {

    .modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;

    }

    .room-title-and-description {

    }
    .room-group {
      background-color: #2e3b4e;

    }
    #progressText, #roomFoundCount, #progressBar, #roomFoundContainer {
        color: black; /* Set text color to black */
    }

    #progressContainer label {
        color: black; /* Set text color to black */
    }

    /* General styles for the section */
    .terms {
        background-color: #f9f9f9; /* Light background */
        padding: 30px; /* Adds padding around the terms section */
        border-radius: 8px; /* Rounded corners */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
        line-height: 1.6; /* Improves readability */
        color: #333; /* Darker text color for readability */
        font-family: Arial, sans-serif; /* Clean, modern font */
    }

    /* Headings */
    .terms h2 {
        font-size: 2rem;
        color: #0056b3; /* Main color */
        margin-bottom: 20px;
        text-align: center; /* Centers main title */
    }

    .terms h3 {
        font-size: 1.6rem;
        color: #333;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .terms h4 {
        font-size: 1.4rem;
        color: #666; /* Slightly lighter color for subsection titles */
        margin-top: 15px;
        margin-bottom: 10px;
    }

    /* Paragraphs */
    .terms p {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #555;
    }

    /* Lists */
    .terms ul {
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .terms li {
        margin-bottom: 8px;
    }

    /* Links */
    .terms a {
        color: #0056b3;
        text-decoration: none;
        font-weight: bold;
    }

    .terms a:hover {
        text-decoration: underline;
    }


    .dropdown-help {
        margin-top: 20px;
        width: 100%;
    }

    .dropdown-btn {
        background-color: #0056b3;
        color: white;
        padding: 15px;
        font-size: 18px;
        border: none; /* Remove border to prevent unwanted lines */
        cursor: pointer;
        width: 100%;
        text-align: left;
        outline: none;
        font-weight: bold;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: none; /* Remove any shadow that might create extra lines */
    }

    .dropdown-btn:hover {
        background-color: #004080;
    }

    .dropdown-btn i {
        margin-left: 10px;
        transition: transform 0.3s ease-out;
    }

    .dropdown-btn i.fa-chevron-up {
        transform: rotate(180deg);
    }

    .dropdown-content {
        background-color: #f8f9fa;
        border: 1px solid #0056b3;
        border-top: none; /* Remove the top border to avoid double borders */
        font-size: 16px;
        line-height: 1.8;
        color: #333;
        border-radius: 0 0 5px 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Added padding transition */
        padding: 0; /* Remove padding when closed */
    }

    .dropdown-content.show {
        max-height: fit-content; /* Large enough to display all content */
        padding: 20px; /* Add padding when opened */
    }

    .dropdown-content p {
        margin: 10px 0;
    }

    .dropdown-content strong {
        display: block;
        margin: 15px 0 5px;
        font-size: 17px;
        color: #0056b3;
    }

    .dropdown-content h3 {
        display: block;
        margin: 15px 0 5px;
        font-size: 25px;
        color: #0056b3;
        text-align: center;
    }

    .dropdown-content ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .dropdown-content li {
        margin-bottom: 8px;
    }


    .section-item {


    }

    .result-container {
        background-color: #f0f0f0;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px 20px;
        margin-bottom: 15px;
        font-size: 1.2em;
        font-weight: 600;
        color: #333;
        display: flow;
        text-align: center;
        justify-content: space-between;
        box-shadow: none; /* Hide the box shadow initially */
        opacity: 0; /* Hide the container initially */
        transition: opacity 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for showing the container */
    }

    /* Specific Styles for User ID and Avatar Name Containers */
    .user-id-container {
        color: #007bff; /* Highlighted color for User ID */
    }

    .avatar-name-container {
        color: #28a745; /* Highlighted color for Avatar Name */
    }


    .result-content {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center-aligns the content */
        border: solid 1px black;
        background-color: #eef;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 8px;
    }

    /* Parent container to center the grid */

    /* Ensure the grid is responsive */
    .product-info-container {
        display: flex;
        flex-wrap: wrap; /* Ensures the cards wrap to the next line when necessary */
        justify-content: center; /* Centers the products horizontally */
        gap: 20px; /* Adds space between each product card */
        margin-top: 20px; /* Optional: Add space above the product grid */
    }

    /* Styling for individual product info cards */
    .product-info {
        flex: 1 1 200px; /* Ensures cards take up equal space and can shrink or grow */
        max-width: 250px; /* Sets a maximum width for each product card */
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center; /* Centers the text inside each card */
    }

    .total-price {
        margin-top: 20px;
        text-align: center;
    }

    .product-info img {
        max-width: 100px; /* Limit the image width */
        height: auto;
        margin-top: 10px;
    }

    .product-info-diversion-tree-container {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-width: 250px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        height: auto;
    }

    .result-content h1 {
        text-align: center;
        color: black;
    }

    .product-info .img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }

    .product-info h3 {
        margin: 0 0 10px;
        text-align: center;
        font-size: 14px;
        line-height: 1.2;
    }

    .product-info p {
        margin: 5px 0;
        text-align: center;
        word-wrap: break-word;
        max-height: 60px;
        overflow-y: auto;
        overflow-x: hidden;
    }


    /* Styles for the main container */
    .main-container {
      /* display: grid; */
      grid-template-columns: auto 1fr;  /* left-col = date selector, right-col = rooms */
      gap: 20px;
      align-items: start;
    }
    /* Styles for the date selector container */
    .date-selector-container {
        width: 200px; /* Set a fixed width for the date selector container */
        padding: 10px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: black;
    }

      .rooms-container {
        display: flex;
        flex-direction: column;
        /* padding: 0 10px; */
        gap: 1rem;
      }

    .name-column {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f1f1f1;
    }

    .name-column h2 {
        margin-bottom: 10px;
        font-size: 18px;
        color: #333;
    }

    .name-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .name-item {
        margin-bottom: 10px;
        padding: 8px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: black;
    }

    .name-item h3 {
        margin: 0;
        font-size: 16px;
    }

    .name-item button {
        padding: 6px 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    .name-item button:hover {
        background-color: #0056b3;
    }


    /* Container styles */
    .container-1 {
        position: relative;
        z-index: 1; /* Higher z-index to ensure it's above other content */
        max-width: 1200px;
        margin: auto;
        margin-top: 40px;
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Header styles */
    h1 {
        text-align: center;
        margin: 40px 0 20px; /* Add top margin to create space */
        color: #333;
    }

    /* UI Panel */
    .ui {
        display: none;
        position: fixed;
        z-index: 0;
        bottom: 0;
        left: 0;
        width: 120px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.7);
    }

    .ui p {
        font-size: 11px;
        font-weight: 700;
    }

    .ui p.zoom {
        margin-bottom: 5px;
    }

    .ui p.zoom span {
        margin-right: 5px;
        border: solid 1px #777;
        cursor: pointer;
        border-radius: 2px;
    }

    .ui p.zoom span:hover {
        background: black;
        color: white;
    }

    /* Loading overlay */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        display: none;
    }

    .loading-spinner {
        border: 16px solid #f3f3f3;
        border-top: 16px solid #3498db;
        border-radius: 50%;
        width: 120px;
        height: 120px;
        animation: spin 2s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }


    /* Search container-1 styles */
    .search-container-1 {
        display: flow-root;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        z-index: 0; /* Higher z-index to ensure it's above other content */
    }

    .search-container-1 label {
        margin-right: 10px;
        font-weight: bold;
    }

    .search-container-1 input[type="text"] {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        flex: 1;
    }

    .search-container-1 button {
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        margin-left: 10px;
    }

    .search-container-1 button:hover {
        background-color: #45a049;
    }

    /* Rooms container-1 */

    /* Room details styles */
    .room-details {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        background-color: #eef;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 1000px;
    }

    .room-info-H {
        display: flex;
        flex-direction: column; /* Stacks content vertically */
        align-items: flex-start; /* Aligns content to the left */
         /* Adds space between items */
        line-height: 1.6;
        padding: 20px;
        border: 1px solid black;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        background-color: #eef;
        max-width: 100%;
        word-wrap: break-word; /* Ensures long text breaks correctly */
        padding: 4px;
    }

    .room-info {
        display: list-item;
        /*! gap: 50px; */
        line-height: 19px;
        padding: 20px;
        border: 1px solid black;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        background-color: #eef;
        max-width: 1000px;
    }

    /* General styling for the profile container */
    #profileContainer {
        width: 100%; /* Full width on smaller screens */
        max-width: 300px; /* Limit maximum width for better readability */
        margin: 10px auto; /* Center the container */
        padding: 10px; /* Add padding for better spacing */
        background-color: #f9f9f9; /* Light background for contrast */
        border: 1px solid #ddd; /* Subtle border */
        border-radius: 8px; /* Rounded corners */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Add a slight shadow */
        font-family: Arial, sans-serif; /* Clean font */
        color: #333; /* Dark text for readability */
        text-align: center; /* Center-align the content */
    }

    /* Profile image styling */
    #profileContainer img {
        width: 100%; /* Responsive width for smaller screens */
        max-width: 150px; /* Keep the image size consistent */
        height: auto; /* Maintain aspect ratio */
        border-radius: 50%; /* Make the image circular */
        margin-bottom: 10px; /* Add space below the image */
    }

    /* Paragraph styling */
    #profileContainer p {
        font-size: 14px; /* Adjust font size for readability on mobile */
        margin: 5px 0; /* Add spacing between paragraphs */
        line-height: 1.5; /* Improve readability */
        place-self: center;
    }

    /* Highlight strong text */
    #profileContainer strong {
        color: #516ca9; /* Add a colored highlight for strong text */
    }

    .room-image {
      /* make it shrink-wrap its contents */
      display: block;
      margin: 0 auto;      /* centers it horizontally */
      width: fit-content;  /* only as wide as the image inside */
    }

    .room-text {
        flex: 2;
    }

    .room-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        justify-content: center;
    }

    .room-title h2 {
        margin: 0;
    }

    .room-description {
        margin-top: 10px;
        color: #555;
    }

    /* Styling for the table to convert into block format */
    .room-info-H table {
        display: block; /* Allows each row to act as a block */
        width: 100%;
        border-collapse: separate; /* Avoid collapsing cells */
        border-spacing: 0; /* Remove extra spacing */
        max-width: 480px;
        left: -5%;
        position: relative;
        padding: 10px;
    }

    .room-info-H th, .room-info-H td {
        display: block; /* Stack each table cell */
        width: 90%; /* Ensure full width */
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #ddd;
        color: black;
    }

    .room-info-H th {
        font-weight: bold;
        background-color: #f9f9f9;
    }

    /* Optional: Add styles for labels and values */
    .room-info-H th::after {
        content: ':';
        margin-right: 5px;
        font-weight: normal;
        color: #555;
    }

    /* Users list styles */
    .users-list {
        background-color: #f9f9f9;
        /* padding: 10px; */
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        /* max-height: 100vh; */ /* Ensure it doesn't exceed the viewport height */
        /* overflow-y: hidden; */ /* Disable scrolling */
        color: black;
        /* display: flex; */
        flex-direction: column;
        justify-content: space-between; /* Adjust spacing if needed */
        /* box-sizing: border-box; */ /* Include padding in height calculations */
        max-width: 100%;
        left: -4%;
        position: relative;
    }

    /* Ensure list scales correctly */
    .users-list h3 {
        margin-bottom: 10px;
        font-size: 20px;
        color: #333;
        text-align: center; /* Center the heading */
    }

    .users-list ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        flex: 1; /* Make the list fill available space */
        display: flex;
        flex-direction: column;
        justify-content: left; /* Center items vertically */
    }

     .room-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
  }

    .users-list li {
        margin-bottom: 10px;
        font-size: 16px;
        /* white-space: nowrap; */ /* Prevent text from wrapping */
        text-overflow: ellipsis; /* Add ellipsis for long text */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 5px;
        background-color: #fff;
        overflow: hidden;
        text-align: center;
    }

    /* Optional: Add hover effect */
    .users-list li:hover {
        background-color: #f0f0f0;
    }


    /* Pagination styles */
    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        gap: 10px;
        text-align-last: center;
        color: black;
    }

    .pagination button {
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
    }

    .pagination button:hover {
        background-color: #45a049;
    }

    .pagination span {
        font-size: 16px;
    }

    /* Group container-1 styles */

  .group-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem 0;
  }

  .group-pagination button {
    flex: none;   /* donÃ¢â‚¬â„¢t stretch */
    margin-right: 0.5rem;
  }
  /* 6) Tighter spacing on lists & tabs */
  .users-list,
  .tab-buttons {
    padding: 0.5rem;
  }
  .tab-buttons button {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
    .group-pagination button:hover {
        background-color: #45a049;
    }

    .version-info {
        font-size: 14px;
    }

  /* 2) Room card fills width, with smaller padding */
  .room-details {
    width: 100%;
    padding: 1rem;
    margin: 0 auto 1.5rem;
  }

    .users-list ul {
        list-style-type: none;
        padding: 0;
    }

    .users-list li {
        margin-bottom: 5px;
    }

    /* Header styles */
    .container p {
        text-align: center;
        margin: 40px 0 20px; /* Add top margin to create space */
        color: white;
    }

    .container-search p {
        text-align: center;
        color: black;
        /* line-break: anywhere; */
        line-height: inherit;
        align-items: flex-start; /* Aligns content to the left */
        flex-direction: column; /* Stacks content vertically */
        display: flow-root;
        word-wrap: break-word; /* Ensures long text breaks correctly */
        max-width: 60%;
        line-height: inherit;
    }

    .room-title h3 {
        color: black;
    }

    .avatar-names-container li {
        color: black;
    }


    /* Container for the results grid */
    #results-container-catalog {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap onto the next line */
        justify-content: flex-start; /* Align items at the start */
        gap: 20px; /* Adjust the gap between items */
    }

    /* Styling each result item to behave like a grid item */
    .result-item-catalog {
        flex: 0 1 calc(33.333% - 20px); /* 3 items per row, adjust percentage for more/less items */
        box-sizing: border-box;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #fff;
    }

    /* Ensure that images fit nicely within the item */
    .result-item-catalog img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    /* Ensure text is centered and styled uniformly */
    .result-item-catalog p {
        margin: 5px 0;
        text-align: center;
        word-wrap: break-word;
    }

    .feed-item {
        padding: 20px; /* Padding inside the border */
        border: 1px solid #ddd; /* Light border color */
        border-radius: 10px; /* Rounded corners */
        margin: 15px 0; /* Space outside the border */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        background-color: #ffffff; /* Background color */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    }

    .feed-item p {
        margin: 10px 0; /* Space between paragraphs */
        color: #333; /* Darker text color for readability */
        font-family: Arial, sans-serif; /* Cleaner font */
        line-height: 1.6; /* Better line spacing */
    }

    .feed-item img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto; /* Maintain aspect ratio */
        border-radius: 5px; /* Slightly rounded corners for images */
        margin-top: 10px; /* Space above the image */
    }

    #results-container {
        display: flex;
        flex-direction: column; /* Stack feed items vertically */
        gap: 80px; /* Space between feed items */
    }


    /* Style for the Avatar Outfit buttons */
    .users-list button {
        background-color: #516ca9; /* Blue background */
        color: white; /* White text color */
        border: none; /* Remove default border */
        padding: 8px 16px; /* Add padding to the button */
        font-size: 14px; /* Adjust font size */
        text-align: center; /* Center-align the text */
        text-decoration: none; /* Remove underline */
        display: block; /* Makes the button take the full width of the parent container */
        width: 100%; /* Ensures the button fits nicely on the screen */
        border-radius: 6px; /* Rounded corners */
        cursor: pointer; /* Pointer cursor for better UX */
        transition: background-color 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effect */
        margin: 5px 0; /* Space between buttons */
    }

    /* Hover effect for the buttons */
    .users-list button:hover {
        background-color: #218838; /* Darker green on hover */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
    }

    /* List styling adjustments */
    .users-list ul {
        list-style-type: none; /* Remove bullets */
        padding-left: 0;
    }

    /* Adjust avatar name and button layout */
    .users-list li {
        margin-bottom: 10px; /* Adds spacing between list items */
        font-size: 14px; /* Adjust font size */
        display: flex; /* Use flexbox for layout */
        flex-direction: column; /* Stack the name and button vertically */
        align-items: stretch; /* Align items to stretch to full width */
    }


    /* Style for the dynamically loaded outfit image */
    .users-list .outfit-image {
        max-width: 100%; /* Ensure the image fits the container */
        height: auto; /* Maintain the image's aspect ratio */
        margin-top: 10px; /* Add some space between the button and the image */
        border: 1px solid #ddd; /* Optional: Add a border */
        border-radius: 8px; /* Optional: Rounded corners */
    }

    .room-info-H {
      display: flex;
      flex-direction: column;
      align-items: flex-start; /* keeps text left-aligned */
      gap: 16px;
    }


    .outfit-image {
        width: 300px;
        margin-left: 10px;
    }

      .room-text {
        width: 100%;
        margin: 0;
        padding: 0;
      }

    .outfit-image {
        margin-top: 50px;
        position: inherit;
        display: block;
        width: 300px;
    }

    #profileContainer img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
        margin-top: 10px;

    }
}


@media (min-width: 769px) {
      .room-group > img,
      .room-group .room-title {
        flex-shrink: 0;
      }

      /* make the description/body take up the rest of the card and wrap */
      .room-group .room-text {
        flex: 1;          /* fill available space */
        min-width: 0;     /* allow wrapping inside flex children */
        /* padding: 1em; */
        /* overflow-wrap: break-word; */
        /* word-break: break-word; */
        color: #fff;
        /* position: static; */
        place-self: self-end;
        /* max-width: -webkit-fill-available; */
        align-self: center;
      }
    .room-group {
      display: flex;
      flex-direction: column;
      /* width: 100%; */ /* Take full width of parent */
      /* height: 100%; */ /* Take full height */
      /* max-height: 100%; */
    }
    #progressText, #roomFoundCount, #progressBar, #roomFoundContainer {
        color: black; /* Set text color to black */
    }

    #progressContainer label {
        color: black; /* Set text color to black */
    }

    /* General styles for the section */
    .terms {
        background-color: #f9f9f9; /* Light background */
        padding: 30px; /* Adds padding around the terms section */
        border-radius: 8px; /* Rounded corners */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
        line-height: 1.6; /* Improves readability */
        color: #333; /* Darker text color for readability */
        font-family: Arial, sans-serif; /* Clean, modern font */
    }

    /* Headings */
    .terms h2 {
        font-size: 2rem;
        color: #0056b3; /* Main color */
        margin-bottom: 20px;
        text-align: center; /* Centers main title */
    }

    .terms h3 {
        font-size: 1.6rem;
        color: #333;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .terms h4 {
        font-size: 1.4rem;
        color: #666; /* Slightly lighter color for subsection titles */
        margin-top: 15px;
        margin-bottom: 10px;
    }

    /* Paragraphs */
    .terms p {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #555;
    }

    /* Lists */
    .terms ul {
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .terms li {
        margin-bottom: 8px;
    }

    /* Links */
    .terms a {
        color: #0056b3;
        text-decoration: none;
        font-weight: bold;
    }

    .terms a:hover {
        text-decoration: underline;
    }


    .dropdown-help {
        margin-top: 20px;
        width: 100%;
    }

    .dropdown-btn {
        background-color: #516ca9;
        color: white;
        padding: 15px;
        font-size: 18px;
        border: none; /* Remove border to prevent unwanted lines */
        cursor: pointer;
        width: 100%;
        text-align: left;
        outline: none;
        font-weight: bold;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: none; /* Remove any shadow that might create extra lines */
    }

    .dropdown-btn:hover {
        background-color: #516ca9;
    }

    .dropdown-btn i {
        margin-left: 10px;
        transition: transform 0.3s ease-out;
    }

    .dropdown-btn i.fa-chevron-up {
        transform: rotate(180deg);
    }

    .dropdown-content {
        background-color: #f8f9fa;
        border: 1px solid #0056b3;
        border-top: none; /* Remove the top border to avoid double borders */
        font-size: 16px;
        line-height: 1.8;
        color: #333;
        border-radius: 0 0 5px 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Added padding transition */
        padding: 0; /* Remove padding when closed */
    }

    .dropdown-content.show {
        max-height: 1000px; /* Large enough to display all content */
        padding: 20px; /* Add padding when opened */
    }

    .dropdown-content p {
        margin: 10px 0;
    }

    .dropdown-content strong {
        display: block;
        margin: 15px 0 5px;
        font-size: 17px;
        color: #0056b3;
    }

    .dropdown-content h3 {
        display: block;
        margin: 15px 0 5px;
        font-size: 25px;
        color: #0056b3;
        text-align: center;
    }

    .dropdown-content ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .dropdown-content li {
        margin-bottom: 8px;
    }


    .section-item {


    }

    .result-container {
        background-color: #f0f0f0;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px 20px;
        margin-bottom: 15px;
        font-size: 1.2em;
        font-weight: 600;
        color: #333;
        display: flow;
        text-align: center;
        justify-content: space-between;
        box-shadow: none; /* Hide the box shadow initially */
        opacity: 0; /* Hide the container initially */
        transition: opacity 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for showing the container */
    }

    /* Specific Styles for User ID and Avatar Name Containers */
    .user-id-container {
        color: #007bff; /* Highlighted color for User ID */
    }

    .avatar-name-container {
        color: #28a745; /* Highlighted color for Avatar Name */
    }


    .result-content {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center-aligns the content */
        border: solid 1px black;
        background-color: #eef;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 8px;
    }

    /* Parent container to center the grid */

    /* Ensure the grid is responsive */
    .product-info-container {
        display: flex;
        flex-wrap: wrap; /* Ensures the cards wrap to the next line when necessary */
        justify-content: center; /* Centers the products horizontally */
        gap: 20px; /* Adds space between each product card */
        margin-top: 20px; /* Optional: Add space above the product grid */
    }

    /* Styling for individual product info cards */
    .product-info {
        flex: 1 1 200px; /* Ensures cards take up equal space and can shrink or grow */
        max-width: 250px; /* Sets a maximum width for each product card */
        padding: 15px;
        border-radius: 8px;
        text-align: center; /* Centers the text inside each card */
        border: 5px solid #516ca9;
        box-shadow: 0 0 30px rgba(98, 102, 212, 0.3);
    }

    .total-price {
        margin-top: 20px;
        text-align: center;
    }

    .product-info img {
        max-width: 100px; /* Limit the image width */
        height: auto;
        margin-top: 10px;
    }

    .product-info-diversion-tree-container {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-width: 250px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        height: auto;
    }

    .result-content h1 {
        text-align: center;
        color: black;
    }

    .product-info .img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }

    .product-info h3 {
        margin: 0 0 10px;
        text-align: center;
        font-size: 14px;
        line-height: 1.2;
    }

    .product-info p {
        margin: 5px 0;
        text-align: center;
        word-wrap: break-word;
        max-height: 60px;
        overflow-y: auto;
        overflow-x: hidden;
    }


    /* Styles for the main container */
      .main-container {
        /* display: grid; */
        grid-template-columns: 200px 1fr; /* sidebar = 200px, rooms = rest */
        gap: 20px;
      }

    /* Styles for the date selector container */
    .date-selector-container {
        /* width: 200px; */ /* Set a fixed width for the date selector container */
        /* padding: 10px; */
        /* background-color: #f9f9f9; */
        /* border: 1px solid #ddd; */
        /* border-radius: 4px; */
        /* color: black; */
    }

    /* 1. Make the container a grid with a 320px min-column width */
    .rooms-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
      /* gap: 60px; */
      /* ensure rows for content + pagination: */
      grid-auto-rows: auto;
      /* padding: 10%; */
    }

    .name-column {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f1f1f1;
    }

    .name-column h2 {
        margin-bottom: 10px;
        font-size: 18px;
        color: #333;
    }

    .name-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .name-item {
        margin-bottom: 10px;
        padding: 8px;
        /* background-color: #1f2937; */
        border-bottom: 1px solid #ddd;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* color: black; */
    }

    .name-item h3 {
        margin: 0;
        font-size: 16px;
    }

    .name-item button {
        padding: 6px 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    .name-item button:hover {
        background-color: #0056b3;
    }


    /* Container styles */
    .container-1 {
        position: relative;
        z-index: 1; /* Higher z-index to ensure it's above other content */
        /* max-width: 1200px; */
        margin: auto;
        /* margin-top: 40px; */
        /* background-color: #2e3c50; */
        padding: 20px;
        border-radius: 8px;
        /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
        /* border: solid #516ca9 5px; */
    }

    /* Header styles */
    h1 {
        text-align: center;
        margin: 40px 0 20px; /* Add top margin to create space */
        color: #ffffff;
    }

    /* UI Panel */
    .ui {
        display: none;
        position: fixed;
        z-index: 0;
        bottom: 0;
        left: 0;
        width: 120px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.7);
    }

    .ui p {
        font-size: 11px;
        font-weight: 700;
    }

    .ui p.zoom {
        margin-bottom: 5px;
    }

    .ui p.zoom span {
        margin-right: 5px;
        border: solid 1px #777;
        cursor: pointer;
        border-radius: 2px;
    }

    .ui p.zoom span:hover {
        background: black;
        color: white;
    }

    /* Loading overlay */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        display: none;
    }

    .loading-spinner {
        border: 16px solid #f3f3f3;
        border-top: 16px solid #3498db;
        border-radius: 50%;
        width: 120px;
        height: 120px;
        animation: spin 2s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }


    /* Search container-1 styles */
    .search-container-1 {
        /* display: flex; */
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        z-index: 0; /* Higher z-index to ensure it's above other content */
    }

    .search-container-1 label {
        margin-right: 10px;
        font-weight: bold;
    }

    .search-container-1 input[type="text"] {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        flex: 1;
    }

    .search-container-1 button {
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        margin-left: 10px;
    }

    .search-container-1 button:hover {
        background-color: #45a049;
    }

    /* Rooms container-1 */

    /* Room details styles */
    .room-details {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        background-color: #2e3b4e;
        /* border-radius: 8px; */
        /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
        /* max-width: 100%; */
        /* height: 500px; */
    }

    .room-info-H {
        display: flex;
        /*! gap: 50px; */
        line-height: 19px;
        padding: 5px;
        border: 1px solid #516ca9;
        /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
        border-radius: 10px;
        background-color: #2e3b4e;
        /* max-width: 90%; */
        box-shadow: 0 0 30px rgba(98, 102, 212, 0.3);
    }

    .room-info {
        display: list-item;
        /*! gap: 50px; */
        line-height: 19px;
        padding: 20px;
        border: 1px solid black;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        background-color: #eef;
        max-width: 1000px;
    }

    .room-image {
      width: 100%;
      max-width: 300px;      /* or your preferred box size */
      aspect-ratio: 4/3;
      overflow: hidden;
      align-self: center;
      box-shadow: 0 0 30px rgba(98, 102, 212, 0.3);
    }

    .room-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;     /* scales & crops to fill the box */
      /* box-shadow: 0 0 30px rgba(98, 102, 212, 0.3); */
    }

    .room-text {
      flex: 1 1 auto;        /* allow grow & shrink */
      min-width: 0;          /* Ã°Å¸â€â€˜ let it actually shrink */
      overflow-wrap: break-word;
      word-break: break-word;
      /* optional padding, colours, etcÃ¢â‚¬Â¦ */
      padding: 1em;
    }

    .room-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        justify-content: center;
    }

    .room-title h2 {
        margin: 0;
    }

    .room-description {
        margin-top: 10px;
        color: #ffffff;
    }

    .room-info-H table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
        border: solid #536baf 5px;
        padding: 10px;
        border-radius: 20px;
    }

    .room-info-H th, .room-info-H td {
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #536bae;
        color: #ffffff;
        background-color: #2f3c51;
    }

    .room-info-H th {
        width: 150px;
        background-color: #2e3b4f;
        color: #ffffff;
        border-right: 1px #536cac solid;
    }

    /* Users list styles */
    .users-list {
        background-color: #516ca9;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-height: 500px; /* Adjust height as needed to fit 10 users */
        overflow-y: hidden; /* Disable scrolling */
        color: black;
        max-height: fit-content;
        /* border-radius: 10px; */
        /* top: 10px; */
        position: relative;
        margin-top: 10px;
    }

    .users-list h3 {
        margin-bottom: 10px;
        font-size: 20px;
        color: #ffffff;
    }

    .users-list ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .users-list li {
        margin-bottom: 10px;
        font-size: 18px;
        white-space: nowrap; /* Prevent text from wrapping */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 5px;
    }

    /* Pagination styles */
    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        gap: 10px;
        text-align-last: center;
        color: black;
    }

    .pagination button {
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
    }

    .pagination button:hover {
        background-color: #45a049;
    }

    .pagination span {
        font-size: 16px;
    }

    /* Group container-1 styles */

    .group-pagination {
      order: 2;            /* ensure it always comes after .room-details */
      width: 100%;         /* fill the full width of the card */
      display: flex;
      justify-content: center;
      margin-top: 1em;     /* breathing room */
      overflow: hidden;    /* kill any stray scrollbar */
      background-color: #1f2a38;
      /* padding: 10px; */
      position: relative;
      /* bottom: 20px; */
    }

    .group-pagination button {
        padding: 8px 16px;
        font-size: 14px;
        background-color: #506ba7;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        /* background-color: red; */
    }

    .group-pagination button:hover {
        background-color: #45a049;
    }

    .version-info {
        font-size: 14px;
    }

    .room-details {
        /* border: 1px solid #2e3b4e; */
        padding: 10px;
        /* margin-bottom: 10px; */
        background-color: #2e3b4e;
        border: #516ca9 solid 1px;
        justify-self: center;
        /* max-width: 1000%; */
        /* width: 100%; */ /* Take full width of parent */
        /* max-height: 90%; */ /* Take full height */
        min-height: 90%;
    }

    .users-list ul {
        list-style-type: none;
        padding: 0;
    }

    .users-list li {
        margin-bottom: 5px;
    }

    /* Header styles */
    .container p {
        text-align: center;
        margin: 40px 0 20px; /* Add top margin to create space */
        color: white;
    }

    .container-search p {
        text-align: center;
        color: #ffffff;
        line-break: anywhere;
        line-height: inherit;
    }

    .room-title h3 {
        color: #ffffff;
    }

    .avatar-names-container li {
        color: black;
    }


    /* Container for the results grid */
    #results-container-catalog {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap onto the next line */
        justify-content: flex-start; /* Align items at the start */
        gap: 20px; /* Adjust the gap between items */
    }

    /* Styling each result item to behave like a grid item */
    .result-item-catalog {
        flex: 0 1 calc(33.333% - 20px); /* 3 items per row, adjust percentage for more/less items */
        box-sizing: border-box;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #fff;
    }

    /* Ensure that images fit nicely within the item */
    .result-item-catalog img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    /* Ensure text is centered and styled uniformly */
    .result-item-catalog p {
        margin: 5px 0;
        text-align: center;
        word-wrap: break-word;
    }

    .feed-item {
        padding: 20px; /* Padding inside the border */
        border: 1px solid #ddd; /* Light border color */
        border-radius: 10px; /* Rounded corners */
        margin: 15px 0; /* Space outside the border */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        background-color: #ffffff; /* Background color */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    }

    .feed-item p {
        margin: 10px 0; /* Space between paragraphs */
        color: #333; /* Darker text color for readability */
        font-family: Arial, sans-serif; /* Cleaner font */
        line-height: 1.6; /* Better line spacing */
    }

    .feed-item img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto; /* Maintain aspect ratio */
        border-radius: 5px; /* Slightly rounded corners for images */
        margin-top: 10px; /* Space above the image */
    }

    #results-container {
        display: flex;
        flex-direction: column; /* Stack feed items vertically */
        gap: 80px; /* Space between feed items */
    }


    /* Style for the Avatar Outfit buttons */
    .users-list button {
        background-color: #516ca9; /* Green background */
        color: white; /* White text color */
        border: none; /* Remove default border */
        padding: 8px 16px; /* Add padding to the button */
        font-size: 14px; /* Adjust font size */
        text-align: center; /* Center-align the text */
        text-decoration: none; /* Remove underline */
        display: inline-block; /* Ensures the button size is determined by content */
        border-radius: 6px; /* Rounded corners */
        cursor: pointer; /* Pointer cursor for better UX */
        transition: background-color 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effect */
        margin: 5px 0; /* Space between buttons */
    }

    /* Hover effect for the buttons */
    .users-list button:hover {
        background-color: #218838; /* Darker green on hover */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
    }

    /* Optional: Further adjust the list appearance */
    .users-list ul {
        list-style-type: none; /* Remove bullets */
        padding-left: 0;
    }

    /* Optional: Adjust the avatar name next to the button */
    .users-list li {
        margin-bottom: 10px; /* Adds spacing between avatar name and button */
        font-size: 14px; /* Adjust font size */
    }

    /* Style for the dynamically loaded outfit image */
    .users-list .outfit-image {
        max-width: 100%; /* Ensure the image fits the container */
        height: auto; /* Maintain the image's aspect ratio */
        margin-top: 10px; /* Add some space between the button and the image */
        border: 1px solid #ddd; /* Optional: Add a border */
        border-radius: 8px; /* Optional: Rounded corners */
    }

    .room-info-H {
      display: flex;
      flex-direction: column;
      align-items: flex-start; /* keeps text left-aligned */
      /* gap: 16px; */
      /* max-height: 100%; */
      /* width: 100%; */ /* Take full width of parent */
      /* height: 100%; */ /* Take full height */
    }


    .outfit-image {
        width: 300px;
        margin-left: 10px;
    }

    .room-text {
        margin-left: 20px;
        max-width: 550px;
    }

    .outfit-image {
        margin-top: 50px;
        position: inherit;
        display: block;
        width: 300px;
    }

    #profileContainer img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
        margin-top: 10px;

    }
    .modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;

    }
}