* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: PingFang-Regular, Microsoft YaHei;
    font-weight: 500;
}

@font-face {
    font-family: 'Home Video';
    src: url('../assets/fonts/HomeVideo-Bold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Baloo2-Regular';
    src: url('../assets/fonts/Baloo2-Regular.ttf') format('truetype');
    font-weight: 500;
}

.body {
    margin: 0;
    line-height: normal;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Align horizontally */
    align-items: center;
    min-height: 60vh; /* Take at least the full height of the viewport */
    padding-bottom: 50px;
    padding-top: 0px;
    background-color: transparent;
    z-index: 1;
    overflow-x: hidden;
}

/* General Left-Right layout */
.chat-container {
    /* Assuming this is the parent container */
    position: fixed;
    top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    /* Align children horizontally */
    width: 100%;
    /* Ensure it spans the full width */
    min-height: 100vh;
    background-color: transparent;
    z-index: 1;
    /* Optional: makes it at least as tall as the viewport */
    overflow-x: hidden;
    overflow-y: hidden;
}

.bg-home {
    position: fixed;
    /* or 'absolute' if `.container` has 'position: relative;' */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* or '1080px' if specific height is needed */
    object-fit: cover;
    z-index: 0;
    /* Lower z-index to keep it behind */
    overflow: hidden;
}

.left-column {
    flex: 0 0 20%;
    /* Do not grow, do not shrink, start at 30% of the parent width */
    width: 20%;
    /* Ensures it does not exceed 30% width */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.18);
    background-color: transparent;
    min-height: 100vh;
    overflow: hidden;
}

.right-column {
    flex-grow: 1;
    /* Grow to occupy all remaining space */
    width: 80%;
    /* Start by taking up the rest of the space */
    position: relative;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), #fff);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: left;
    font-size: 16px;
    padding: 40px 100px;
    color: rgba(0, 0, 0, 0.24);
    font-family: 'PingFang HK', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Align vertically */
    justify-content: center; /* Align horizontally */
    background-color: #ffffff; /* Any background color you prefer */
}

.login-container {
    display: flex;
    min-height: 400px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    font-family: 'Arial', sans-serif;
    border-radius: 10px;
    /* Optional for styling */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Optional for styling */
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.process-column,
.gallery-column>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This will center the child elements */
}

.generation-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* This will center the child elements */
}

.generation-guide {
    font-size: 1em; /* Start with a base font size */
    color: #333;
    width: 90%;
    min-width: 300px;
    /* max-width: 90%; Use a percentage width for responsiveness */
    margin: 20px auto;
    padding: 20px;
    border-left: 4px solid #0056b3;
    background-color: #f8f8f8;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Keyframes for fading in each line */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
.generation-guide p {
/* Initial state: paragraphs are fully transparent */
opacity: 0;
/* Transition paragraphs to full opacity */
animation: fadeIn 1s forwards;
}

/* Delay the animation of the second paragraph to start after the first one finishes */
.generation-guide p:nth-child(1) {
animation-delay: 0s;
}

.generation-guide p:nth-child(2) {
animation-delay: 1s; /* Delay should match the animation duration */
}
.generation-guide p:nth-child(3) {
    animation-delay: 2s; /* Delay should match the animation duration */
}

/* Style for the "Generate" button */
.generate-button {
    width: 30%; /* Match the textarea's calculated width */
    margin: 10px 0; /* Provide some space above the button */
    padding: 15px; /* Padding inside the button */
    margin-top: 1rem;
    background-color: #0056b3; /* Primary color */
    color: white;
    font-size: 18px; /* Larger font size */
    font-weight: bold; /* Make the text bold */
    border: none; /* No border */
    border-radius: 8px; /* Consistent with textarea border-radius */
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

/* Hover and focus state for the button */
.generate-button:hover, .generate-button:focus {
    background-color: #003580; /* Darker shade on hover/focus */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Larger shadow for depth effect */
    outline: none; /* Remove outline on focus */
}

/* Disabled state for the button */
.generate-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none; /* No shadow when disabled */
}

/* Container for the prompts input textarea and button */
.prompts-input {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 1em;
}

/* Focus state for textarea */
.prompts-input textarea:focus {
    border-color: #0056b3; /* Highlight color */
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2); /* Subtle glow effect */
    outline: none; /* Remove default outline */
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1em;
    list-style-type: none;
    /* remove default list styling */
}

/* Ensure the pagination buttons are within a container for proper centering */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Full width to center content */
    padding: 1rem 0;
    /* Add some padding for spacing */
}

.pagination button {
    margin: 0 5px;
}

button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 24px; /* Increase padding for tap targets */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px; /* Increase font size for readability */
}

