body {
  margin: 0;
  padding: 0;
  background-color: #f1f1f1 !important;
}

/* CALCULATORS bar !!!!! */
.hdr6 {
  padding-right: 22px !important;
}

.titli_pw {
  margin: 8px 0 16px;
}

.titli_pw h1 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  text-shadow: 1px 1px 1px white;
  filter: drop-shadow(4px 4px 10px #057);
  padding: 0 4px;
}

.titli_pw img {
  filter: drop-shadow(1px 1px 1px black);
}


.ttle {
  display: flex;
  flex-wrap: wrap;
}

.ttle .l2 {
  display: flex;
  place-items: center;
  justify-content: center;
}

.ttle .l10 {
  display: flex;
  place-items: center;
  justify-content: center;
}

.ttle h3 {
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  text-shadow: #057 0 0 16px;
}

.image-iframe {
  max-width: 80px;
  height: auto;
  filter: drop-shadow(1px 1px 1px #666);
}

/* ------ */
.flex {
  flex-wrap: wrap;
  grid-row: auto;
  gap: 20px;
}

.calculator-ohm {
  max-width: 1200px;
  margin: 0 auto;
}

.calculator-ohm .titli_pw {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 10px;
  padding: 10px;
}

.calculator-ohm .titli_pw h2 {
  font-weight: 600;
  text-shadow: 1px 1px 1px white;
  filter: drop-shadow(4px 4px 10px #057);
  font-size: 28px;
  margin: 20px 0;
}

.calculator-ohm hr {
  border: #00557744 1px solid;
}

.calculator-ohm ::placeholder {
  text-align: left;
  font-weight: 400;
}

.calculator-ohm .img_ohm {
  filter: drop-shadow(4px 4px 10px black);
  max-width: 95%;
  height: auto;
}

.calculator-ohm input[type="number"]::-webkit-inner-spin-button {
  cursor: pointer;
}

.calculator-ohm .labl {
  width: 40%;
  background-color: #00557711;
  font-weight: 600;
  padding: 8px;
  border: 1px solid #ddd;
  border-right: none;
}

.calculator-ohm .inpt {
  width: 40%;
  background-color: #ff557711;
  text-align: right;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 8px;
}

.calculator-ohm .txt {
  width: 20%;
  background-color: #00557711 !important;
  text-align: center;
  font-weight: 600;
  padding: 8px;
  border: 1px solid #ddd;
  border-left: none;
}

.calculator-ohm .unit-select {
  width: 20%;
  background-color: #00557711 !important;
  text-align: center;
  font-weight: 600;
  padding: 8px;
  border: 1px solid #ddd;
  border-left: none;
  cursor: pointer;
}

.calculator-ohm form {
  font-weight: 600;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator-ohm form .row {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
}

.calculator-ohm form button {
  margin-left: 4px;
  padding: 10px 20px;
  font-size: 16px;
}

.calculator-ohm .formula {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator-ohm .formula h4 {
  color: #005577;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #00557744;
  padding-bottom: 5px;
}

.calculator-ohm .formula h4:first-child {
  margin-top: 0;
}

.calculator-ohm .formula ul {
  list-style-type: none;
  padding: 0;
}

.calculator-ohm .formula li {
  padding: 8px 0;
  font-family: monospace;
  font-size: 16px;
  border-bottom: 1px dashed #ddd;
}

.calculator-ohm .formula li:last-child {
  border-bottom: none;
}

.calculator-ohm .formula small {
  font-family: sans-serif;
  color: #666;
  margin-left: 10px;
}

.calculator-ohm .formula p {
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

#currentUnit,
#resistanceUnit {
  width: 20%;
  border: 1px solid #ddd;
  border-left: none;
  background-color: #00557711;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .calculator-ohm form .row {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .calculator-ohm .half {
    width: 100%;
    margin-bottom: 20px;
  }

  .calculator-ohm .titli_pw h2 {
    font-size: 22px;
  }

  .calculator-ohm form {
    padding: 10px;
  }

  .calculator-ohm .labl {
    width: 35%;
    font-size: 12px;
    padding: 8px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calculator-ohm .inpt {
    width: 45%;
    font-size: 12px;
    padding: 8px 4px;
  }

  .calculator-ohm .txt,
  .calculator-ohm .unit-select {
    width: 20%;
    font-size: 12px;
    padding: 8px 2px;
  }

  .calculator-ohm .labl,
  .calculator-ohm .inpt,
  .calculator-ohm .txt,
  .calculator-ohm .unit-select {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  .calculator-ohm .bar {
    flex-direction: column;
  }

  .calculator-ohm .bar button {
    width: 100%;
    margin: 5px 0;
  }

  .calculator-ohm .labl {
    width: 32%;
    font-size: 11px;
    padding: 8px 2px;
  }

  .calculator-ohm .inpt {
    width: 48%;
    font-size: 11px;
    padding: 8px 2px;
  }

  .calculator-ohm .txt,
  .calculator-ohm .unit-select {
    width: 20%;
    font-size: 11px;
    padding: 8px 2px;
  }
}