/* FONT-FACE  */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2"),
  url("../fonts/Poppins-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBoldItalic.woff2") format("woff2"),
  url("../fonts/Poppins-ExtraBoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Italic.woff2") format("woff2"),
  url("../fonts/Poppins-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* LOADER  */
.loader-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dcdcdc;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 999;
  transition: opacity 0.2s ease;
}

.loader-wrapper--none {
  pointer-events: none;
  opacity: 0;
}

.loader {
  width: 48px;
  height: 48px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 6px;
  top: 10px;
  width: 12px;
  height: 12px;
  color: #854dff;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 25px 2px, 10px 22px;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* GLOBAL-STYLES  */
html {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #f0f0f0;
  color: #222;
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 104px;
  line-height: 1.1;
  font-weight: 800;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}


/* FOCUS-STYLES  */
*:focus {
  outline: 3px dashed black;
  outline-offset: 3px;
}

/* AUTOFILL  */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: black;
  -box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  --moz-appearance: textfield;
}

/* VISUALLY-HIDDEN  */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}


/* MAIN-CONTENT  */
.main-content {
  flex-grow: 1;
}

.wrapper {
  display: flex;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
}

.wrapper__inner {
  width: 100%;
  max-width: 840px;
  background-color: white;
  border-radius: 24px 24px 200px 24px;
  padding: 56px;
}

.form__inner {
  display: flex;
}

.form__input-wrapper {
  display: flex;
  flex-direction: column;
}

.form__input-wrapper:not(:last-child) {
  margin-right: 32px;
}

.label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #716f6f;
  margin-bottom: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.input {
  width: 160px;
  border: 1px solid #dcdcdc;
  padding: 12px 24px;
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
  border-radius: 8px;
  outline: none;
}

.input::placeholder {
  color: #151515;
  opacity: 0.5;
}

.input:focus {
  border-color: #854dff;
}

.form__button-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.line {
  height: 1px;
  width: 100%;
  background-color: #dcdcdc;
  position: absolute;
  z-index: 5;
}

.form__button {
  display: block;
  padding: 0;
  background-color: #854dff;
  border: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.form__button:hover {
  background-color: #151515;
}

.form__button:active {
  opacity: 0.8;
}

.button__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button__img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.main__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

}

.main__value {
  font-style: italic;
  letter-spacing: -2px;
}

.main__result {
  color: #854dff;
  letter-spacing: -0.02em;
}

/* RESPONSIVE   */
@media only screen and (max-width:750px) {
  body {
    font-size: 56px;
  }
  .wrapper {
    padding: 0 16px;
  }

  .wrapper__inner {
    padding: 48px 24px;
  }

  .wrapper__header {
    margin-bottom: 32px;
  }

  .form__inner {
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .form__input-wrapper:not(:last-child) {
    margin-right: 0px;
  }

  .label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .input {
    font-size: 20px;
    width: calc((100 / 3) - 32px);
    padding: 12px 16px;
  }

  .form__button {
    width: 64px;
    height: 64px;
    margin-right: auto;
  }

  .button__img {
    width: 24px;
    height: 24px;
  }
}

@media only screen and (max-width:565px) {
  .wrapper__inner {
    border-radius: 15px 15px 100px 15px;
  }

  .wrapper__header {
    margin-bottom: 20px;
  }

  .form__inner {
    justify-content: stretch;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .form__input-wrapper:not(:last-child) {
    margin-bottom: 10px;
  }

  .label {
    font-size: 10px;
    text-align: center;
    margin-bottom: 2px;
  }

  .input {
    font-size: 18px;
    text-align: center;
    width: 100%;
  }

  .form__button {
    width: 54px;
    height: 54px;
    margin-right: auto;
  }

  .button__img {
    width: 18px;
    height: 18px;
  }

  .main__value {
    font-size: 36px;
  }
}