/* General Styles */
body {
    font-family: 'Courier New', Courier, monospace; /* Monospace for ASCII theme */
    background-color: #000; /* Black background */
    color: #00ff00; /* Neon green text */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column; /* Stack content for better mobile handling */
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.ascii-container {
    width: 80%;
    max-width: 800px;
    margin-top: 0 auto; /* Remove extra space on top */
    text-align: center;
    position: relative; /* Maintain relative positioning */
    overflow: visible; /* Ensure the ASCII art is not clipped */
}

.ascii-art {
    color: #00ff00; /* Neon green */
    font-size: 14px; /* Adjust font size for visibility */
    line-height: 1; /* Tighten vertical spacing */
    white-space: pre; /* Preserve spaces and line breaks */
    text-align: center; /* Center align the ASCII art */
    margin: 0 auto 10px auto; /* Center horizontally and add spacing below */
    display: block; /* Ensure it remains a block element */
    z-index: 1; /* Ensure it appears above other elements */
    position: relative; /* Ensure it's positioned relative to its container */
    left: -50px;
}


/* Predefined Prompts */
.predefined-prompts {
    margin: 10px 0 0; /* Add spacing above */
    padding: 10px;
    background-color: #001a00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    font-size: 14px;
    text-align: center;
}

.predefined-prompts ul {
    list-style-type: none;
    padding: 0;
}

.predefined-prompts li {
    margin: 5px 0;
}

.predefined-question {
    background-color: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px 10px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 5px;
}

.predefined-question:hover {
    background-color: #00ff00;
    color: #001a00;
}

.chat-box {
    background-color: #000;
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 10px;
    height: 300px;
    overflow-y: auto; /* Allows scrolling */
    margin-bottom: 10px;
    color: #00ff00;
    display: flex;
    flex-direction: column; /* Ensures proper stacking */
    justify-content: flex-start; /* Aligns content at the top */
    font-size: 14px; /* Default font size for larger screens */
    line-height: 1.4; /* Improved readability */
}

.notice {
    font-size: 12px;
    color: #00ff00; /* Neon green */
    text-align: center;
    margin-top: 5px;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keep it behind all content */
    background-color: black;
}


/* Adjustments for messages in chat box */
.message {
    margin: 5px 0;
    word-wrap: break-word; /* Prevents long text from overflowing */
}

.user-message {
    text-align: right;
    color: #00cc00; /* Slightly lighter green for user messages */
    font-size: inherit; /* Keep font size consistent with chat box */
}

.bot-message {
    text-align: left;
    color: #00ff00; /* Retain neon green for DogAI */
    font-style: italic; /* Add distinction through styling */
    font-size: inherit; /* Keep font size consistent with chat box */
}
.error-message {
    text-align: center;
    color: red;
}

#chat-form {
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 10px;
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
}

#user-input:focus {
    outline: none;
    border-color: #00cc00; /* Brighter green when focused */
}

button {
    padding: 10px 20px;
    background-color: #00ff00;
    color: #000;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
}

button:hover {
    background-color: #004400; /* Darker green on hover */
    color: #00ff00;
    transform: scale(1.05); /* Slight zoom effect */
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    body {
        padding: 5px; /* Reduce padding */
        flex-direction: column; /* Stack items vertically */
        justify-content: flex-start; /* Align items to the top */
    }

    .ascii-container {
        width: 100%; /* Full width on mobile */
        max-width: none;
        margin-top: 5px; /* Add a small gap to avoid crowding */
    }

    header {
        margin-bottom: 10px; /* Reduce spacing below header */
    }

    .ascii-art {
        font-size: 14px; /* Smaller font size for mobile */
        margin-bottom: 5px; /* Reduce space below ASCII art */
    }

    header h1 {
        font-size: 20px; /* Smaller title size for mobile */
        margin: 5px 0; /* Reduce space above and below title */
    }

    header p {
        font-size: 16px; /* Smaller subtext for better fit */
        margin: 5px 0; /* Reduce spacing above and below paragraphs */
    }

    .chat-box {
        height: 220px; /* Adjust height for mobile */
        font-size: 12px; /* Smaller font size for chat messages */
        line-height: 1.3; /* Slightly reduced line spacing */
    }

    #chat-form {
        flex-direction: column; /* Stack input and button */
        gap: 5px; /* Reduce spacing between elements */
        margin-bottom: 5px; /* Minimize space below form */
    }

    #user-input {
        width: 100%; /* Full width input */
        font-size: 12px; /* Smaller input font */
    }

    button {
        width: 100%; /* Full width button */
        font-size: 12px; /* Smaller button font */
    }

    .predefined-prompts {
        margin-top: 5px; /* Add a small gap from the form */
        padding: 5px; /* Reduce padding on mobile */
        font-size: 12px; /* Smaller font size for predefined prompts */
    }

    .predefined-prompts ul {
        margin: 0;
        padding: 0;
    }

    .predefined-question {
        font-size: 12px; /* Smaller button font for predefined questions */
        padding: 5px; /* Reduce padding inside buttons */
    }
}


.hidden {
    display: none;
}


