body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.languages img {
    width: 30px;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.3s ease;
}

.languages img:hover {
    transform: scale(1.1);
}

.languages img:focus {
    transform: scale(1.1);
    outline: 3px solid #007bff; /* Adicionar contorno azul */
}

.languages img.active-lang {
    border: 1px solid #000000;
    border-radius: 5px;
    transform: scale(1.2);
}

h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.tabs button {
    background: #0053B3;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    outline: none;
    flex: 1;
    min-width: 100px;
}

.tabs button:hover {
    background: #0056b3; /* Cor original */
}

.tabs button:hover,
.tabs button:focus {
    background: #007bff; /* Cor original */
    outline: 3px solid #0056b3; /* Adicionar contorno azul escuro */
}

.tabs button.active {
    background: #003366;
}

.input-group {
    margin-bottom: 10px;
    display: flex; /* Adiciona um layout flexível para alinhar os itens horizontalmente */
    align-items: center; /* Centraliza verticalmente os itens */
}

.unit-label {
    width: 150px; /* Defina a largura desejada para os rótulos */
    text-align: right; /* Alinhe o texto à direita para criar uma margem à esquerda */
    margin-right: 10px; /* Adicione uma margem à direita para separar o rótulo do menu select */
    white-space: nowrap; /* Evita a quebra de linha */
}

.unit-select {
    flex: 1; /* Ocupa o espaço restante no contêiner flexível */
}

.converter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.converter input,
.converter select,
.converter button {
    width: calc(100% - 160px); /* Ajusta a largura dos inputs e botões */
    max-width: 300px;
    margin: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.converter input:focus,
.converter select:focus,
.converter button:focus {
    border-color: #007bff;
    outline: 3px solid #007bff; /* Adicionar contorno azul */
}

.converter button {
    background: #176324;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.converter button:hover {
    background: #218838; /* Cor original */
}

.converter button:focus {
    outline: 3px solid #218838; /* Adicionar contorno verde escuro */
}

#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Media Query para dispositivos móveis */
@media (max-width: 600px) {
    .tabs button {
        padding: 10px;
        font-size: 14px;
    }
    .tabs {
        flex-direction: column;
    }
}

.language-selector {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.language-selector a {
    margin: 0 15px;
    text-align: center;
    text-decoration: none;
    color: black;
}

.language-selector img {
    width: 50px;
    height: 50px;
}

.languages a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}