*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  outline: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

/*For Tablet */
@media (max-width: 992px){
  form{
    max-width: 500px;
    width: 100%;
  }
}

/*For Mobile */
@media (max-width: 768px){
  form{
    max-width: 350px;
    width: 100%;
  }
}

h3{
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
}

p{
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
}

label{
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#birthDate{
  padding: 0.5rem;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

@media (max-width: 768px){
  #birthDate{
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  }
}

#calculateBtn{
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

#calculateBtn:hover{
  background-color: #555;
  transform: translateY(-3px);
}

@media (max-width: 768px){
  #calculateBtn{
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  }
}

#result{
  font-size: 1.5rem;
  color: #333;
  margin-top: 1rem;
  text-align: center;
  width: 100%;
  max-width: 370px;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: scale(1.1);
}

@media (max-width: 992px){
  #result{
    max-width: 450px;
    width: 100%;
  }
}

@media (max-width: 768px){
  #result{
    max-width: 300px;
    width: 100%;
  }
}

.results{
  color: #333;
  text-align: center;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}