body {
    margin: 0;
    font-family: sans-serif;
    background-color: white;
    color: #fff;
}

option {
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
    border: none;
}

#bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("resistor.jpg");
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
}

select {
    border: none;
    padding: 0.2em 0.5em;
    font-size: 17px;
}

select:focus {
    outline: none;
}

select option[value="null"] {
    background-color: #fff;
    color: #000;
}
select option[value="0"] {
    background-color: #000;
    color: #fff;
}
select option[value="1"] {
    background-color: #664228;
    color: #fff;
}
select option[value="2"] {
    background-color: #f00;
    color: #fff;
}
select option[value="3"] {
    background-color: #ffa500;
    color: #000;
}
select option[value="4"] {
    background-color: #ff0;
    color: #000;
}
select option[value="5"] {
    background-color: #0a0;
    color: #000;
}
select option[value="6"] {
    background-color: #00f;
    color: #fff;
}
select option[value="7"] {
    background-color: #800080;
    color: #fff;
}
select option[value="8"] {
    background-color: #555;
    color: #fff;
}
select option[value="9"] {
    background-color: #fff;
    color: #000;
}
select option[value="1%"] {
    background-color: #664228;
    color: #fff;
}
select option[value="2%"] {
    background-color: #f00;
    color: #fff;
}
select option[value="0.5%"] {
    background-color: #0a0;
    color: #000;
}
select option[value="0.25%"] {
    background-color: #00f;
    color: #fff;
}
select option[value="0.1%"] {
    background-color: #800080;
    color: #fff;
}
select option[value="0.05%"] {
    background-color: #777;
    color: #fff;
}
select option[value="5%"] {
    background-color: #967c21;
    color: #fff;
}
select option[value="10%"] {
    background-color: #c0c0c0;
    color: #000;
}
select option[value="-1"] {
    background-color: #967c21;
    color: #fff;
}
select option[value="-2"] {
    background-color: #c0c0c0;
    color: #000;
}
select option[value="250ppm/K"] {
    background-color: #000;
    color: #fff;
}
select option[value="100ppm/K"] {
    background-color: #664228;
    color: #fff;
}
select option[value="50ppm/K"] {
    background-color: #f00;
    color: #fff;
}
select option[value="15ppm/K"] {
    background-color: #ffa500;
    color: #000;
}
select option[value="25ppm/K"] {
    background-color: #ff0;
    color: #000;
}
select option[value="20ppm/K"] {
    background-color: #0a0;
    color: #000;
}
select option[value="10ppm/K"] {
    background-color: #00f;
    color: #fff;
}
select option[value="5ppm/K"] {
    background-color: #800080;
    color: #fff;
}
select option[value="1ppm/K"] {
    background-color: #555;
    color: #fff;
}

#settings {
    position: relative;
    display: grid;
    column-gap: 20px;
    row-gap: 20px;
    font-size: 22px;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
}

.wrapper {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    width: 80%;
    top: 3rem;
}

label[for="ring1"] {
    display: inline-grid;
    grid-row: 1;
    grid-column: 1;
}
#ring1 {
    display: inline-grid;
    grid-row: 1;
    grid-column: 2;
}

label[for="ring2"] {
    display: inline-grid;
    grid-row: 2;
    grid-column: 1;
}
#ring2 {
    display: inline-grid;
    grid-row: 2;
    grid-column: 2;
}

label[for="ring3"] {
    position: absolute;
    display: inline-grid;
    grid-row: 3;
    grid-column: 1;
}
label[for="ring3"] span {
    position: absolute;
    top: -0.75rem;
    left: 5rem;
    cursor: help;
    user-select: none;
}
label[for="ring3"] span:active:after {
    position: absolute;
    content: attr(title);
    padding: 1rem;
    border: 1px solid #333;
    top: 3rem;
    left: 1rem;
    background: rgba(0,0,0,0.9);
    font-size: 14px;
    color: #fff;
    display: block;
    border-radius: 5px;
    width: 14.5rem;
    user-select: none;
}
#ring3 {
    display: inline-grid;
    grid-row: 3;
    grid-column: 2;
}

label[for="multiply"] {
    display: inline-grid;
    grid-row: 4;
    grid-column: 1;
}
#multiply {
    display: inline-grid;
    grid-row: 4;
    grid-column: 2;
}

label[for="toleranz"] {
    display: inline-grid;
    grid-row: 5;
    grid-column: 1;
}
#toleranz {
    display: inline-grid;
    grid-row: 5;
    grid-column: 2;
}

label[for="temp"] {
    display: inline-grid;
    grid-row: 6;
    grid-column: 1;
}
#temp {
    display: inline-grid;
    grid-row: 6;
    grid-column: 2;
}

#preview {
    position: relative;
    padding: 5rem 3rem;
    background-color: rgba(0, 0, 0, 0.7);
    height: 5rem;
}

#result {
    position: relative;
    padding: 2rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
}

#resistor {
    position: relative;
    width: 100%;
    height: 100%;
}

#resistorBody {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    background: #d98f44;
    width: 19rem;
    height: 5rem;
    z-index: 10;
    border-radius: 2.5rem;
    opacity: 0.6;
}

#resistorBody2 {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    background-image: linear-gradient(#a6a5a5, #fff, #7c7c7c);
    box-shadow: inset -0.5rem -0.5rem 2rem 0.5rem #000000;
    width: 19rem;
    height: 5rem;
    z-index: 9;
    border-radius: 2.5rem;
}

#resistorCable {
    position: absolute;
    border-radius: 0.4rem;
    width: 100%;
    z-index: 8;
    background-image: linear-gradient(#c9c9c9, #fff, #aaa);
    box-shadow: inset -0.1rem -0.1rem 0.3rem 0.3rem #424242;
    height: 1rem;
    transform: translateY(-50%);
    top: 50%;
}

.RRings {
    position: absolute;
    width: 1rem;
    height: 5rem;
    transform: translateX(-50%);
    z-index: 11;
}

#RRing1 {
    background: transparent;
    left: 3rem;
}

#RRing2 {
    background: transparent;
    left: 5.5rem;
}

#RRing3 {
    background: transparent;
    left: 8rem;
}

#RRing4 {
    background: transparent;
    left: 10.5rem;
}

#RRing5 {
    background: transparent;
    left: 14rem;
}

#RRing6 {
    background: transparent;
    left: 16em;
}