@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --Tomato: hsl(4, 100%, 67%);
  --Dark-Slate-Grey: hsl(234, 29%, 20%);
  --Charcoal-Grey: hsl(235, 18%, 26%);
  --Grey: hsl(231, 7%, 60%);
  --White: hsl(0, 0%, 100%);
}
body {
  height: 100vh;
  display: grid;
  place-items: center;
  background-color: var(--Dark-Slate-Grey);
  font-family: "Roboto";
  font-weight: 500;
}
/* ***********************   MAIN CLASSES ************************ */
.error-email {
  background-color: var(--Tomato);
  border: 2px solid black;
}
.emaildisblay {
  background-color: rgb(255 98 87 / 52%);
}

/*    ***************************************     */
main {
  display: flex;
  padding: 1rem;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  width: 700px;
  border-radius: 1.8rem;
  /* display: none; */
}
.left-box {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--Charcoal-Grey);
  gap: 1.3rem;
}
.left-box h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--Dark-Slate-Grey);
  letter-spacing: -2px;
}
.left-box p {
  font-size: 0.9rem;
  color: var(--Charcoal-Grey);
}
.left-box ul {
  margin-bottom: 1rem;
}
.left-box ul li {
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.left-box form .container-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}
.left-box form .container-label label {
  display: block;
  font-size: 0.7rem;
  font-weight: bold;
}
.left-box form .container-label .error {
  color: red;
  font-size: 0.7rem;
  font-weight: bold;
  transition: 0.5s;
  opacity: 0;
}
input[type="email"] {
  margin-bottom: 1rem;
  border: 1px solid var(--Grey);
  width: 100%;
  padding: 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: 0.5s;
}
input[type="email"]:focus {
  outline: unset;
  background-color: white;
}
.left-box form .btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  background-color: var(--Dark-Slate-Grey);
  color: white;
  border: 1px solid transparent;
}
.left-box form .btn:hover {
  background-image: linear-gradient(to right, hsl(4, 100%, 55%), var(--Tomato));
}
.image-box {
  width: 400px;
  height: auto;
}
.image-box .image-desktop {
  width: 100%;
  height: 100%;
}
.image-box .image-mobile {
  display: none;
  width: 100%;
  height: 100%;
}
/* ****************************  Second Page  **********************  */
.thank {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 296px;
  background-color: white;
  padding: 2rem 2.2rem;
  border-radius: 1.2rem;
  /* display: none; */
}
.thank img {
  width: 35px;
  margin-bottom: 1.2rem;
}
.thank .box {
  padding: 1rem 0 1rem 0;
}
.thank .box h1 {
  color: var(--Dark-Slate-Grey);
  font-size: 2rem;
  line-height: 1.8rem;
  margin: 0 0 1rem 0;
}
.thank .box p {
  font-size: 0.7rem;
  margin: 0.5rem 0;
  color: var(--Charcoal-Grey);
}
.thank .dismiss {
  width: 100%;
  text-align: center;
  padding: 1rem 0.3rem;
  border-radius: 0.3rem;
  background-color: var(--Dark-Slate-Grey);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  border: none;
  outline: none;
}
.thank .dismiss:hover {
  background-image: linear-gradient(to right, hsl(4, 100%, 55%), var(--Tomato));
  box-shadow: 1px 2px 7px 2px hsl(4, 100%, 55%);
}


.attribution {
  position: absolute;
  background-color: hsl(0deg 55.45% 57.92% / 66%);
  border-radius: 0.5rem;
  padding: 0.2rem;
  bottom: 5px;
}


/* ******************* ANIMATION ************************** */
@keyframes appear {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}
@keyframes disAppear {
  0% {
    display: flex;
    opacity: 1;
  }
  99% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: none;
    opacity: 0;
  }
}