button:hover {
    background-color: #003580;
    /* darker shade on hover */
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.main-page {
    display: flex;
    justify-content: center; /* Align items to the start of the main axis */
    align-items: flex-start;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    margin: auto;
    gap: 1em; /* Provide some space between the items */
    margin-left: 10px;
}

.model-preview-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    /* Distributes space around items */
    align-items: stretch;
    /* Stretch items to fill the container height */
    margin: 0 auto;
    /* Center the container */
}

.model-preview-item {
    width: 300px;
    /* Fixed width */
    height: 300px;
    position: relative;
    /* Set the position to relative for absolute child positioning */
    border: 1px solid #eaeaea;
    /* subtle border */
    border-radius: 10px;
    /* rounded corners */
    overflow: hidden;
    /* ensures content fits within the border radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* smooth transition for hover */
    min-height: 300px; 
    /* Set a minimum height to maintain a consistent appearance */
}

.model-preview-item:hover {
    transform: translateY(-5px);
    /* subtle lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* larger shadow for hover */
}

.model-preview-item img {
    width: 100%;
    /* Make the image fill the container */
    height: auto;
    /* Keep the aspect ratio of the image */
    display: block;
    /* Images are inline by default, change this to block to fit the width */
    top: 0;
    left: 0;
}

@keyframes shine {
    0% { box-shadow: 0 0 10px #fff; }
    50% { box-shadow: 0 0 20px rgb(0, 205, 232); }
    100% { box-shadow: 0 0 10px #fff; }
}

.shining {
animation: shine 5s ease-in-out infinite;
}

.model-preview-area {
    display: flex;
    flex-direction: column; /* Stack model preview and actions vertically */
    justify-content: space-between; /* Distribute space between items, pushing the actions to the bottom */
    width: 100%; /* Set a fixed width */
    max-width: 300px;
    margin-bottom: 1em; /* Optional: add some space between the items */
    background-color: #fff;
}

.model-preview-area p {
    font-family: monospace;
    /* Ensures each character has the same width */
    max-width: 18em;
    /* Roughly 30 characters, adjust as needed */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.loading-container {
    display: flex;
    width: 300px;
    height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
.loading-spinner {
border: 5px solid rgba(0,0,0,0.1); /* Light grey border */
border-top: 5px solid #3498db; /* Blue border */
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 2s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 10px;
    font-size: 0.8em; /* Decreased font size for mobile */
    color: #333;
}

/* Toggle button for the sidebar (hamburger menu) */
.sidebar-toggle {
    display: none; /* Show the button */
    position: fixed;
    top: 12px;
    right: 0px;
    background-color: transparent; /* Make the background transparent */
    color: #27272760; /* Light gray color, adjust as needed */
    font-size: 24px;
    z-index: 1001; /* Above the sidebar */
    border: none; /* Remove any border */
    padding: 10px 15px; /* Add some padding */
    cursor: pointer; /* Make sure it's obvious it's clickable */
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    color: #6b6b6b; /* Even lighter color on hover/focus */
    background-color: rgba(255, 255, 255, 0.45); /* Slightly white transparent background on hover/focus */
    outline: none; /* Remove outline on focus */
}

.back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1010; /* Above other content */
    background-color: #007bff; /* Bootstrap primary color for example */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
}

/* Media Queries for responsiveness */
@media only screen and (max-width: 768px) {
    /* .container {
        padding-top: 80px;
    }

    .login-container {
        padding-top: -100px;
    } */

    /* .model-preview-item {
        width: 300px; 
        height: 300px;
        margin-bottom: 1rem; 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    } */

    .suggestions-list {
        width: 100%;
        /* Full width suggestion list on mobile */
    }

    /* .button {
        padding: 12px 18px;
        font-size: 1rem;
    } */

    .sidebar-toggle {
        display: block;
    }

    .back-to-top {
        display: block;
        /* Show the button on mobile */
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.model-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    /* semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-loading-bar-container {
    width: 50%;
    /* Width of the loading bar container */
    padding: 2px;
    background-color: transparent;
    border-radius: 2px;
}

.model-loading-bar {
    height: 5px;
    /* Height of the loading bar */
    background-color: #0095ff;
    width: 0%;
    /* Initial width is 0% */
    border-radius: 2px;
    transition: width 0.4s ease;
}

.textarea-and-suggestions {
    display: block;
    width: 80%;
    position: relative;
    flex-direction: column;
    align-items: center;
    /* Establish a relative positioning context */
}

.prompt-textarea {
    width: 100%; /* Adjust for padding if any */
    margin: 10px 0; /* Reset margin to ensure full width */
    padding: 15px; /* Padding inside the textarea */
    border: 2px solid #eaeaea; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px; /* Make text larger and easier to read */
    line-height: 1.5; /* Increase line-height for better readability */
    margin: 10px 0;
    resize: vertical; /* Allowing only vertical resize */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for focus */
    outline: none;
}

/* Focus state for textarea */
.prompt-textarea:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.suggestions-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    /* Remove the top border to visually merge with the textarea */
    border-bottom-right-radius: 4px;
    /* Rounded bottom corners */
    border-bottom-left-radius: 4px;
    width: 80%;
    /* Account for the border */
    max-height: 500px;
    /* Limit the height and make it scrollable */
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    margin-top: -1px;
    /* Move up to cover the textarea border */
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    /* Separator between items */
}

.suggestion-item:last-child {
    border-bottom: none;
    /* Remove border for the last item */
}

.suggestion-item:hover {
    background-color: #f7f7f7;
    /* Hover state */
}

.highlighted {
    background-color: #e9ecef; /* Change as per your color scheme */
}

.ar-button i,
.download-button i {
    margin-right: 5px;
    /* If icons are not centered, you can adjust the line-height or vertical-align */
    line-height: 1; /* Align the icon to the button's line-height */
    vertical-align: middle; /* Align the icon vertically */
    /* You can also specify a fixed width and height for the icon */
    width: 14px; /* Fixed width */
    height: 14px; /* Fixed height */
    text-align: center; /* Ensures the icon's text is centered (for inline elements) */
}

/* Remove the margin-right if there is no text next to the icon */
.ar-button i.only-icon,
.download-button i.only-icon {
    margin-right: 0;
}

.toast {
    display: none;
    position: fixed;
    min-height: 50px;
    max-height: 100px;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #fff700;
    color: #000000;
    z-index: 10000;
    transition: all 0.3s ease;
}
  
.toast--visible {
    display: block;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 5px 10px;
    font-size: 16px;
    color: #999; /* Default color for not liked */
    transition: color 0.3s;
  }
  
  .like-button:hover {
    color: #666; /* Darker grey on hover for not liked */
  }
  
  .like-button.liked,
  .like-button.liked:hover {
    color: #e63946; /* Red color for liked */
  }
  
  .like-button i {
    margin-right: 5px;
  }

  /* container of a few models */
  .v-card-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
    /* Full width */
    padding-top: 0px;
    /* Padding at top */
    justify-content: space-between;
    z-index: 2;
}

.text-sender {
    display: flex;
    flex-direction: column;
    height: 95vh;
    /* Full viewport height */
    width: cal(100% - 140px);
    padding: 0px 40px;
    align-items: center;
    /* Full width */
    overflow: hidden;
    /* Hide overflow */
    justify-content: space-between;
}

/* upper-right */
.conversation-container {
    flex-grow: 1;
    /* Grow to use all available space */
    /* Allows scrolling within the container */
    padding: 20px;
    margin-bottom: 20px;
    /* Space between this container and the input sender */
    text-align: left;
    font-size: 16px;
    /* color: rgba(0, 0, 0, 0.54); */
    font-family: 'PingFang HK', sans-serif;
    background-color: transparent;
    z-index: 3;
}

.scrollable-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.back-button {
    width: 30px;
    display: inline-block;
    /* Ensure both elements are aligned inline and behave like block elements */
    /* Use inline-flex for layout */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
    align-items: center;
    /* Vertically center the content */
    justify-content: center;
    /* Horizontally center the content */
    background-color: transparent;
    /* Primary button color */
    color: black;
    /* Text/icon color */
    text-align: center;
    /* Center the text (if any) */
    text-decoration: none;
    /* No underline */
    font-size: 14px;
    /* Font size for the text */
    font-family: inherit;
    /* Inherit the font-family */
    cursor: pointer;
    /* Cursor indicates button */
    line-height: 1;
    /* Reset line-height */
    outline: none;
    /* Remove default focus outline */
    -webkit-appearance: none;
    /* Remove default button styles for iOS */
    -moz-appearance: none;
    /* Remove default button styles for Firefox */
    appearance: none;
    /* Remove default button styles */
}

.back-button:hover, .back-button:focus {
    /* Explicitly reset hover and focus styles to match the default state */
    background-color: transparent;
    color: black;
    text-decoration: none;
}

.image-placeholder {
    flex: 1;
    padding: 0px 10px;
    /* Each placeholder takes equal width */
    text-align: center;
    /* Centers the image within the placeholder */
}

.image-placeholder img {
    max-width: 500px;
}

.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

#app {
    overflow: hidden;
}