@font-face {
  font-family: "Poppins";
  src: url(../assets/fonts/Poppins-Regular.ttf);
}
@font-face {
  font-family: "Poppins-ExtraBoldItalic";
  src: url(../assets/fonts/Poppins-ExtraBoldItalic.ttf);
}
:root {
  --Purple: hsl(259, 100%, 65%);
  --Light-red: hsl(0, 100%, 67%);
  --White: hsl(0, 0%, 100%);
  --Off-white: hsl(0, 0%, 94%);
  --Light-grey: hsl(0, 0%, 86%);
  --Smokey-grey: hsl(0, 1%, 44%);
  --Off-black: hsl(0, 0%, 8%);
  --text-color: var(--Off-black);
  --number-color: var(--Purple);
  --body-background: var(--Off-white);
  --border-color: var(--Smokey-grey);
  --button-background: var(--Purple);
  --font-family-Poppins: "Poppins";
  --result-font: "Poppins-ExtraBoldItalic";
}

html {
  font-size: 70%;
  overflow-y: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-Poppins);
}

body {
  background-color: var(--body-background);
  min-height: 100vh;
}

input {
  border: none;
  outline: 0;
}

button {
  border: 0;
}

::-moz-selection {
  background-color: var(--Purple);
  color: var(--Off-black);
}

::selection {
  background-color: var(--Purple);
  color: var(--Off-black);
}

main {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  height: 100vh;
  width: -moz-max-content;
  width: max-content;
  justify-content: center;
}

.wraper {
  background-color: var(--White);
  padding: 4rem;
  border-radius: 2rem 2rem 8rem 2rem;
  position: relative;
}

.attribution {
  position: sticky;
  bottom: 0;
  background-color: var(--White);
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 0 2px 2px 0;
}

.attribution a {
  color: var(--Purple);
  text-decoration: none;
}

.attribution a:visited {
  color: gray;
}

.wraper__sub {
  border-bottom: 2px solid var(--Light-grey);
  display: grid;
  grid-template-columns: 2, auto;
  grid-template-rows: 2, auto;
  -moz-column-gap: 5rem;
       column-gap: 5rem;
  row-gap: 5rem;
}

.wraper__form {
  display: flex;
  width: 100%;
  gap: 2rem;
  height: 15vh;
}

.wraper__form div {
  width: -moz-max-content;
  width: max-content;
  display: flex;
  flex-direction: column;
  height: 80%;
}

.wraper div input {
  width: 110px;
  height: 70%;
  border: 1px solid var(--Light-grey);
  caret-color: var(--Purple);
  border-radius: 3px;
  padding: 8px;
  font-size: 32px;
  font-weight: bolder;
  cursor: pointer;
}

.wraper div input:focus {
  border-color: var(--Purple);
}

.label {
  display: inline-block;
  letter-spacing: 3px;
  color: var(--Smokey-grey);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.form__label--error {
  color: var(--Light-red);
}

.input span {
  display: inline-block;
  color: var(--Light-red);
  font-size: 12px;
  margin-top: 4px;
}

.date--submit {
  grid-area: 1/2/1/3;
  align-self: end;
  justify-self: center;
  background-color: var(--Purple);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding-top: 5px;
  position: relative;
  top: 4vh;
  transition: 100ms;
}

.date--submit:hover {
  background-color: var(--Off-black);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

g {
  transition: 100ms;
}

.wraper:has(.date--submit:hover) g {
  fill: var(--Off-black);
}

.date--submit svg {
  width: 2.2rem;
}

.wraper__result {
  display: flex;
  flex-direction: column;
}

.wraper__result span,
.wraper__result p {
  font-family: var(--result-font);
  font-size: 64px;
  display: inline-block;
}

.wraper__result span {
  color: var(--Purple);
}

@media screen and (max-width: 1000px) {
  html {
    font-size: 54%;
  }
}
@media screen and (max-width: 415px) {
  main {
    height: 100vh;
  }
  .wraper {
    width: 90vw;
    margin: 0 auto;
    padding: 25px 10px;
  }
  .wraper__sub {
    gap: 15px;
    margin-bottom: 6vh;
  }
  .wraper__result span,
  .wraper__result p {
    font-family: var(--result-font);
    font-size: 3.8rem;
  }
  .wraper__form {
    align-items: flex-end;
    height: 11vh;
    gap: 1rem;
    width: 100%;
    align-self: end;
  }
  .wraper__form div {
    flex: 1;
  }
  .wraper div input {
    width: 80px;
    font-size: 2rem;
  }
  .date--submit {
    grid-area: 2/1/2/2;
    width: 60px;
    height: 60px;
    top: 3.8vh;
  }
  .date--submit svg {
    width: 28px;
    height: 26px;
  }
  .input span {
    display: inline-block;
    color: var(--Light-red);
    font-size: 10px;
    margin-top: 4px;
  }
}
@media screen and (max-width: 290px) {
  html {
    font-size: 40%;
  }
  .wraper__sub {
    width: 100%;
    row-gap: 0;
  }
  .input {
    width: -moz-min-content;
    width: min-content;
  }
  span,
  label {
    width: -moz-fit-content;
    width: fit-content;
  }
  .wraper__form {
    width: 100%;
    gap: 5px;
    height: 13vh;
  }
  .wraper div input {
    width: 60px;
    height: 40px;
    font-size: 14px;
  }
  .date--submit {
    grid-area: 2/1/2/2;
    width: 40px;
    height: 40px;
  }
}/*# sourceMappingURL=style.css.map */