* {
  box-sizing: border-box;
}
@font-face {
  font-family: Jakarta;
  src: url(assets/fonts/PlusJakartaSans-VariableFont_wght.ttf);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  /* Important to remove any default margin added by the browser */
}
:root {
  --darkColor: #0b4463;
  --lightColor: #7494a7;
  --backgroundColor: #e0f1fb;
}
input {
  min-height: 40px;
  border: 2px solid #99afbb;
  border-radius: 8px;
}
body {
  background-color: var(--backgroundColor);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: Jakarta;
}
.main-box {
  background-color: white;
  border-radius: 20px;
  width: 80%;
  height: 65%;
  box-sizing: border-box;
  display: flex;
}
/*leftside*/
.left-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4%;
}
.lightcolor {
  color: var(--lightColor);
}
.left-side-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mortgage-title {
  color: var(--darkColor);
  font-size: 24px;
  font-weight: bold;
}
.clear-all {
  color: var(--lightColor);
  text-decoration: underline;
  font-size: 17px;
}
.clear-all:hover {
  cursor: pointer;
}
.mortgage-form {
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mortage-amount {
  display: flex;
  flex-direction: column;
}
.mortage-amount input:hover {
  cursor: pointer;
}
.push-down {
  margin-bottom: 4%;
  display: block;
}
.mortage-inline {
  display: flex;
  justify-content: space-between;
}
.mortage-Term {
  width: 48%;
}
.mortgage-amount-input {
  padding-left: 3%;
}
.mortage-interest {
  width: 48%;
}
.combined:hover {
  border: 3px solid #104f59;
  cursor: pointer;
}
.mortage-Term input,
.mortage-interest input {
  width: 100%;
  cursor: pointer;
}
input:focus {
  outline: none;
}
.repayment {
  border: 2px solid #99afbb;
  border-radius: 6px;
  display: flex;
  gap: 4%;
  font-weight: 500;
  letter-spacing: 1px;
  align-items: center;
  padding-left: 4%;
}
.repayment:hover {
  cursor: pointer;
  border: 2px solid #dde161;
}
.mortage-Type {
  display: flex;

  flex-direction: column;
  gap: 1vh;
}
.interest-only {
  border: 2px solid #99afbb;
  border-radius: 6px;
  display: flex;
  gap: 4%;
  font-weight: 500;
  letter-spacing: 1px;
  align-items: center;
  padding-left: 4%;
}
.interest-only:hover {
  border: 2px solid #dde161;
  cursor: pointer;
}
/*button*/
.submit-form-button {
  background-color: #d9db30;
  border-radius: 27px;
  border: none;
  display: flex;
  justify-content: center;
  gap: 4%;
  width: 75%;
  padding: 3% 3%;
  color: var(--darkColor);
  font-size: 18px;
  font-weight: 600;
}
.submit-form-button:hover {
  background-color: #ebee97;
  cursor: pointer;
}

.combined {
  display: flex;
  align-items: center;
  border: 2px solid #99afbb;
  border-radius: 10px;
  height: 60%;
}
.combined input {
  border: none;
}

.combined span {
  background-color: rgba(182, 228, 243, 0.736);
  height: 99%;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #425e6f;
  font-weight: bold;
}

.specific span {
  background-color: #e5ec28;
  width: 10%;
}
.specific input {
  border: none;
}
/*rightside*/
.right-side {
  background-color: var(--darkColor);
  width: 50%;
  border-bottom-left-radius: 70px;
  display: flex;
  padding: 3%;
  box-sizing: border-box;
  gap: 2vh;
  color: white;
}
#results-shown-here {
  font-size: 25px;
  font-weight: bold;
}
#empty-paragraph {
  text-align: center;
  color: #bee1f6;
}

.empty-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
  padding: 3%;
  box-sizing: border-box;
  gap: 2vh;
}
.result-info {
  display: flex;
  flex-direction: column;
  gap: 3%;
  display: none;
}
.result-title {
  font-size: 20px;
  font-weight: bold;
}
.result-paragraph {
  color: #aacce0;
}
.result-payments {
  display: flex;
  flex-direction: column;
  height: 60%;
  background-color: #11364c;
  border-radius: 10px;
  justify-content: space-between;
  padding: 3%;
}
.monthly-repayments-amount {
  font-size: 60px;
  color: #dada30;
  margin-top: -5%;
}
.total-payment-over-term-amount {
  font-size: 40px;
  margin-top: -6%;
}
.line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgb(142, 182, 205);
}
.total-payment-over-term-ttle {
  color: #aacce0;
}

@media screen and (max-width: 1000px) {
  .main-box {
    width: 98%;
  }
}
@media screen and (max-width: 800px) {
  .main-box {
   flex-direction: column;
   align-items: center;
    height: 100%;
  }
  .right-side{
    height: 40%;
    border-radius: 0px;
    width: 90%;
  }
  .left-side{
    height: 60%;
    width: 90%;
  }
  .submit-form-button{
    width: 100%;
  }
}
