body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Nanum Gothic', sans-serif;
    /* background-color: #f4f4f4; */
    background-color: white;
    color: #333;
    overflow-x: hidden;
}


.main-container {
    display: flex;    
    height: 100vh;
    width: 100vw;
    margin: 0;
}


.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    padding: 10px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;    
    background-color: white; 
    border: none;  
} 

/* Section configuration */
.api-key-section {
    flex: 0 0 30%;
    background-color: white;
    padding: 20px;
    margin-left: 0%;  /* Ensure consistent spacing around the sections */
    margin-right: 1%;
    border-radius: 5px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

/* Ensures the entire .promotion-section expands with the content */
.promotion-section {
    flex: 1 1 70%;  /* Allows the section to grow with content */
    background-color: white;
    padding: 20px;
    margin-left: 2%; 
    margin-right: 2%;
    border-radius: 8px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

/* Ensures the .chat-container grows with its content without internal scrolling */
.chat-container {
    flex: 1 1 auto;  /* Allows the section to grow with content */    
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    width: 100%; /* Takes the full width of its parent */
    min-height: 300px; /* Minimum height to maintain a good appearance initially */
    box-sizing: border-box; /* Includes padding in width and height calculations */
}

 

/* .promotion-section {
    flex: 1 1 auto;
    background-color: white;
    padding: 20px;
    margin-left: 2%; 
    margin-right: 2%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: calc(100vh - 60px);
}

.chat-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    min-height: 300px;
    width: 100%;
    overflow: auto;
} */




.footer {
    margin-top: auto;
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

.content {
    flex-grow: 1;
    padding: 0;
    overflow-y: auto;
    margin-left: 0;
}


.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* This will push the footer to the bottom */
    height: 100vh; /* Full height of the viewport */
    width: 200px;
    background-color: #0044cc;
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Remove default margin */
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    padding: 10px;
    display: block;
}

.signup-link {
    margin-top: 30px; /* Adjust the value based on the desired spacing */
}


.sidebar-logo img {
    width: 150px;
    height: auto;
    display: block; 
    margin-bottom: 20px;
}


iframe {
    width: 100%;
    height: 100%;
}



.key-info {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.details-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
}



.empty-line {
    height: 1em;
}



#imageInput {
    width: 100%; /* Make the input take full width of its parent */
}

.result-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    min-height: 300px;
    width: 100%; /* Make sure the chat container fills the section */
}

#displayImage {
    display: block; /* Hidden by default */    
    width: 50%; /* Fixed width */
    height: auto; /* Height automatically adjusts to maintain aspect ratio */
    max-width: 100%; /* Ensures the image does not exceed the container width */
    margin: 20px auto; /* Space above the image */
}


/*login */
.login-container {
    position: absolute;
    top: 50%; /* Position halfway down the parent (body or html) */
    left: 50%; /* Position halfway across the parent (body or html) */
    width: 320px; /* Controlled width for aesthetics */
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%); /* Offset by its own dimensions to center exactly */
    text-align: center;
}

.form-group {
    margin-bottom: 15px; /* Spacing between form elements */
}

input[type="email"], input[type="password"] {
    width: 100%; /* Full width of the container */
    padding: 8px;
    border: 1px solid #ccc; /* Subtle border for the inputs */
    border-radius: 4px; /* Rounded corners for the inputs */
}

button {
    width: 100%; /* Makes the button stretch to the container's width */
    padding: 10px;
    background-color: #007bff; /* Primary color for the button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* end login */ 

/* copy button */
.copy-btn {
    background-color: white;
    color: #007bff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;  /* Make it inline */
    align-items: center;
    vertical-align: middle; /* Aligns the button vertically with the text */
}

.copy-btn i {
    margin-right: 5px;
}


/* end copy button */ 

/* sign up */
table {
    width: 90%;
    border-collapse: collapse;
}

table td {
    padding: 8px;
    vertical-align: top;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="tel"] {
    width: 90%;
    padding: 8px;
    margin-top: 4px;
}

/* end sign up */


/* file upload */ 

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-family: 'Nanum Gothic', sans-serif; /* Assuming this is your chosen font */
    font-size: 16px;
    text-align: center;
    margin: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}

.custom-file-upload i {
    margin-right: 8px; /* Space between icon and text */
}

.upload-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}


/* end file upload */ 



/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .api-key-section,
    .promotion-section {
        width: 100%;
        margin-bottom: 20px;
        margin-left: 0;
    }
    .signup-link {
        margin-top: 15px; /* Smaller margin on mobile devices */
    }
    .footer {
        font-size: 12px; /* Smaller font size on smaller screens */
    }
}


