/*==========================
    Global Variables
==========================*/
:root {
    --primary-color: #005ea2;
    --secondary-color: #f1f1f1;
    --text-color: #ffffff;
    --link-color: #005ea2;
    --link-hover-color: #003366;
    --font-family: Arial, sans-serif;
    --input-border: 1px solid #ccc;
    --border-radius: 5px;
    --box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    --header-bg-color: #005ea2;
    --header-padding: 10px 20px;
    --footer-font-size: 0.875em;
    --footer-text-color: #555;
    --footer-bg-color: #e0e0e0;
}

/*==========================
    General Styles
==========================*/
body {
    font-family: var(--font-family);
    margin: 0;
    color: #000;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.usa-layout-docs__main {
    padding: 40px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

/*==========================
    Section and Headings
==========================*/
.usa-section {
    padding: 20px 0;
}

.usa-section__heading {
    margin-top: 0;
    font-size: 1.75em;
    color: var(--primary-color);
}

.usa-section__subheading {
    margin-bottom: 10px;
    font-size: 1.25em;
    color: var(--primary-color);
}

.usa-section__list {
    padding-left: 20px;
    margin: 10px 0;
    list-style-type: disc;
}

/*==========================
    Header Styles
==========================*/
.usa-header-basic {
    background-color: var(--header-bg-color);
    padding: var(--header-padding);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.usa-header-basic .usa-navbar {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.usa-header-basic .usa-logo__text a {
    color: var(--text-color);
    text-decoration: none;
}

.usa-header-basic .usa-nav__primary .usa-nav__link {
    padding: 10px 15px;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
}

.usa-header-basic .usa-nav__primary .usa-nav__link:hover {
    color: var(--link-hover-color);
}

.usa-banner .usa-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*==========================
    Form Styles
==========================*/
#questionForm {
    margin-bottom: 20px;
}

.form-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.question-input {
    flex: 2;
    margin-right: 20px;
    min-width: 100%;
}

#questionInput {
    height: 150px;  /* Larger text area */
    resize: none;
    border: var(--input-border);
    border-radius: var(--border-radius);
    width: 100%;
}

.response-type {
    flex: 0 0 300px;  /* Fixed width for the response type section */
}

.response-type-options {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    max-height: 400px;  /* Adjust as needed */
    overflow-y: auto;
}

.response-type-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.response-type-option input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
}

.response-type-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.response-type-name {
    font-weight: bold;
    color: var(--primary-color);
}

.response-type-about {
    font-size: 0.9em;
    color: #555;
}

button {
    width: 100%;  /* Make buttons full width */
    margin-top: 10px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
}


button:hover {
    background-color: var(--link-hover-color);
}

.section-title {
    margin-top: 1em;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

/*==========================
    Response Styles
==========================*/
.response-area {
    min-height: 200px;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #ccc;     /* Gray border */
    color: #333;                /* Dark text color */
    font-size: 1em;
    line-height: 1.5;
    overflow-y: auto;
}

.warning-message {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    color: #856404;
}

.answer-message {
    margin-top: 15px;
    font-size: 1em;
    line-height: 1.6;
    color: #212529;
}

.links-container {
    margin-top: 15px;
}

.links-container a {
    display: inline-block;
    margin-right: 10px;
    color: var(--link-color);
}

.links-container a:hover {
    text-decoration: underline;
}

/*==========================
    Loading Spinner Styles
==========================*/
.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

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

/*==========================
    Footer Styles
==========================*/
.footer-callout {
    font-size: 1em;
    font-weight: normal;
    padding: 10px;
    border: 1px solid #000; /* Black border */
    border-radius: var(--border-radius);
    color: #000; /* Black text */
    background-color: var(--footer-bg-color);
    width: fit-content;
    margin: 10px auto;
}

.footer-links a {
    color: #000; /* Black text */
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-legal {
    font-size: var(--footer-font-size);
    text-align: center;
    color: var(--footer-text-color);
    margin-top: 20px;
}

.footer-bottom {
    background-color: var(--secondary-color);
    padding: 10px 0;
    text-align: center;
}

/*==========================
    Media Queries
==========================*/
@media (max-width: 768px) {
    .usa-layout-docs__main {
        padding: 20px 20px 20px;  /* Reduced padding for smaller screens */
    }

    .form-container {
        flex-direction: column;
    }

    .question-input,
    .response-type {
        flex: 1 1 100%;
        margin-right: 0;
    }

    .response-type {
        margin-top: 20px;
    }

    #questionInput {
        height: 100px;  /* Smaller height for smaller screens */
    }

    .footer-callout {
        font-size: 1em;
    }
}

/*==========================
    Content Container Styles
===========================*/
.content-container {
    max-width: 800px;  /* Set the desired maximum width */
    margin: 0 auto;    /* Center the container */
    padding: 0 20px;   /* Add horizontal padding */
}

/* Ensure headings and sections span full width of the container */
.content-container .usa-section,
.content-container .usa-heading,
#questionForm,
#response {
    margin-bottom: 20px;
}

/* Adjust the form to fit the container */
#questionForm {
    width: 100%;
}

/* Adjust the response area to fit the container */
#response {
    width: 100%;
}

/* Adjust buttons to align with the container */
#reloadConfig,
#reloadData {
    width: auto;
    margin-top: 10px;
}

/* Buttons Container */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.button-container .usa-button {
    margin: 5px;
}


/* Swift Image */
.swift-image {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 20px auto;
}



/* Centering the container, message, and button */
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    margin-top: 20px; /* Optional: Adjust spacing above */
}

.logged-in-note {
    margin-bottom: 10px; /* Space between the note and the button */
    text-align: center; /* Center text within the paragraph */
}



/* Limit the width of the "Report a Bug" button and center it */
.report-bug-button {
    display: inline-block; /* Inline-block to control the width */
    width: auto; /* Adjust the width to fit the text content */
    padding: 10px 20px; /* Add padding for better look */
    margin: 0 auto; /* Center the button horizontally */
    cursor: pointer; /* Add a pointer cursor on hover */
}
