@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  /* Primary */

  --Red: hsl(0, 100%, 74%);
  --Green: hsl(154, 59%, 51%);

  /* Accent */

  --Blue: hsl(248, 32%, 49%);

  /* Neutral */

  --DarkBlue: hsl(249, 10%, 26%);
  --GrayishBlue: hsl(246, 25%, 77%);
}

* {
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
}

html {
  background-image: url(./images/bg-intro-mobile.png);
  background-color: var(--Red);
  background-size: cover;
  background-repeat: no-repeat;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 25px;
  
}

header {
  color: white;
  text-align: center;
  padding: 20px;
  font-weight: 700;
  margin: 0 auto;
  
}

header > p {
  font-weight: 500;
  margin-top: 20px;
}

.wrapThem {
  padding: 20px;
  min-height: 600px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 350px;
  margin: 0 auto;
  
}

/* Trial Info Left */

.try {
  background-color: var(--Blue);
  color: white;
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0px 0.45em 0px 0px #df6d6d;
  max-width: fit-content;
  border: 1px solid rgb(187, 92, 92);
}

.try h1 span {
  font-size: medium;
  font-weight: 500;
}

/* Input Form field */

.myform {
  border-radius: 8px;
  background-color: white;
  box-shadow: 0px 0.45em 0px 0px #df6d6d;
}

form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
}

input {
  color: var(--DarkBlue);
  border-radius: 4px;
  border: 1.5px solid var(--GrayishBlue);
  font-weight: 600;
  padding: 15px 25px;
  display: block;
  width: 100%;
}

input:focus {
  cursor: text;
  border: 1px solid var(--Blue);
  outline: none;
}

.error-img,
.error-txt
 {
  display: none;
}



.group.error .error-img {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 24px;
  top: 26px;
  z-index: 2;
}

.group.error .error-txt {
  text-align: end;
  padding: 5px;
  margin: 5px;
  font-size: 8px;
  font-weight: 400;
  color: var(--Red);
}

.group {
  position: relative;
  padding: 10px;
}

.group.error .error-txt,
.group.error .error-img {
  display: block;
}
.group.error input {
  border: 2px solid hsl(0, 100%, 74%);
}

i {
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  right: 16px;
  top: 11px;
  cursor: pointer;
  z-index: 1;
  display: none;
}

.agree {
  padding: 5px;
  margin: 5px;
  font-size: 8px;
  font-weight: 400;
  text-align: center;
  color: var(--GrayishBlue);
}

.agree span {
  color: var(--Red);
  cursor: pointer;
}

button {
  background-color: #38cc8c;
  color: white;
  font-weight: 600;
  font-size: large;
  padding: 10px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0px 0.3em 0px 0px #2fb179;
}

button:hover {
  box-shadow: 0px 0.3em 0px 0px #38cc8c;
  background-color: #44e49f;
}

footer {
  display: none;
}
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media only screen and (min-width: 760px) {
  html {
    background-image: url(./images/bg-intro-desktop.png);
  }

  body {
    align-items: center;
    justify-content: center;
    min-height: 600px;
    width: auto;
    flex-direction: row;
    display: flex;
    margin: 40px;
    flex-wrap: nowrap;
    font-size: larger;
  }

  header {
    width: 50%;
    height: fit-content;
    text-align: start;
  }

  header > h1 {
    font-size: 50px;
    line-height: 1.1;
  }

  .wrapThem {
    width: fit-content;
    width: 50%;
  }

  .try {
    height: 100%;
    width: 100%;
  }
  .myform {
    height: 100%;
    width: 100%;
  }
  input {
    padding: 20px;
  }

  .myform {
    padding: 20px;
  }
 
}

@media only screen and (min-width: 900px) {
  header {
    margin-left: 59px;
    padding: 59px;
  }
  .wrapThem {
    min-height: 640px;
    margin: 0 auto;
    padding: 0;
    max-width: 500px;
  }
  .try {
    max-width: inherit;
  }
}
