/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* Updated to use Navy Blue for a coherent and thematic background */
    background: linear-gradient(145deg, #003366, #003366); 
    font-size: 16px; /* Setting the base font size */
}

header, .input-container, footer {
    padding: 20px;
    text-align: center;
}

header {
    background-color: White; /* Navy Blue for header */
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

header img {
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

header h1 {
    color: #003366;
    margin: 10px 0;
    font-size: 2rem; /* Convert px to rem */
    font-family: sans-serif; 
}

header p, footer p {
    color: #003366;
    margin: 0;
    font-size: 1rem; /* Convert px to rem */
}

#chat-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background: #FFFFFF; /* White for clarity and focus on chat content */
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    color: #003366; /* Navy Blue for text, ensuring good readability */
    overflow-wrap: break-word; /* Ensure this is here if you want to contain all content */
}

.input-container {
    display: flex;
    justify-content: space-between; /* Adjusts children's horizontal spacing */
    align-items: center; /* Centers children vertically */
    max-width: 800px;
    margin: 0 auto 20px auto; /* Adjust as necessary for your design */
}

.user-message, .bot-message {
    margin-bottom: 15px;
    word-wrap: break-word; /* Forces words to break and wrap to the next line */
}

#user-input, #send-button {
    padding: 10px;
    border: none;
    border-radius: 8px;
}

#user-input {
    flex-grow: 1;
    margin-right: 10px;
    box-sizing: border-box; /* Include padding and borders in the element's size */
    padding: 15px; /* Increased padding for a larger input field */
    border: none;
    border-radius: 8px;
    color: #003366;
    font-size: 1.0em; /* Larger font size */
    resize: none; /* Disable manual resizing */
    overflow-y: hidden; /* Prevent scrollbar */
    font-family: Arial, sans-serif;
}

#send-button {
    width: 150px; /* Fixed width for the send button */
    height: 50px; /* Fixed height for the send button */
    padding: 15px 20px; /* Adjust padding to vertically align with the input field */
    background-color: #228B22; /* Forest Green for button */
    color: white;
    cursor: pointer;
}

#send-button:hover {
    background-color: #306030; /* A darker shade of Forest Green for hover effect */
}

footer {
    background-color: White; /* Navy Blue for footer */
    color: white;
}

@media (max-width: 600px) {
    header img {
        width: 50%;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .input-container {
        display: flex; /* Use flexbox */
        flex-direction: column; /* Stack children vertically */
        align-items: stretch /* Stretch children to fill the container */
    }

    .input-container input, 
    .input-container button {
        width: calc(100% - 40px); /* Adjusted to account for padding, consider removing if using flexbox alignment */
        box-sizing: border-box; /* Includes padding and border in the element's total width */
    }

    #user-input {
        margin-bottom: 10px; /* Space between the input and the button */
        margin-right: 0px;
    }

    #send-button {
        /* Adjusts the width if you want the button to be slightly narrower than the input */
        width: calc(100% - 45px); /* Adjust this value to make the button slightly narrower than the input */
        /* Center the button under the input */
        margin: 0 auto 20px auto; /* Adds margin to the top and bottom, and auto margin to the left and right */
    }

    #chat-container {
        margin: 20px 20px; /* Adds margin on each side for mobile */
        
}
}

@media (min-width: 601px) and (max-width: 768px) {
    .input-container {
        display: flex; /* Use flexbox */
        flex-direction: column; /* Stack children vertically */
        align-items: stretch; /* Stretch children to fill the container */
    }

    .input-container input, 
    .input-container button {
        width: calc(100% - 40px); /* Adjusted to account for padding, consider removing if using flexbox alignment */
        box-sizing: border-box; /* Includes padding and border in the element's total width */
    }

    #user-input {
        margin-bottom: 10px; /* Space between the input and the button */
        margin-right: 0px;
    }

    #send-button {
        /* Adjusts the width if you want the button to be slightly narrower than the input */
        width: calc(100% - 45px); /* Adjust this value to make the button slightly narrower than the input */
        /* Center the button under the input */
        margin: 0 auto 20px auto; /* Adds margin to the top and bottom, and auto margin to the left and right */
    }

    #chat-container {
        margin: 20px 20px; /* Adds margin on each side for mobile */
        
}
}
.message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    line-height: 1.4;
    max-width: 90%;
    margin: 5px auto;
    background-color: #FFFFFF; /* White for message bubbles */
    color: #003366; /* Navy Blue for text */
}

