/* Beautify the Google Translate container */
#google_translate_element {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* Hide unnecessary elements and show only the select box */
.goog-te-gadget {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.goog-te-gadget-simple {
    background-color: #f4f4f4;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.goog-te-gadget-simple:hover {
    background-color: #e6e6e6;
    border-color: #ccc;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #555;
    font-size: 14px;
    font-weight: bold;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    display: none;
}

/* Style the select box */
.goog-te-combo {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.goog-te-combo:hover {
    border-color: #888;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goog-te-combo:focus {
    border-color: #555;
    box-shadow: 0 0 6px rgba(85, 85, 85, 0.5);
}

/* Hide the Google Translate logo */
.goog-te-gadget-simple img {
    display: none;
}

/* Hide unused text */
.goog-te-gadget-simple:after {
    content: none;
}

/* Adjust alignment and spacing */
.goog-te-gadget span {
    font-size: 10px;
    color: #888;
}