/*=============== FONTS ===============*/
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf");
  font-weight: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Bold.ttf");
  font-weight: bold;
}

/* @font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Medium.ttf");
  font-weight: 500;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-SemiBold.ttf");
  font-weight: 600;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Light.ttf");
  font-weight: 300;
} */

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --first-color: hsl(79, 100%, 49%);
  --white-color: #fff;
  --black-color: #000;

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 0.938rem;
  --tiny-font-size: 0.563rem;

  --fw-regular: 500;
  --fw-bold: 700;
  --fw-black: 800;

  --fs-400: 1.125rem;
  --fs-500: 1.25rem;
  --fs-600: 1.5rem;
  --fs-700: 1.75rem;
  --fs-800: 2rem;
  --fs-900: 5rem;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --normal-font-size: 1rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  overflow-x: hidden;
}

/*=============== MODERN INPUT ===============*/

h1 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-700);
  margin-bottom: 1rem;

  background-image: linear-gradient(to left, var(--first-color), #2b5704);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;

  text-shadow: 0 2px 0 0px hsl(330, 100%, 25%),
    0 3px 2px 0px hsla(330, 100%, 15%, 0.5);

  /* -webkit-font-smoothing: antialiased; */
  /* -moz-osx-font-smoothing: grayscale; */
  /* text-shadow: -1px -1px 0 hsl(80, 70%, 35%), -2px -2px 1px hsl(80, 70%, 35%); */
}

.text-longshadow {
  color: hsl(79, 100%, 49%);
  font-size: 2.5rem;
  -webkit-text-stroke: 1px black;
  line-height: 2.5rem;
  /* font-family: "lato", sans-serif; */
  font-weight: 900;
  text-align: center;
  text-shadow: 1px 1px rgba(123, 25, 15, 0.5), 2px 2px rgba(129, 28, 18, 0.51),
    3px 3px rgba(135, 31, 20, 0.52), 4px 4px rgba(140, 33, 22, 0.53),
    5px 5px rgba(109, 26, 17, 0.54), 6px 6px rgba(84, 22, 15, 0.55),
    7px 7px rgba(48, 13, 9, 0.56), 8px 8px rgba(13, 3, 2, 0.57);
}

h2 {
  font-weight: var(--fw-regular);
  font-size: var(--fs-600);
  margin-bottom: 1rem;
}

h3 {
  font-weight: var(--fw-regular);
  font-size: var(--fs-500);
  text-align: center;
  /* margin-bottom: 0.7rem; */
}

.form {
  height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 1.5rem;
  margin-bottom: 3rem;
}

header,
#pitanja,
footer {
  /* padding: 1rem; */
  max-width: 46rem;
}

header,
section {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

footer {
  min-height: 3rem;
  margin-bottom: 0.8rem;
}

#pitanja h2 {
  margin-top: 1rem;
}

p {
  margin-bottom: 0.5rem; /* between paragraphs */
}

blockquote {
  text-align: center;
  background-color: antiquewhite;
  margin-bottom: 0.5rem;
}

.form__content {
  display: grid;
  row-gap: 1.5rem;
  max-width: 312px;
}

.form__input,
.form__label,
.form__submit {
  border: 0;
  outline: none;
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

.form__box {
  /* 290 je default */
  width: 280px;
  height: 59px;
  /* ovo je dodano */
  place-self: center;
  position: relative;
}

.form h3 {
  place-self: center;
}

.form__shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--black-color);
}

.form__input {
  position: absolute;
  border: 2.5px solid var(--black-color);
  background-color: var(--white-color);

  width: 100%;
  height: 100%;
  z-index: 10;
  padding: 18px;
  transition: transform 0.3s;
}

.procenat {
  background: #fff url("assets/images/procent.svg") right 20px center no-repeat;
}

.form__input::placeholder {
  transition: opacity 0.5s;
}

.form__label {
  z-index: 100;
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: var(--tiny-font-size);
  font-weight: 600;
  transform: 0.2s;
  pointer-events: none;
  opacity: 0;
}

.form__button {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: var(--black-color); */
}

.form__label__result {
  font-size: 2rem;
  font-family: var(--body-font);
  padding-right: 15px;
}

#f1-rezultat,
#f2-rezultat,
#f3-rezultat {
  display: none;
}

.button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 800;
  color: var(--black-color);
  line-height: 1;
  background: var(--first-color);
  padding: 1rem 1.5rem;
  border: 0;
  /* border-radius: 100vw; */
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  outline: #000 solid 1px;
}

.form__submit {
  padding: 0.875rem 1.5rem;
  color: var(--black-color);
  background-color: var(--first-color);
  cursor: pointer;
  transition: transform 0.3s;
}

.form__submit:hover {
  transform: translate(-6px, -6px);
}

/* Opaque placeholder */
.form__input:focus::placeholder {
  opacity: 0;
  transform: 0.3s;
}

/* Move input and sticky input up */
.form__input:focus,
.form__input:not(:placeholder-shown).form__input:not(:focus) {
  transform: translate(-6px, -6px);
  padding: 28px 18px 18px;
  animation: input-animation 0.5s;
}

/* Move label and sticky label up */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown).form__input:not(:focus) + .form__label {
  opacity: 1;
  top: 2px;
  left: 12px;
  transition: 0.3s;
}

/* Input bounce animation */
@keyframes input-animation {
  0% {
    transform: translate(0);
  }
  40% {
    transform: translate(-9px, -9px);
  }
  60% {
    transform: translate(-6px, -6px);
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .form__content,
  .form__box {
    width: 100%;
  }
}

/* For large devices */

/* @media screen and (min-width: 968px) {
  .form__content {
    zoom: 1.1;
  }
} */
