/* General Body Styling */
body {
    color: white;
    margin: 0;
    padding: 20px;
    background-color: rgb(19, 124, 4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "New Amsterdam", sans-serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
}

/* HEADER */

.main-header {
    text-align: center; /* Center the text */
    margin-top: 50px;
}

h1 {
    font-size: 68px; /* Larger title size */
    font-weight: bold;
    color: white; /* Standard color for the non-gradient text */
    margin: 0;
}

.highlight-text {
    background: linear-gradient(90deg, #00FF00, #2b8d2b); /* Green gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 18px;
    color: #aaa; /* Light gray subtitle */
    margin-top: 10px;
}


/* HEADER */
/* -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- */
/* SITE BACKGROUND */

svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* SITE BACKGROUND */
/* -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- */
/* GENERATED IMAGES */

.images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adds space between images */
    margin: 20px 0;
}

.images img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: filter 0.5s ease;
}

.image-wrapper .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-wrapper img.loading {
    filter: brightness(50%);
}

/* GENERATED IMAGES */
/* -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- */
/* INPUT FIELD */

.input-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the container horizontally */
    background-color: #001122;
    border-radius: 10px;
    padding: 10px; /* Adjusted padding to make the input feel larger */
    width: 1200px; /* Increased width for a larger input */
    animation: container-glow 2s infinite alternate; /* Add glow animation */
    transition: box-shadow 0.3s ease;
    margin: 0 auto; /* Center container within the page */
    margin-top: 20px;
}

@keyframes container-glow {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), 0 0 30px rgba(0, 255, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.8), 0 0 60px rgba(0, 255, 0, 0.6);
    }
}

#text-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 15px; /* Increased padding for a larger feel */
    font-size: 18px; /* Increased font size */
    background-color: transparent;
    color: white;
}

.icon-button {
    background-color: rgba(0, 255, 0, 0.7);
    color: white;
    border: none;
    padding: 12px; /* Slightly larger button size */
    font-size: 16px; /* Larger button text */
    border-radius: 8px;
    cursor: pointer;
    margin-left: 5px;
}

.icon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-button:hover {
    background-color: rgba(0, 128, 0, 0.5);
}

#mic-button {
    margin-right: 5px;
}

.voice-input {
    display: flex;
    justify-content: center; /* Center input field on the page */
    width: 100%; /* Full-width container for centering */
}

#status, #result {
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
}

.icon-button:hover {
    background-color: #66cb32;
    transform: scale(1.05);
}

.icon-button:active {
    background-color: #4cb024;
    transform: scale(0.95);
}


#text-input:focus {
    border-color: #66cb32;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

#mic-button, #send-button {
    background-color: #00FF00; /* Initial color */
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

#mic-button:hover, #send-button:hover {
    background-color: #32CD32; /* Lighter green on hover */
    transform: scale(1.05); /* Slight scaling effect on hover */
}

#mic-button:active, #send-button:active {
    background-color: #228B22; /* Even darker green when clicked */
}

#status{
    margin-top: 30px;
    font-size: 18px;
    color: #aaa; /* Light gray subtitle */
}

/* INPUT FIELD */
/* -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- */