#toggle-prompts {
    width: 100%;
    padding: 10px;
    background-color: #001a00;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    margin-bottom: 10px;
}

#toggle-prompts:hover {
    background-color: #00ff00;
    color: #001a00;
}

/* Landing Page Styles */
.landing-container {
    text-align: center;
    color: #00ff00; /* Neon green */
    position: relative;
    z-index: 1; /* Ensure it's above the matrix effect */
}

.options {
    margin-top: 20px;
}

.option-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    font-family: 'Courier New', Courier, monospace;
    color: #000;
    background-color: #00ff00; /* Neon green */
    border: 1px solid #00ff00;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.option-button:hover {
    background-color: #004400; /* Darker green */
    color: #00ff00;
    transform: scale(1.1); /* Slight zoom effect */
}
/* General button styles */
.landing-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Add spacing between buttons */
    margin-top: 20px;
}

.landing-options button {
    padding: 15px 30px;
    background-color: #001a00;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3); /* Add glowing shadow */
}

.landing-options button:hover {
    background-color: #00ff00;
    color: #001a00;
    box-shadow: 0 6px 12px rgba(0, 255, 0, 0.5); /* Brighter glow on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .landing-options button {
        width: 80%; /* Buttons take 80% of the screen width */
        font-size: 14px; /* Slightly smaller font size for mobile */
    }
}

/* Faucet Page Styles */
.faucet-container {
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    background-color: #001a00;
    color: #00ff00;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

.faucet-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.faucet-container p {
    font-size: 14px;
    margin-bottom: 20px;
}

#faucet-form input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #00ff00;
    border-radius: 5px;
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

#faucet-form button {
    padding: 10px 20px;
    background-color: #00ff00;
    color: #000;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
}

#faucet-form button:hover {
    background-color: #004400;
    color: #00ff00;
}

#faucet-message {
    margin-top: 10px;
    color: #00ff00;
    font-size: 14px;
}

.hidden {
    display: none;
}
/* Social Links Section */
.social-links {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
}

.social-links a {
    color: #00ff00; /* Neon green */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #004400; /* Darker green on hover */
}

/* Social Links for Mobile */
@media (max-width: 768px) {
    .social-links {
        font-size: 14px;
    }

    .social-links a {
        margin: 0 5px; /* Reduce spacing for smaller screens */
    }
}
footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #00ff00; /* Neon green */
}

/* Style for the container holding the dynamic fields */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 500px;
    gap: 15px; /* Space between fields */
    border: 1px solid #00ff00; /* Optional: Add border for clarity */
    padding: 15px; /* Space inside the container */
    background-color: #001a00; /* Optional: Slight background colour difference */
    border-radius: 5px; /* Slightly rounded corners */
}

/* Each field group (label and input) */
.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Full width */
    gap: 10px; /* Space between label and value */
}

/* Label style */
label {
    flex: 1; /* Allow labels to take equal space */
    text-align: right; /* Align labels to the right */
    font-size: 14px; /* Standard font size */
    color: #00ff00; /* Neon green for consistency */
    padding-right: 10px; /* Space between label and input */
}

/* Input style (readonly fields for display) */
input[readonly] {
    flex: 2; /* Allow values to take more space than labels */
    font-size: 14px; /* Match font size with labels */
    color: #00ff00; /* Neon green text */
    background-color: transparent; /* Match the background */
    border: none; /* Remove borders for clean display */
    outline: none; /* Prevent outline on focus */
    text-align: left; /* Align text to the left */
    padding: 0; /* Remove padding for tighter alignment */
    width: 100%; /* Ensure full width */
}
/* Editable input fields */
input {
    flex: 2;
    font-size: 14px;
    color: #00ff00;
    background-color: #000;
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 8px;
    outline: none;
}

/* Highlight input fields on focus */
input:focus {
    border-color: #00cc00; /* Brighter green for focus */
    box-shadow: 0 0 5px #00ff00; /* Glow effect */
}

/* Placeholder text styling */
input::placeholder {
    color: #007700; /* Subtle green placeholder */
    font-style: italic;
}

/* Highlight Buy Per Buyer */
.highlight {
    font-size: 18px;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 15px;
}

/* Projection Table */
#projection-table {
    width: 100%; /* Take full width */
    max-width: 600px; /* Limit table width */
    border-collapse: collapse; /* Remove default spacing */
    margin: 20px auto; /* Center table */
    background-color: #001a00; /* Match page theme */
    color: #00ff00; /* Neon green */
    font-size: 14px; /* Adjust font size for readability */
}

#projection-table th, #projection-table td {
    border: 1px solid #00ff00; /* Add border */
    padding: 10px 15px; /* Add padding for better spacing */
    text-align: center; /* Center-align text */
}

#projection-table th {
    font-weight: bold;
    background-color: #003300; /* Slightly darker green */
}

#projection-table tbody tr:nth-child(odd) {
    background-color: #002200; /* Alternate row background */
}

#projection-table tbody tr:nth-child(even) {
    background-color: #001a00; /* Match default background */
}

/* Center alignment for Calculation Container */
#calculation-container {
    margin: 20px auto;
    text-align: center;
}

