@import url(../aside.css);
@import url(../header.css);
@import url(../footer.css);

h1{
    background-color: var(--color-principal);
    padding: 0.5em;
    display: inline-block;
    border-radius: 50px;
    text-align: center;
    height: auto;
    flex-wrap: wrap;
}

h1{
    font-size: 32px;
    margin-top: 21px;
    color: white;
}

h2{
    font-size: 24px;
    color: white;
}

main {
    display: flex;
}

body{
    font-family:'Roboto Mono', 'Courier New', Consolas, 'Lucida Console', monospace;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f5f5dc;
}




/*-------------class-----------------------------------------------------------------------------------------*/

.banda{
    background-color: var(--color-principal);
    height: 100%;
    width: 3%;
}

.botones-unidad{
    min-width: 30px;
    width: auto;
    height: 30px;
    border-radius: 15px;
    background-color: var(--color-principal);
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.b0 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-principal);
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.b1 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #000;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.b2 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: black;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.b3 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #000;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.b4 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #000;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.b5 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: brown;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.b6 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: brown;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.c{
    display: none;
}

.calculadora{
    display: flex;
    width: auto;
}

.contenedor-resultado{
    width: 50%;
}

.content {
    width: auto;
    height: auto;
    min-height: 100vh;
    padding-left: 10px;
    padding-right: 10px;
}

.info {
    display: none;
}

.nombre-color1{
    display: none;
}

.nombre-color2{
    display: none;
}

.nombre-color3{
    display: none;
}

.nombre-color4{
    display: none;
}

.nombre-color5{
    display: none;
}

.nombre-color6{
    display: none;
}

.opciones-de-colores{
    display: flex;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
}

.options{
    width: 830px;
}

.resistor{
    background-color: #ede8d0;
    height: 5em;
    width: 30em;
    border-radius: 3em;
    display: flex;
    justify-content: space-around;
    overflow: hidden; 
}

.resultado{
    margin-top: 10px;
    display: block ruby;
    
}

.resultado-conjunto {
    text-align: center;
    width: 500px;
    border: 4px solid var(--color-principal);
    border-radius: 50px;
    margin-bottom: 20px;
    padding: 10px;

}

.texto{
    width: 250px;
}

#contenedor-tip{
    position: relative;
}

.tip {
    position: absolute;
    top: 0%;
    left: 80%;
    transform: translate(-50%, -50%);
    background-color: #f5f5dc;
    padding: 0 10px; /* Ajusta el espacio alrededor del texto */
    font-weight: bold;
    color: var(--color-principal); /* Ajusta el color del texto */
    border-radius: 20px;
    border: 4px solid var(--color-principal);
}

/*----------------Id---------------------------------------------------------------------------------------*/

#boton-calcular{
    background-color: var(--color-principal);
    height: 50px;
    width: 100px;
    border-radius: 50px;
    border: none;
}

#b04{
    display: none;
}

#b05{
    display: none;
}

#b06{
    display: block;
}

#b10{
    background-color: black;
}

#b11{
    background-color: brown;
}

#b12{
    background-color: red;
}

#b13{
    background-color: orange;
}

#b14{
    background-color: yellow;
}

#b15{
    background-color: green;
}

#b16{
    background-color: blue;
}

#b17{
    background-color: violet;
}

#b18{
    background-color: gray;
}

#b19{
    border: 1px solid grey;
    background-color: white;
}

#r-b4 {
    margin-right: 20px;
}

#r-b6 {
    margin-left: -15px;
    margin-right: 20px;
}

#unidad{
    min-width: 30px;
    width: auto;
    height: 30px;
    border-radius: 15px;
    background-color: var(--color-principal);
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

#b20{
    background-color: gold;
}

#b21{
    background-color: silver;
}

#caja-unidades{
    width: 360px;
    display: none;
}

#caja-flex-resultado {
    width: auto;
}

#footer{
    background-color: var(--color-principal);
    height: auto;
}

#nav{
    background-color: var(--color-principal);
}

/*------------------------@media-----------------------------------------------------------------------------*/

@media screen and (max-width:1003px) {
    .content h1{
        font-size: 100%;
        margin-bottom: 0;
        margin-left: 0;
    }
}

@media screen and (max-width:1700px) {
    .calculadora{
        display: block;
    }
}

@media screen and (max-width:855px) {
    .option{
        flex-direction: column;
        align-items: flex-start;
    }
    .opciones-de-colores{
        width: 90vw;
        flex-wrap: wrap;
        gap: 10px;
    }
    .options{
        width: auto;
    }
}

@media screen and (max-width:545px){
    .resistor{
        width: 90vw;
    }
}

@media screen and (max-width:530px){
    .resultado-conjunto {
        width: auto;
        margin-top: 10px;
    }
}

@media screen and (max-width:1200px) {
    main{
        flex-direction: column;
    }
    #caja-unidades {
        width: auto;
    }
    .valor-numerico {
        display: flex;
        width: auto;
        flex-direction: column;
    }
    .contenedor-resultado{
        width: 100%;
    }
}

div.resultado:nth-child(1) {
    display: flex;
    flex-direction: column;
  }

.valor-numerico {
display: block ruby;

}

#caja-unidades {
    display: none;
    width: 324px;
}
  
div.resultado:nth-child(1) > p:nth-child(1) {
    width: auto;
}


    