.calculator-button.error {
  border: 1px solid red;
}

.gender-button-container,
.sex-button-container,
.option-button-container {
  display: inline-flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  gap: 16px;
}

.interestRate-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 12px;
  border: 0 solid yellow;
}

.interestRate-box,
.middle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.interestRate-box-title {
  padding: 10px 0;
  text-align: center;
}

.middle-box {
  width: 10%;
}

#retirementAge,
#retirementDate {
  font-size: 34px;
  font-weight: 350;
  white-space: nowrap;
  transition: all 0.3s ease;
}

#compoundValue {
  width: 100px;
  justify-content: center;
  text-align: center;
  line-height: 22px;
}

.result-explaination {
  margin: 15px 0 10px 0;
  line-height: 26px;
  font-size: 15px;
}

#years-to-retirement-text,
#years-to-retirement {
  font-size: 14px;
}

/* --- Media Queries --- */

@media (max-width: 850px) {
  .interestRate-container {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
  }

  .interestRate-box,
  .middle-box {
    width: 100%;
    margin: 0;
    flex-direction: column;
    min-height: auto;
  }

  .middle-box {
    min-height: 0;
  }

  .interestRate-box-title {
    padding: 10px 0 0 0;
    text-align: center;
    width: 100%;
    line-height: 50px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .resultNumber-container {
    margin-top: 0;
    gap: 0;
    flex-direction: column;
  }

  .resultNumber-box {
    margin: 20px 0;
  }
}
