body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.input-section, .output-section, .photo-section, .tts-section {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.controls button#swap-lang-btn {
    background-color: #6c757d;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls button#swap-lang-btn:hover {
    background-color: #5a6268;
}

.controls div {
    flex: 1;
}

.controls select, .controls button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.controls button {
    background-color: #007bff;
    color: white;
    border: none;
}

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

#photo-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

#speak-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#speak-btn:hover {
    background-color: #218838;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }
}