body {
  font-family: "Roboto", sans-serif;
  background-color: hsl(235, 18%, 26%);
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
#fPageImgMobile {
  display: none;
}
#fPageImg {
  max-width: 100%;
  max-height: 100%;
}
#imgContainer {
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-height: 95%;
  right: 0;
}
h1 {
  color: hsl(234, 29%, 20%);
  font-size: 3rem;
  font-weight: 700;
}
#fPart h1 {
  margin-bottom: 0.1rem;
}
#fPart p {
  margin-top: 0.8rem;
  margin-bottom: 0.1rem;
}
p {
  font-weight: 400;
  font-size: 16px;
}

#container1 {
  margin: 10rem 0;
  height: 80vh;
  display: flex;
  background-color: hsl(0, 0%, 100%);
  border-radius: 25px;
  width: 60%;
  /* display: none; */
}
#fPart {
  height: 75%;
  margin-left: 3rem;
  margin-top: 3rem;
  width: 50%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
#infoLine p {
  margin-top: 0.1rem;
}
#fPart .infoJoin {
  margin-bottom: 1.4rem;
}

#infoLine {
  margin-top: 0.1rem;
  margin-bottom: 10px;
  height: 100%;
  display: flex;
  align-items: center;
}

#infoLine img {
  margin-right: 10px;
}
#mail {
  font-size: 13px;
  font-weight: 700;
  margin-top: 1.5rem;
}
#mail-container {
  display: flex;
}
#invalid-mail {
  font-size: 13px;
  font-weight: 700;
  margin-left: 8rem;
  color: tomato;
  opacity: 0;
}
#container-form input {
  border-color: #ccc;
  padding-left: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
  width: 80%;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  box-shadow: none;
}
#subscribeBtn {
  cursor: pointer;
  color: hsl(0, 0%, 100%);
  background-color: hsl(234, 29%, 20%);
  padding-top: 15px;
  padding-bottom: 15px;
  height: 3rem;
  width: 87%;
  border-radius: 5px;
}
#container-form .invalid {
  border: 2px solid hsl(4, 100%, 67%);
  border-color: hsl(4, 100%, 67%);
  color: hsl(4, 100%, 67%);
  background-color: hsl(330, 100%, 90%);
}

#container2 {
  margin: 10rem;
  height: 70vh;
  display: flex;
  flex-direction: column;
  background-color: hsl(0, 0%, 100%);
  border-radius: 25px;
  width: 33%;
  justify-content: left;
  display: none;
}
#container2 p {
  color: hsl(235, 18%, 26%);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-size: 14px;
}
#container2-img {
  width: 3.5rem;
  height: 3.5rem;
}
#container2-page h1 {
  margin-bottom: 10px;
}
#container2-page {
  text-align: left;
  justify-content: left;
  margin: 3rem 3rem;
}
#dismissBtn {
  cursor: pointer;
  color: hsl(0, 0%, 100%);
  background-color: hsl(234, 29%, 20%);
  padding-top: 15px;
  padding-bottom: 15px;
  height: 3rem;
  width: 100%;
  border-radius: 5px;
}
@media screen and (max-width: 768px) {
  #container1 {
    padding-bottom: 20px;
    width: 100%;
    flex-direction: column-reverse;
  }
  #fPart {
    margin-left: 1rem;
    word-wrap: break-word;
    width: 100%;
  }
  #fPageImg {
    display: none;
  }
  #fPart p {
    max-width: 100%; /* Adjust the max-width as needed */
  }
  #invalid-mail {
    margin-left: 10rem;
  }

  #fPageImgMobile {
    margin-top: 15rem;
    width: 100%;
    display: flex;
  }
  #container2 {
    width: 100%;
    height: 90vh;
    margin: 0;
  }
  #container2-page {
    height: 100%;
  }
  #dismissBtn {
    margin-top: 8rem;
  }
}
@media screen and (min-width: 1400px) {
  #container1 {
    height: 47vh;
  }
}
