:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #ecf0f1;
    --text-color: #ecf0f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.5s ease;
}

.container {
    text-align: center;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 6px 6px rgba(0,0,0,0.23);
    width: 90%;
    max-width: 600px;
}

h1 {
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
    resize: none;
    margin-bottom: 1rem;
}

button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #bdc3c7;
    transform: translateY(-2px);
}

#mood-board {
    display: flex;
    margin-top: 2rem;
    gap: 1.5rem;
}

#image-container {
    flex: 1;
}

#generated-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 250px;
}

#poem-container {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

#poem {
    font-style: italic;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

#voice-btn {
    align-self: flex-start;
}
