/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
    /* Set Fira Code globally */
}

body {
    background-color: #F7F9FC;
    color: #2E2E2E;
}

/* Container */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #31C48D;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.bodytag {
    color: cadetblue;
    padding: 40px 0;
    text-align: center;
    font-size: small;
    max-width: 500px;
    margin: 0 auto;
}

h1 {
    font-size: xx-large;

}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-top: 20px;
}

/* Features */
.section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feature-item {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #D3D3D3;
    border-radius: 10px;
    text-align: center;
}

/* Search Bar */
.search-bar input {
    width: 100%;
    padding: 25px;
    font-size: 20px;
    border: 2px solid goldenrod;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    border-color: palevioletred;
    /* Focus outline color */

}

/* Style the result container */
#user-question {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;

    border-radius: 10px;
    text-align: justify;

}

#ai-result {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    text-align: justify;
    line-height: 2.0;
    /* Increase line spacing between lines */
}

#ai-result p {
    margin-bottom: 20px;
    /* Add space between paragraphs */
}

#ai-result[dir="rtl"] {
    text-align: right;
}

/* Footer */
footer {
    padding: 20px 0;
    background-color: #096A2E;
    color: white;
    text-align: center;
}



/* Button Styles */
button[type="submit"] {
    background-color: goldenrod;
    /* Primary green background */
    color: white;
    /* White text */
    padding: 12px 24px;
    /* Padding for a larger button */
    font-size: 16px;
    /* Slightly larger text */
    border: none;
    /* Remove default border */
    border-radius: 8px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor for interactivity */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Smooth transition effects */
    font-family: 'Fira Code', monospace;
    /* Apply a monospace font for a modern look */
    margin-top: 30px;
}

/* Button Hover Effects */
button[type="submit"]:hover {
    background-color: #28A279;
    /* Darker green on hover */
    transform: scale(1.05);
    /* Slightly increase size on hover */
}

/* Button Focus Effects */
button[type="submit"]:focus {
    outline: none;
    /* Remove default focus outline */
    box-shadow: 0 0 10px rgba(49, 196, 141, 0.5);
    /* Add custom focus shadow */
}

/* Disabled Button Styling */
button[type="submit"]:disabled {
    background-color: #cccccc;
    /* Gray background when disabled */
    cursor: not-allowed;
    /* Disable cursor when button is disabled */
}

/* Spinner styles */
.spinner {
    border: 8px solid #f3f3f3;
    /* Light gray */
    border-top: 8px solid #31C48D;
    /* Green color */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: block;
}

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

    100% {
        transform: rotate(360deg);
    }
}