@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  background-color: hsl(234, 29%, 20%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.newsletter-container {
  background-color: white;
  max-width: 370px;
  height: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-body {
  padding: 1.5rem 1.5rem 0 1.5rem;
  line-height: 1.5;
}
.newsletter-body .introduction {
  padding: 1.5rem 0;
}

.products-update-outline {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form {
  margin: 2rem 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}
.form label,
.form .error-msg {
  font-weight: 800;
  margin-bottom: 5px;
}
.form .error-msg {
  display: none;
  font-size: 13px;
  color: hsl(4, 100%, 67%);
  position: absolute;
  right: 0;
}
.form input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid rgb(209, 201, 201);
  margin-bottom: 1.5em;
  cursor: pointer;
}
.form input:focus {
  outline: grey;
  border: 2px solid hsl(0, 0%, 58%);
}
.form .input-error {
  outline: 2px solid rgb(241, 190, 190);
  border: none;
  background-color: #ffd8d8;
  color: hsl(4, 100%, 67%);
}
.form .input-error::placeholder {
  color: hsl(4, 100%, 67%);
}
.form button {
  padding: 0.8rem;
  width: 100%;
  background-color: hsl(234, 29%, 20%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.form button:hover {
  background-color: hsl(4, 100%, 67%);
}

.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.success-message-container {
  margin: auto;
  padding: 1rem;
  max-width: 370px;
  height: auto;
}
.success-message-container .success-icon {
  margin-bottom: 2rem;
}
.success-message-container .success-heading {
  font-size: 2.5rem;
  width: 10ch;
  line-height: 1;
  margin: 1rem 0;
}
.success-message-container .success-paragraph {
  margin-bottom: 3rem;
  line-height: 1.5;
}
.success-message-container .success-paragraph span {
  font-weight: bold;
}
.success-message-container .dismiss-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 10rem;
  background-color: hsl(234, 29%, 20%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.success-message-container .dismiss-btn:hover {
  background-color: hsl(4, 100%, 67%);
  box-shadow: 0 5px 20px rgba(255, 3, 3, 0.6);
}

.attribution {
  font-size: 11px;
  text-align: center;
  color: white;
  padding: 1rem 0;
}

.attribution a {
  color: hsl(4, 100%, 67%);
}

@media (min-width: 768px) {
  body {
    height: 100vh;
  }
  .newsletter-container {
    max-width: 700px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
  }
  .illustration-sign-up-image {
    height: 100%;
    padding: 1rem 1rem 1rem 0;
  }
  .illustration-sign-up-image img {
    width: 360px;
    height: 100%;
    border-radius: 10px;
  }
  .newsletter-body {
    padding: 3rem 2.5rem;
    font-size: 13px;
  }
  .newsletter-body h1 {
    font-size: 3rem;
  }
  .newsletter-body .introduction {
    padding: 0.5rem 0;
  }
  .products-update-outline {
    margin-top: 0.5rem;
    margin-bottom: 0;
  }
  .form {
    margin: 2rem 0;
    font-size: 13px;
  }
  .form button {
    font-size: 13px;
  }
  .success-message {
    background-color: hsl(234, 29%, 20%);
    font-size: 12px;
  }
  .success-message-container {
    background-color: white;
    border-radius: 30px;
    padding: 3rem;
  }
  .success-message-container .success-paragraph {
    margin-bottom: 1.5rem;
  }
  .dismiss-btn {
    margin-top: 0 !important;
  }
}

/*# sourceMappingURL=styles.css.map */
