@media (min-width: 400px) and (max-width: 991px) {
    body {
        height: 100%;
        background-color: #ebebeb;
        background-attachment: fixed;
        background-image:
          radial-gradient(
            #ebebeb,
            #c3c3c3
          );
        font-family: 'Montserrat', sans-serif;

    }
    .main {
        transform: scale(1.5);
        zoom:150%; 
        background-color: white;
        padding: 25px;
        margin: auto;
        width: 90%;
        height: 90%;
        position: absolute;
        border-radius: 3px;
        top: 50%;
        left: 50%;
        box-shadow: 0em 0em 1.5rem -0.5em #000000;
        transform: translate(-50%,-50%);
        display: flex;
        flex-direction: column;
        font-size: 1.5em;
    }
    .resistor {
        transform: scale(1.2);
        zoom:120%; 
    }
    .button, .band-box select {
        height: 50px;
    }
}

@media (min-width: 991px) {
    body {
        height: 100%;
        background-color: #ebebeb;
        background-attachment: fixed;
        background-image:
          radial-gradient(
            #ebebeb,
            #c3c3c3
          );
        font-family: 'Montserrat', sans-serif;
    }
    .main {
        background-color: white;
        padding: 25px;
        margin: auto;
        width: 600px;
        height: 350px;
        position: absolute;
        border-radius: 3px;
        top: 50%;
        left: 50%;
        box-shadow: 0em 0em 1.5rem -0.5em #000000;
        transform: translate(-50%,-50%);
        display: flex;
        flex-direction: column;
    }
}


.resistor {
    position: relative;
    width: 350px;
    margin-top: 30px;
    margin: auto;
}
.band-box {
    vertical-align: middle;
    text-align: center;
    align-items: stretch;
    font-family: 'Montserrat', sans-serif;
}

.band-box option {
    font-family: 'Montserrat', sans-serif;
}

.band-box select {
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-bottom: 1px solid gray;
    width: 110px;
    margin-bottom: 25px;
}

.band-box label {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    width: 110px;
    text-align: left;
}
.button {
    font-family: 'Montserrat', sans-serif;
    width: 110px;
    position: relative;
    margin: auto;

}

.value {
    border: none;
    margin: auto;
    border-bottom: 1px solid gray;
    font-size: 1em;
    height: 30px;
    width: 200px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}
#error-text {
    margin-top: 0px;
    color: red;
    font-size: 1em;
    text-align: center;
}
#toleranceText {
    text-align: center;
    font-size: 1em;
}

#help {
    text-align: center;
    font-size: 1em;
}
.band1 {
    width: 12px;
    height: 69px;
    position: absolute;
    top: 20px;
    left: 92px;
    opacity: 0.9;
}

.band2 {
    width: 12px;
    height: 52px;
    position: absolute;
    top: 29px;
    left: 138px;
    opacity: 0.9;
}

.band3 {
    width: 12px;
    height: 52px;
    position: absolute;
    top: 29px;
    left: 158px;
    opacity: 0.9;
}

.band4 {
    width: 12px;
    height: 52px;
    position: absolute;
    top: 29px;
    left: 180px;
    opacity: 0.9;
}

.band5 {
    width: 12px;
    height: 52px;
    position: absolute;
    top: 29px;
    left: 198px;
    opacity: 0.9;
}

.color option[value="0"] {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

.color option[value="1"] {
    background-color: rgb(128, 96, 0);
    color: rgb(255, 255, 255);
}
.color option[value="2"] {
    background-color:rgb(255, 0, 0);
    color: rgb(255, 255, 255);
}
.color option[value="3"] {
    background-color:rgb(251, 151, 66);
    color: rgb(255, 255, 255);
}
.color option[value="4"] {
    background-color: rgb(255, 255, 0);
    color: rgb(0, 0, 0);
}
.color option[value="5"] {
    background-color: rgb(0, 176, 80);
    color: rgb(255, 255, 255);
}
.color option[value="6"] {
    background-color: rgb(0, 112, 192);
    color: rgb(255, 255, 255);
}
.color option[value="7"] {
    background-color: rgb(208, 0, 213);
    color: rgb(255, 255, 255);
}
.color option[value="8"] {
    background-color: rgb(128, 128, 128);
    color: rgb(255, 255, 255);
}
.color option[value="9"] {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}



.multiplier option[value=""] {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}
.multiplier option[value="0"] {
    background-color: rgb(128, 96, 0);
    color: rgb(255, 255, 255);
}
.multiplier option[value="00"] {
    background-color:rgb(255, 0, 0);
    color: rgb(255, 255, 255);
}
.multiplier option[value="000"] {
    background-color:rgb(251, 151, 66);
    color: rgb(255, 255, 255);
}
.multiplier option[value="0000"] {
    background-color: rgb(255, 255, 0);
    color: rgb(0, 0, 0);
}
.multiplier option[value="00000"] {
    background-color: rgb(0, 176, 80);
    color: rgb(255, 255, 255);
}
.multiplier option[value="000000"] {
    background-color: rgb(0, 112, 192);
    color: rgb(255, 255, 255);
}
.multiplier option[value="0000000"] {
    background-color: rgb(208, 0, 213);
    color: rgb(255, 255, 255);
}
.multiplier option[value="000000000"] {
    background-color: rgb(128, 128, 128);
    color: rgb(255, 255, 255);
}
.multiplier option[value="0.1"] {
    background-color: rgb(234, 178, 0);
    color: rgb(0, 0, 0);
}
.multiplier option[value="0.01"] {
    background-color: rgb(201, 201, 201);
    color: rgb(0, 0, 0);
}


.tolerance option[value="1"] {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}
.tolerance option[value="2"] {
    background-color: rgb(128, 96, 0);
    color: rgb(255, 255, 255);
}
.tolerance option[value="0.5"] {
    background-color: rgb(0, 176, 80);
    color: rgb(255, 255, 255);
}
.tolerance option[value="0.25"] {
    background-color: rgb(0, 112, 192);
    color: rgb(255, 255, 255);
}
.tolerance option[value="0.1"] {
    background-color: rgb(208, 0, 213);
    color: rgb(255, 255, 255);
}
.tolerance option[value="0.05"] {
    background-color: rgb(128, 128, 128);
    color: rgb(255, 255, 255);
}
.tolerance option[value="5"] {
    background-color: rgb(234, 178, 0);
    color: rgb(0, 0, 0);
}
.tolerance option[value="10"] {
    background-color: rgb(201, 201, 201);
    color: rgb(0, 0, 0);
}




