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

.container {
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

p {
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

.input-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}

.text-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.translate-button {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

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

.translate-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

.results-section {
    margin-top: 30px;
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.results-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

.output-text {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 1.2em; /* Ensure space for output */
    word-wrap: break-word;
}
