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

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

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

select,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

select {
    max-width: 400px;
    text-align: center;
}

textarea {
    height: 150px;
    resize: none;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

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

.results {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.results textarea {
    height: 300px;
    width: 650px;
    flex: 1;
    margin-right: 10px;
    margin-bottom: 10px;
}

.results textarea:last-child {
    margin-right: 0;
}

.results .translation-result {
    height: 300px;
    width: 650px;
    flex: 1;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    white-space: pre-wrap;
    background-color: #f9f9f9;
}

.detected-language {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

@media (max-width: 707px) {
    .results textarea, .results .translation-result {
        width: 100%;
        margin-right: 0;
    }
}

.updating {
    color: gray;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: none;
}

.loading-overlay.show {
    display: flex;
}
