* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html,
body {
  height: 100%;
}
.container {
  width: 100%;
  min-height: 100vh;

  background: linear-gradient(90deg, #d53369 0%, #daae51 100%);
  color: #fff;
  padding: 0.9rem;
}

.calculator {
  width: 100%;
  /* background-color: aqua; */
  max-width: 600px;
  margin-left: 10%;
  margin-top: 10%;
}
.calculator h1 {
  font-size: 3.8rem;
}
.calculator h1 span {
  color: #f0c0d0;
}
.input-box {
  margin: 40px 0;
  padding: 35px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
}
.input-box input {
  flex: 1;
  margin-right: 20px;
  padding: 14px 20px;
  border: 0;
  outline: 0;
  font-size: 18px;
  border-radius: 5px;
  position: relative;
}
.input-box button {
  background: #fff;
  border: 0;
  outline: 0;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.input-box input::-webkit-calendar-picker-indicator {
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: auto;
  height: auto;
  position: absolute;
  background-position: calc(100% - 10px);
  background-size: 30px;
  cursor: pointer;
}
#result {
  font-size: 25px;
}

/* For mobile view */
@media screen and (max-width: 684px) {
  .container {
    height: 100dvh; /* Use dynamic viewport height for mobile */
    background: linear-gradient(135deg, #4203a9, #90bafc);
    width: 100%;
  }
  .calculator {
    margin-left: 0;
    margin-top: 20px;
  }
  .calculator h1 {
    font-size: 2.5rem;
  }
  .input-box {
    flex-direction: column;
    align-items: stretch;
  }
  .input-box input {
    margin-right: 0;
    margin-bottom: 20px;
  }
}
