body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  min-height: 100vh;
  max-width: 375px;
  width: 100vw;
  margin: 0 8px;
  border-radius: 32px;
  font-size: 1rem;
  background: #f7f6f1;
}

html {
  font-size: 62.5%;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23020403CC' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.active {
  background-color: #be935f;
  color: white;
  border: none;
  font-weight: bold;
}

ul {
  margin-left: 1.5em;
  list-style-type: "✔";
}

ul.caution {
  list-style-type: "⚠️";
}

.hidden {
  display: none;
}

.main-container {
  display: flex;
  flex-direction: column;
  padding: 0px;
  font-family: "Lato", sans-serif;
}

.honey-calculator {
  font-family: "Lato", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.calculator-container {
  max-width: 375px;
  width: 100%;
  display: flex;
  font-family: "Lato", sans-serif;
}

.calculator-form {
  background-color: #fffcf8;
  border: 1px solid #000;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  padding: 64px;
  padding-bottom: 76.8px;
  width: 100%;
}

@media (max-width: 640px) {
  .calculator-form {
    border-radius: 16px;
    padding: 12px;
    padding-bottom: 14px;
  }
}

.header-container {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  height: max-content;
}

.calculator-title {
  text-align: start;
  letter-spacing: normal;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  font-size: 24px;
  line-height: 100%;
  color: #3a2307;
}

.poweredby {
  margin: 0;
  color: #dedede;
  margin-top: 2px;
}

.poweredby a {
  color: #c5c4c4;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 640px) {
  .calculator-title {
    font-size: 16px;
    margin: 0;
  }
}

.calculator-svg {
  max-width: 32%;
  height: max-content;
}

.calc-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: right;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid #000;
  border-radius: 16px;
  padding: 12px;
}

.calc-screen * {
  margin: 0px;
}

.dosage-label {
  color: #02040399 !important;
  font-size: 20px;
  font-family: "Lato", sans-serif;
  font-weight: bold;
}

@media (max-width: 640px) {
  .dosage-label {
    font-size: 16px;
  }
}

.dosage-result {
  font-family: "Lato", sans-serif;
  text-transform: capitalize;
  color: #3a2307;
  font-size: 32px;
  line-height: 100%;
  font-weight: bold;
}

@media (max-width: 640px) {
  .dosage-result {
    font-size: 22px;
  }
}

.btn-container {
  display: flex;
  gap: 8px;
  color: #3a230799;
  font-size: 24px;
  font-weight: bold;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .btn-container {
    font-size: 16px;
  }
}

.operation-btn {
  height: 48px;
  width: 68px;
  display: flex;
  padding: 10px 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: not-allowed;
  font-size: 14px;
  font-family: "Lato", sans-serif;
}

@media (max-width: 640px) {
  .operation-btn {
    height: auto;
    padding: 10px 0px;
    width: 57px;
  }
}

.reset {
  height: aut0;
  padding: 10px 0;
  width: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dc5a5a;
  color: #dc5a5a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Lato", sans-serif;
}

@media (max-width: 640px) {
  .reset {
    height: auto;
    width: 57px;
    padding: 10px 0;
  }
}

.honey-type-section {
  margin-top: 12px;
}

.section-title {
  text-align: start;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 100%;
  color: #3a2307cc;
  margin: 0;
}

@media (max-width: 640px) {
  .section-title {
    font-size: 14px;
  }
}

.honey-type-buttons {
  display: flex;
  font-size: 14px;
  gap: 16px;
  margin-top: 12px;
}

.honey-type-btn {
  flex: 1;
  border: 1px solid #d9d9d9;
  padding: 10px 10px;
  border-radius: 6px;
  color: #020403cc;
  font-size: 14px;
  font-family: "Lato", sans-serif;
}

.honey-type-btn.active {
  background-color: #be935f;
  color: white;
  border: none;
  font-weight: bold;
}

.selectors-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.selector {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 10px 9px;
  color: #020403cc;
  font-size: 14px;
  font-family: "Lato", sans-serif;
}

.weight-section {
  margin-top: 12px;
}

.weight-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.weight-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  text-align: center;
  justify-content: center;
  padding: 10px;
  font-size: 14px;
  font-family: "Lato", sans-serif;
}

.weight-btn:has(input:checked) {
  background-color: #be935f;
  color: white;
  border: none;
  font-weight: bold;
}

.weight-input {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #020403cc;
}

.usage-section {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

.calculate-section {
  margin-top: 16px;
}

.calculate-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: normal;
  width: 100%;
  background-color: #be935f;
  color: white;
  font-weight: bold;
  border: none;
  height: auto;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  font-family: "Lato", sans-serif;
}

.disclaimer {
  max-width: 375px;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 6px;
  color: #dc5a5a;
  background: #dc5a5a33;
}

.disclaimer-text {
  display: block;
  padding: 0;
  color: #02040399;
  font-size: 12px;
  line-height: 16px;
  text-align: justify;
  color: inherit;
  margin-top: 0;
}

.disclaimer-strong {
  font-size: 14px;
  font-weight: bold;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23020403CC' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

button,
select,
.calc-screen,
.btn-container div,
.weight-btn {
  background: transparent;
  box-shadow: 0px 1px 2px 0px #0000000d, 0px 4px 4px 0px #0000000a,
    0px 9px 6px 0px #00000008, 0px 17px 7px 0px #00000003,
    0px 26px 7px 0px #00000000;
  outline: none !important;
}

button:active,
select:active,
.calc-screen:active,
.btn-container div:active,
.weight-btn:active {
  transform: scale(0.999);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cursor-not-allowed {
  font-family: cursive;
  font-weight: 900;
}
