@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --backgroundColor: #dbdbdb;
  --darkGrey: #716f6f;
  --offBlack: #141414;
  --purpleColor: #854dff;
  --errorColor: #ff5757;
}

* {
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--backgroundColor);
  margin: auto;
}
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 50px;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

.main-container {
  background-color: white;
  padding: 40px;
  margin-top: 30px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px 10px 100px;
}

.date-container {
  display: flex;
  gap: 30px;
}

.dateofBirth {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 12px;
  color: var(--darkGrey);
  letter-spacing: 2px;
  font-weight: 500;
}

input {
  padding: 5px;
  font-size: medium;
  font-weight: 600;
  border: 1px solid var(--backgroundColor);
  border-radius: 5px;
  width: 100%;
  padding-left: 10px;
}

input:focus {
  outline: none;
}

p {
  font-size: 10px;
  color: var(--errorColor);
  font-style: italic;
  width: 100%;
}

.arrow {
  background-color: var(--purpleColor);
  padding: 10px;
  border-radius: 50%;
  width: 25px;
  border: none;
}

button {
  border: none;
  background-color: white;
  cursor: pointer;
  padding: 0;
}

.line {
  height: 1px;
  width: 100%;
  margin-top: 20px;
  background-color: var(--darkGrey);
  opacity: 30%;
}

.divider {
  display: flex;
  justify-content: center;
}

#textResult {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 50px;
  font-weight: 800;
}

span {
  color: var(--purpleColor);
}

@media only screen and (max-width: 768px) {
  .main-container {
    width: 100%;
    max-width: 300px;
    padding-right: 35px;
    padding-left: 30px;
  }

  #textResult {
    font-size: 40px;
    font-weight: 700;
  }
}
