/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set a cool gradient background for the body */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(120deg, #3498db, #8e44ad);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Style the header */
.header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Style the container */
.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 80%;
    max-width: 800px;
    margin-top: 20px;
}

/* Style the announcements */
.announcement {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Style the text input areas */
.text-input {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

textarea.from-text,
textarea.to-text {
    width: 48%;
    height: 200px; /* Increase height */
    padding: 10px;
    border: none;
    border-radius: 5px;
    resize: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Style the control panel */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

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

.controls .exchange {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.controls .exchange:hover {
    transform: rotate(180deg);
}

/* Style the icons */
.icons i {
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.icons i:hover {
    color: #f39c12;
}

/* Style the language selectors */
.language-selector {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #2980b9;
    color: #fff;
}

/* Style the buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #66cc;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px;
}

button:hover {

    /*background: #c0392b;*/
}

button#translate-btn {
    display: block;
    margin: 20px auto;
}

button#upload-btn,
button#ocr-btn,
button#download-btn {
    display: block;
    margin: 10px auto;
}

/* Style the file input */
#file-input {
    display: block;
    margin: 10px auto;
    /*background: #e74c3c;*/
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}