html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #eef2f6;
            color: #333;
        }

        .container {
            background-color: #fff;
            padding: 30px;
            width: 100%;
            height: 100%;
            margin: 0 20px;
            display: flex;
            flex-direction: column;
            gap: 0px;
            border: 1px solid #e0e0e0;
            box-sizing: border-box;
        }

        h1 {
            color: #2c3e50;
            margin: 0px;
            font-size: 1.8em;
        }

        .info-box {
            /*background-color: #e7f3fe;
            border-left: 6px solid #2196F3;*/
            margin: 0px;
            padding: 12px;
            border-radius: 6px;
            /*color: #2196F3;*/
            color: black;
            /*font-size: 1.0em;*/
            font-size: 0.8em;
            text-align: center;
            opacity: 0.6;
            line-height: 1.0;
        }

        .info-box strong {
            /*color: #0d47a1;*/
            color: black;
        }

        .swap-button {
            background-color: transparent;
            color: black;
            border: none;
            padding: 10px 18px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: background-color 0.3s ease, transform 0.1s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .swap-button:hover {
            background-color: transparent;
            transform: scale(1.02);
        }
        .swap-button:active {
            transform: scale(0.98);
        }

        .text-areas {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            position: relative;
            box-sizing: border-box;
            resize: vertical;
        }

        textarea {
            font-family: sans-serif;
            flex: 1;
            min-width: 300px;
            min-height: 180px;
            max-height: 400px;
            height: auto;
            overflow-y: auto;
            padding: 18px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1.5em;
            resize: none;
            box-sizing: border-box;
            line-height: 1.5;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        textarea:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
        }

        #outputTextArea {
            font-family: sans-serif;
            border: 0px solid #ddd;
            background-color: #f8f9fa;
            color: #555;
            cursor: not-allowed;
        }

        .translate-button {
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.25rem;
            font-weight: bold;
            transition: background-color 0.3s ease, transform 0.1s ease;
            width: 100%;
            letter-spacing: 0.5px;
        }

        .translate-button:hover {
            background-color: #27ae60;
            transform: translateY(-2px);
        }
        .translate-button:active {
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            body {
                padding: 10px 0;
            }

            .container {
                padding: 20px;
                margin: 0 10px;
                gap: 10px;
            }

            h1 {
                font-size: 1.2em;
                margin-bottom: 5px;
            }

            .info-box {
                padding: 10px;
                font-size: 0.9rem;
            }

            .language-selectors {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
                margin-bottom: 5px;
                display: flex;
                align-items: center;
            }

            .custom-select {
                font-size: 0.85rem;
                min-width: 90px;
                flex-grow: 1;
                flex-basis: 0;
            }

            .custom-select .select-selected {
                padding: 6px 8px;
                min-width: unset;
                background-position: right 8px center;
                background-size: 10px;
            }

            .swap-button {
                padding: 8px 15px;
                font-size: 1rem;
            }

            .text-areas {
                flex-direction: column;
                gap: 5px;
            }
            
            textarea {
                min-width: unset;
                font-size: 1.2em;
                min-height: 125px;
                max-height: 250px;
                padding: 15px;
            }

            .translate-button {
                padding: 12px 20px;
                font-size: 1.1rem;
                margin-top: 10px;
            }
        }
        
        .language-selectors {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 0px;
            flex-wrap: wrap;
        }

        .custom-select {
            position: relative;
            font-size: 1.05rem;
            min-width: 160px;
        }

        .custom-select .select-selected {
            background-color: transparent;
            border: 0px solid #ccc;
            border-radius: 6px;
            padding: 12px;
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-width: 200px;
            box-sizing: border-box;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.9l-136.2%20140.2c-1.8%201.8-4.1%202.7-6.4%202.7s-4.6-.9-6.4-2.7L5.4%2069.9C1.9%2066.4%200%2061.6%200%2056.4c0-5.2%201.9-9.9%205.4-13.4s7.8-5.4%2013.4-5.4h250.3c5.2%200%209.9%201.9%2013.4%205.4s5.4%207.8%205.4%2013.4c0%205.2-1.9%209.9-5.4%2013.4z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 12px;
        }

        .custom-select .select-selected:after {
            display: none;
        }

        .custom-select .select-items {
            background-color: #fafafa;
            border: 1px solid #ccc;
            border-radius: 6px;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 99;
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .custom-select .select-items div {
            padding: 12px;
            cursor: pointer;
        }

        .custom-select .select-items div:hover, .select-items .same-as-selected {
            background-color: #3498db;
            color: white;
        }

        .select-hide {
            display: none;
        }
        
        .char-counter {
            position: absolute;
            bottom: 5px;
            right: 10px;
            font-size: 0.8em;
            color: #888;
            background-color: inherit;
            padding: 2px 5px;
            border-radius: 3px;
            z-index: 1;
        }
