@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&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");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: white;
  box-sizing: border-box;
}

:root {
  --red: hsl(0, 100%, 74%);
  --green: hsl(154, 59%, 51%);
  --blue: hsl(248, 32%, 49%);
  --dark-Blue: hsl(249, 10%, 26%);
  --grayish-Blue: hsl(246, 25%, 77%);
}

body {
  background-image: url("./images/bg-intro-desktop.png");
  background-color: var(--red);
}

p {
  font-weight: 200;
  line-height: 1.5rem;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 10% 0%;
  margin: auto;
  max-width: 77%;
}

.container-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 65%;
  gap: 1.6rem;
  width: 100%;
  padding: 1.6rem;
  margin: 0.6rem;
}

.my-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.9rem;
  background-color: white;
  border-radius: 0.7rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}
h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 3rem;
}
#try-it {
  text-align: center;
  color: var(--grayish-Blue);
  padding: 1rem;
  border-radius: 0.4rem;
  background-color: var(--blue);
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.my-form-input {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  box-sizing: border-box;
}

#fname,
#lname,
#email-address,
#password,
#submit {
  color: rgb(70, 69, 69);
  padding: 1rem;
  border-radius: 0.4rem;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.082);
}

.input-field:focus {
  outline-color: var(--grayish-Blue);
}
#submit {
  background-color: var(--green);
  color: white;
  text-transform: uppercase;
}

.my-form-final-text {
  display: flex;
  justify-content: center;
}
#final-text {
  align-items: center;
  color: var(--grayish-Blue);
  font-size: 10px;
}

#final-text-highlight {
  color: var(--red);
  font-size: 10px;
}

@media (min-width: 320px) and (max-width: 480px) {
  body {
    background-image: url(./images/bg-intro-mobile.png);
  }

  .container {
    flex-direction: column;
    max-width: 90%;
    padding: 20% 0 20% 0;
    gap: 3rem;
  }

  p {
    text-align: center;
    font-weight: 400;
  }

  .container-content {
    max-width: 100%;
    margin: auto;
    padding: 0.6rem;
  }

  h1 {
    font-size: 32px;
    text-align: center;
  }

  #try-it {
    padding: 1.8rem 3.4rem;
  }
  .my-form {
    padding: 1rem;
  }

  #fname,
  #lname,
  #email-address,
  #password,
  #submit {
    font-weight: 600;
  }

  #final-text {
    padding: 0 2.2rem 0 2.2rem;
    line-height: 1.3rem;
  }
}

@media (min-width: 481px) and (max-width: 1200px) {
  body {
    background-image: url(./images/bg-intro-mobile.png);
  }

  .container {
    flex-direction: column;
    max-width: 90%;
    padding: 20% 0 20% 0;
    gap: 3rem;
  }

  p {
    text-align: center;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.9rem;
  }

  .container-content {
    max-width: 100%;
    margin: auto;
    padding: 0.6rem;
  }

  h1 {
    font-size: 37px;
    text-align: center;
  }

  #try-it {
    padding: 1.8rem 3.4rem;
    line-height: 2.1rem;
  }

  #try-it,
  strong {
    font-size: 23px;
  }

  .my-form {
    padding: 1rem;
  }

  #fname,
  #lname,
  #email-address,
  #password,
  #submit {
    font-weight: 600;
  }

  #final-text {
    padding: 0 2.2rem 0 2.2rem;
    line-height: 1.3rem;
    font-size: 14px;
  }

  #final-text-highlight {
    font-size: 14px;
  }
}
