body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: white;
    text-align: center;
    padding: 20px;
}

.container {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 12px;
    width: 400px;
    margin: auto;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

label {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

/* Mejora en los selectores */
select {
    padding: 8px;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #e67e22;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

select:hover {
    background: #34495e;
}

button {
    background: #e67e22;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #d35400;
}

/* Estilos para la representación visual de la resistencia */
.resistor-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.lead {
    width: 30px;
    height: 8px;
    background: silver;
    border-radius: 4px;
}

.resistor-body {
    background: #c49a6c;
    width: 220px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 5px;
    border: 3px solid #8d6e63;
    position: relative;
}

.band {
    width: 12px;
    height: 60px;
    background: gray;
    border-radius: 6px;
}

/* Mejoras en los selectores */
.selectors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#result {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    color: #e74c3c;
}
