@font-face {
  font-family: poppins;
  src: url(assets/fonts/Poppins-Regular.ttf);
}
@font-face {
  font-family: poppins-italic;
  src: url(assets/fonts/Poppins-Italic.ttf);
}
@font-face {
  font-family: poppins-bold;
  src: url(assets/fonts/Poppins-Bold.ttf);
  font-weight: bold;
}
@font-face {
  font-family: poppins-bold-italic;
  src: url(assets/fonts/Poppins-BoldItalic.ttf);
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: poppins-extra-bold;
  src: url(assets/fonts/Poppins-ExtraBold.ttf);
  font-weight: bold;
}
@font-face {
  font-family: poppins-extra-bold-italic;
  src: url(assets/fonts/Poppins-ExtraBoldItalic.ttf);
  font-weight: bold;
}
:root {
  --purple: hsl(259, 100%, 65%);
  --lightRed: hsl(0, 100%, 67%);
  --white: hsl(0, 0%, 100%);
  --offWhite: hsl(0, 0%, 94%);
  --lightGrey: hsl(0, 0%, 86%);
  --smokeyGrey: hsl(0, 1%, 44%);
  --offBlack: hsl(0, 0%, 8%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: poppins;
}
.attribution {
  font-size: 11px;
  text-align: center;
  position: absolute;
  bottom: 0;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

body {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: var(--lightGrey);
}
.container {
  width: 50%;
  height: 80vh;
  min-width: 320px;
  min-height: 440px;
  max-width: 845px;
  max-height: 650px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px 24px 180px 24px;
  padding: 30px;
}
form {
  display: flex;
  width: 100%;
}
.date {
  display: flex;
  flex-direction: column;
  color: var(--smokeyGrey);
  font-family: poppins-bold;
}
.date:not(:first-child) {
  margin-left: 20px;
}
.date > label {
  margin-left: 10px;
  margin-bottom: 10px;
  font-family: poppins-bold;
}
.inputs {
  max-width: 159px;
  width: 90%;
  height: 65%;
  max-height: 74px;
  border-radius: 10px;
  border: 0;
  border: 1px solid var(--lightGrey);
  font-size: 35px;
  color: var(--offBlack);
  padding: 24px;
  font-family: poppins-bold;
  caret-color: var(--purple);
}
.inputs:focus {
  outline: none;
  border: 2px solid var(--purple);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.calculate {
  margin-top: 40px;
  padding-right: 20px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calculate-btn {
  position: absolute;
  align-self: flex-end;
  border-radius: 50px;
  width: 95px;
  height: 95px;
  background: var(--purple);
  border: none;
  cursor: pointer;
  padding: 10px;
}
.calculate-btn:hover {
  background: var(--offBlack);
}
hr {
  opacity: 0.5;
}
.answer {
  width: 100%;
  font-size: 35px;
  font-weight: 800;
}
h1 {
  font-family: poppins-extra-bold-italic;
}
h1 > strong {
  color: var(--purple);
}

.para {
  color: var(--lightRed);

  margin-top: 5px;
  font-family: poppins-italic;
  font-size: 15px;
}
.hidden {
  border-color: var(--lightRed);
}

@media screen and (max-width: 786px) {
  .container {
    border-radius: 24px 24px 140px 24px;
  }
  .answer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 22px;
    padding: 10px;
  }
  .inputs {
    max-width: 159px;
    width: 110%;
    height: 50%;
    max-height: 74px;
    font-size: 15px;
    padding: 14px;
  }
  .calculate {
    justify-content: center;
  }
  .calculate-btn {
    align-self: center;
  }
  .para {
    font-size: 10px;
  }
}
