body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.input-area {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#loading {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}

.hidden {
    display: none;
}

.image-area {
    margin-top: 20px;
    border: 1px dashed #ccc;
    padding: 10px;
    min-height: 200px; /* Placeholder height */
    display: flex;
    justify-content: center;
    align-items: center;
}

#generated-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    display: block; /* Remove extra space below image */
    margin: 0 auto;
}

#generated-image:not([src]) {
  visibility: hidden; /* Hide the img tag if it has no src */
}


