body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 0px;
}

.resistor-wrap {
    position: relative;
    width: 200px;

}
.resistor {
    position: relative;
    width: 174px;
    height: 50px;
    margin: 0 auto;
    background: #e3ceb1;
    border-radius: 30px;
    z-index: 2;
}
.resistor:before,
.resistor:after {
    content: "";
    z-index: 10;
    position: absolute;
    top: -5px;
    width: 30px;
    height: 60px;
    background: #e3ceb1;
}

.resistor:before {
    left: 0px;
    border-radius: 15px 5px 5px 15px;
}

.resistor:after {
    right: 0px;
    border-radius: 5px 15px 15px 5px;
}

.r-wire {
    position: absolute;
    top: 20px;
    left: 0;
    width: 200px;
    height: 10px;
    background: #c6c6c6;
    z-index: 1;
}


.band {
    position: absolute;
    top: 0;
    width: 13px;
    height: 50px;
}

.b1 { left: 43px; }
.b2 { left: 68px; }
.b3 { left: 93px; }
.b4 { left: 120px; }

.black { background: #000; }
.brown { background: #7b4a2f; }
.red { background: #ff0000; }
.orange { background: #ff7a00; }
.yellow { background: #ffd21f; }
.green { background: #008000; }
.blue { background: #0047ff; }
.violet { background: #7a00cc; }
.gray { background: #444; }
.white { background: #ccc; }
.gold { background: linear-gradient(40deg, #FD9C17, #F2E81C, #FD9C17); }
.silver { background: linear-gradient(40deg, #646464, #dcdcdc, #646464); }

.value-box {
    margin: 0px 0px 0px 10px;
    padding: 6px 16px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 6px;
    width: 60px;
}

  .toll{
    font-size: 20px;
    display:inline-block;
    width:60px;
    text-align:left;
    margin-left:10px;
  }

.grid {
    display: grid;
    grid-template-columns: repeat(4, 70px);
    gap: 10px 30px;
    justify-content: center;
    margin-top: 20px;
}

.cell {
    padding: 6px 0;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}
  .cell:active{
    transform: scale(0.95);
  }

.yellow,
.white,
.gold,
.silver {
    color: #000;
}
  .img-warper{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap:20px;
    margin: 20px auto;
   
  }
  .smd-wrap {
    position: relative;
    width: 130px;
}
  .result{
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .error-warper{
    width:40px;
    visibility: hidden;
  }
  .error-warper svg{
    position: relative;
    width: 35px;
    height:35px;
    fill:red;
  }
  .slid-in{ 
    transform: translateX(0px);
  }
  .slide-out{
    transform: translateX(115px);
  }
  .notify{
    left: calc(100% - 180px);
    font-size: 16px;
    display: block;
    margin-top: 10px;
    position: fixed;
    top: 0px;
    float: right;
    width: 160px;
    height: auto;
    z-index:100;
    background: #fd5;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px #0005;
    
    right: 0;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

.notify.show {
  transform: translateX(0); 
  opacity: 1;
  pointer-events: auto;
}
.notify-svg{
    position: relative;
    width: 40px;
    height:40px;
    fill:red;
  }