html, body {
    height: 100%; 
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); 
    width: 400px;
    text-align: center;
}

h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    text-align: left;
    color: #555;
}

input[type="text"] {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #007BFF;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

button:hover {
    background-color: #0056b3;
}

.resultado {
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); 
}

.resultado p {
    margin: 10px 0;
    font-weight: bold;
}

.barra-binario {
    display: inline-block;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 10px;
    white-space: nowrap;
}

.red {
    background-color: #d9534f;
    padding: 5px 8px;
    border-radius: 4px;
    color: white;
    margin-right: 4px;
}

.host {
    background-color: #5cb85c;
    padding: 5px 8px;
    border-radius: 4px;
    color: white;
}

.leyenda {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.leyenda span {
    margin: 0 10px;
}

.leyenda .red {
    background-color: #d9534f;
    color: white;
}

.leyenda .host {
    background-color: #5cb85c;
    color: white;
}

footer {
    margin-top: 30px;
    font-size: 12px;
    color: #777;
    text-align: center;
}