.cookie-popup {
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    background-color: #003366; /* Navy Blue for a consistent look */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cookie-popup p {
    margin-right: 20px;
}

.accept-cookies-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #228B22; /* Forest Green */
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-left: 10px;
}

.accept-cookies-button:hover {
    background-color: #306030; /* A darker shade of Forest Green for hover */
}

.company-banner {
    text-align: center;
    padding: 20px;
    background-color: Black; /* Navy Blue */
    color: white;
}

.company-banner .company-text {
    font-weight: bold;
    margin-bottom: 10px;
}

.company-banner img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 15px;
}

.company-banner .company-website {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.company-banner .openai-logo {
    width: 130px;
    height: auto;
    margin: 0px auto;
    display: block;
    border-radius: 0px;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 0.8rem;
    color: #959595; /* Warm Gray for the disclaimer text */
    background-color: transparent;
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

footer li {
    margin: 0 10px;
}

footer a {
    color: #003366; /* Retained for readability against the Navy Blue footer */
    text-decoration: none;
}

footer p {
    text-align: center;
}

footer .registered-info {
    font-size: 0.6em; /* Smaller text size retained for detail */
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay color can remain for a semi-transparent effect */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.passwordPrompt {
    background-color: #FFCC00; /* Rich Yellow for visibility */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 300px;
}

.passwordPrompt h2 {
    margin: 0 0 15px 0;
    color: #003366; /* Navy Blue for contrast and readability */
}

.passwordPrompt input {
    width: 80%;
    box-sizing: border-box;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc; /* This detail can remain as it's more for structure than color theme */
    border-radius: 4px;
}

.passwordPrompt button {
    background-color: #228B22; /* Forest Green for the button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.passwordPrompt button:hover {
    background-color: #306030; /* A darker shade of Forest Green for hover effect */
}

.container {
    background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white retained for light and airy feel */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    margin: 20px auto;
    max-width: 800px;
}

.disclaimer-header {
    text-align: center;
    text-decoration: underline;
}

.nav-container {
    text-align: center; /* Centers the navigation container */
    margin: 20px 0; /* Adds some space around */
}

.nav-container ul {
    list-style-type: none; /* No bullet points */
    padding: 0; /* No default padding */
}

.nav-container li {
    display: inline-block; /* Centered inline */
    margin-right: 20px; /* Space between menu items */
}

.nav-container li:last-child {
    margin-right: 0; /* No extra margin for the last item */
}

.home-link {
    display: block; /* Larger clickable area */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white for a soft, inviting appearance */
    padding: 10px 20px;
    border: 1px solid #ccc; /* Subtle border for definition */
    border-radius: 5px; /* Rounded corners for a modern, friendly look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    font-weight: bold;
    text-decoration: none; /* Clean, uncluttered appearance */
    color: #000; /* Black for readability */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

.home-link:hover {
    background-color: rgba(255, 255, 255, 0.7); /* Slightly more opaque on hover for subtle feedback */
}

/* Style for the table */
table {
    border-collapse: collapse;
    width: 100%;
}
  
/* Style for table headers and cells */
th, td {
    border: 1px solid #003366; /* Navy Blue for borders to align with theme */
    padding: 8px;
    text-align: left;
}
  
/* Style for table headers */
th {
    background-color: #228B22; /* Forest Green for table headers */
    color: white; /* Ensuring readability */
    font-weight: bold;
}

#guide-container {
    background-color: rgba(255, 255, 255, 0.8); /* Retaining semi-transparent white for readability */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin: 20px auto;
    max-width: 800px;
}

.home-button {
    background-color: #228B22; /* Forest Green for consistency with action elements */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    width: max-content;
    text-decoration: none;
}

.home-button:hover {
    background-color: #306030; /* Darker Forest Green for hover effect */
}

.action-button {
    background-color: #228B22; /* Forest Green for action buttons */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    text-decoration: none;
    font-size: 1em;
}

.action-button:hover {
    background-color: #306030; /* A darker shade of Forest Green */
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.affiliate-links-container {
    background-color: #e6e7ff; /* Updated to White for a clean look */
    border: 1px solid #ddd; /* Slight border retained */
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.affiliate-links-container a {
    color: #007bff; /* Bright link color retained for clarity and visibility */
    text-decoration: none;
}

.affiliate-links-container a:hover {
    text-decoration: underline; /* Underline on hover for interaction indication */
}