body {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(240, 240, 240);
}
.container {
  background-color: rgb(255, 255, 255);
  width: 80%;
  position: relative;
  min-width: 475px;
  border-radius: 20px 20px 150px 20px;
  max-width: 550px;
  overflow: hidden;
}

.container hr {
  width: 90%; /* Set the width to 90% of the container */
}
.input-box {
  display: flex;
  flex-direction: row;
  margin: 0px 40px;
}
.input-day {
  display: flex;
  flex-direction: column;
  margin: 10px 20px 10px;
}
.input-month {
  display: flex;
  flex-direction: column;
  margin: 10px 20px 10px;
}
.input-year {
  display: flex;
  flex-direction: column;
  margin: 10px 20px 10px;
}
label {
  font-size: 15px;
  color: #878787;
}

h1 {
  color: silver;
}

input[type="number"] {
  font-size: 16px;
  padding: 10px;
  margin-top: 10px;
  border: 2px solid #aab8c5;
  border-radius: 10px;
}

input[type="number"].error {
  border: 2px solid red;
}

h3.error-text {
  color: red;
  margin-top: 5px;
  border: 2px solid red;
}

.error-text {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}
button {
  width: 40px; /* Adjust the width and height to create a circular button */
  height: 40px;
  border-radius: 50%; /* Make it circular */
  background-color: #864cff; /* Set the background color */
  border: none; /* Remove default button border */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 79px;
  right: 23px;
}

button img {
  width: 20px; /* Adjust the size of the image */
  height: 20px;
}
.result-text {
  display: flex;
  flex-direction: row;
  font-size: 50px;
  margin: 10px;
  font-weight: bolder;
}
.result {
  color: #864cff;
  padding: 0px 50px;
}
.result-box {
  display: flex;
  flex-direction: column;

  width: 90%;
}

@media screen and (max-width: 500px) {
  .container {
    width: 300px; /* Adjust container width for better mobile display */
    max-width: 300px;
    min-width: 200px;
    margin: 10px auto;
  }
  button {
    width: 30px;
    height: 30px;
    right: 45%;
    top: 75px;
  }
  label {
    font-size: 10px;
  }
  input {
    font-size: 10px;
  }
  .input-day,
  .input-month,
  .input-year {
    width: 60px;
    padding: 0px;
    margin: 0px 10px;
    font-size: 10px;
  }
  .container hr {
    width: 90%; /* Set the width to 90% of the container */
  }
  .input-box {
    margin: 15px 10px;
  }
  .result-text {
    font-size: 40px;
  }
  input::placeholder {
    font-size: 10px; /* Set the font size for input placeholders */
  }
  input[type="number"] {
    font-size: 10px; /* Set the font size for input text on mobile */
  }
  .result {
    color: #864cff;
    padding: 0px 30px;
  }
}
