@property --myColor1 {
  syntax: "<color>";
  initial-value: hsl(234, 29%, 20%);
  inherits: false;
}

@property --myColor2 {
  syntax: "<color>";
  initial-value: hsl(234, 29%, 20%);
  inherits: false;
}

body {
  font-size: 16px;
  font-family: "Roboto";
  font-weight: 400;
  background: hsl(235, 18%, 26%);
  list-style: none;
  display: flex;
  align-items: center;
  height: 100vh;
}

.stay-updated {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.stay-updated h1 {
  font-weight: 500;
  font-size: 3.5rem;
  margin-bottom: 24px;
}
.stay-updated p {
  margin-bottom: 24px;
}

.container {
  max-width: 860px;
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 35px;
  padding: 40px;
  padding-right: 20px;
  /* margin-top: 40px; */
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  max-width: 100%;
}

button.btn.btn-dark {
  border: none;
  background: linear-gradient(90deg, var(--myColor1), var(--myColor2));
  padding: 15px;
  font-size: 14px;
  transition: --myColor1 0.5s, --myColor2 0.5s;
}
button,
.email-container {
  width: 90%;
}

button.btn.btn-dark:hover {
  --myColor1: hsla(347, 92%, 64%, 1);
  --myColor2: hsla(15, 100%, 61%, 1);
}

li {
  list-style: none;
  padding-bottom: 10px;
}

li img {
  padding-right: 10px;
}

ul {
  padding-left: 0;
}

input::placeholder {
  opacity: 0.5 !important;
}

input {
  padding: 0.8rem 20px !important;
  margin-bottom: 8px;
}

input:hover {
  cursor: pointer;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: black;
  outline: 0;
  box-shadow: 0 0 0 0px black;
}
.form-control {
  font-size: 14px;
}

label {
  font-weight: 700;
  font-size: 14px;
}

.success-container {
  background-color: white;
  max-width: 400px;
  flex-direction: column;
}
.success-container img {
  width: 50px;
}

.email-header {
  display: flex;
  justify-content: space-between;
}

.invalid-feedback {
  position: absolute;
  top: -32px;
  right: -63%;
}

.hide {
  display: none;
}
.image-container-mobile {
  display: none;
}

@media only screen and (max-width: 520px) {
  .image-container {
    display: none;
  }
}

@media only screen and (max-width: 405px) {
  .container {
    flex-direction: column;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .image-container-mobile {
    display: block;
    height: 300px;
  }
  .image-container-mobile img {
    height: 300px;
    width: 100%;
    object-fit: cover;
  }
  .stay-updated {
    padding: 20px;
  }
  .success-container {
    padding: 20px;
    padding-top: 0;
    border-radius: 0;
    height: 100%;
    justify-content: center;
  }
  .success-container h1 {
    font-size: 2rem;
    line-height: 2.2rem;
  }
  #dismiss {
    position: absolute;
    bottom: 20px;
  }
}
