/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* Adding a linear gradient for a subtle textured effect */
    background: darkolivegreen;
    font-size: 16px; /* Setting the base font size */
}

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

header {
    background-color: rgb(243, 236, 222);
    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: rgb(150, 104, 45);
    margin: 10px 0;
    font-size: 2rem; /* Convert px to rem */
    font-family: 'Impact', 'Times New Roman', Times, serif; 
}

header p, footer p {
    color: rgb(150, 104, 45);
    margin: 0;
    font-size: 1rem; /* Convert px to rem */
}

#chat-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8); 
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    color: black;
    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: black;
    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: #2c2f33;
    color: white;
    cursor: pointer;
}

#send-button:hover {
    background-color: green;
}

footer {
    background-color: rgb(243, 236, 222);
    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;
}

.cookie-popup {
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    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: #333;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-left: 10px;
}

.accept-cookies-button:hover {
    background-color: green;
}

.company-banner {
    text-align: center;
    padding: 20px;
    background-color: black;
    color: white;
}

.company-banner .company-text {
    font-weight: bold;
    margin-bottom: 10px; /* Adjust if needed */
}

.company-banner img {
    width: 150px; /* Adjust based on your logo */
    height: auto;
    margin-bottom: 10px; /* Adjust if needed */
    border-radius: 15px; /* Adjust the radius to get the desired roundness */
}

.company-banner .company-website {
    color: white;
    text-decoration: none; /* Removes underline from links */
    font-weight: bold;
}

.company-banner .openai-logo {
    width: 130px; /* Adjust based on your preference */
    height: auto;
    margin: 0px auto; /* Centers the logo and adds margin */
    display: block; /* To properly apply margin:auto for centering */
    border-radius: 0px; /* Adjust the radius to get the desired roundness */
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 0.8rem; /* Convert px to rem */
    color: white;
    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: rgb(150, 104, 45);
    text-decoration: none;
}

footer p {
    text-align: center;
}

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

.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: 9999;
}

.passwordPrompt {
    background-color: rgb(255, 255, 0);
    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: black;
}

.passwordPrompt input {
    width: 80%;
    box-sizing: border-box;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.passwordPrompt button {
    background-color: #2c2f33;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.passwordPrompt button:hover {
    background-color: green;
}

.container {
    background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white */
    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); /* 3D effect */
    margin: 20px auto;
    max-width: 800px; /* Adjust as per your design */
  }

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

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

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

.nav-container li {
    display: inline-block; /* Allows for centering inline with other elements */
    margin-right: 20px; /* Adds some space between menu items if you add more later */
}

.nav-container li:last-child {
    margin-right: 0; /* Removes margin from the last item to keep it even */
}

.home-link {
    display: block; /* Makes the link fill the container for larger click area */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */
    padding: 10px 20px; /* Adds some space inside the container */
    border: 1px solid #ccc; /* Adds a border to the container */
    border-radius: 5px; /* Optional: Rounds the corners of the border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for 3D effect */
    font-weight: bold; /* Makes the text bold */
    text-decoration: none; /* Removes the underline from the link */
    color: #000; /* Sets the text color to black or any other color you prefer */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.home-link:hover {
    background-color: rgba(255, 255, 255, 0.7); /* Changes background on hover for interaction feedback */
}

/* Style for the table */
table {
    border-collapse: collapse; /* Ensures borders are neat */
    width: 100%; /* Optional: sets the table to full width */
  }
  
  /* Style for table headers and cells */
  th, td {
    border: 1px solid black; /* Sets a black border */
    padding: 8px; /* Adds some spacing around the content */
    text-align: left; /* Aligns text to the left */
  }
  
  /* Style for table headers */
  th {
    background-color: #f2f2f2; /* Sets a background color */
    font-weight: bold; /* Makes the header text bold */
}

#guide-container {
    background-color: rgba(255, 255, 255, 0.8);
    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: #2c2f33;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: block; /* Use block to allow margin auto to work */
    margin: 20px auto; /* Center the button and add vertical spacing */
    width: max-content; /* The button will only be as wide as its content */
    text-decoration: none; /* Remove underline from link */
}

.home-button:hover {
    background-color: green;
}

.action-button {
    background-color: #2c2f33;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block; /* Keep the buttons inline */
    margin: 5px; /* Spacing around buttons */
    text-decoration: none; /* Remove underline from links */
    font-size: 1em; /* Adjust font size as needed */
}

.action-button:hover {
    background-color: green;
}

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

.affiliate-links-container {
    background-color: #f9f9f9; /* Lighter appearance */
    border: 1px solid #ddd; /* Slight border */
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 3D effect */
    border-radius: 5px; /* Rounded corners */
}

.affiliate-links-container a {
    color: #007bff; /* Link color */
    text-decoration: none; /* No underline */
}

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