@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --violet: hsl(257, 40%, 49%);
  --soft-magenta: hsl(300, 69%, 71%);
  --ff-poppins: "Poppins", sans-serif;
  --ff-open-sans: "Open Sans", sans-serif;
}
html{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}
body {
  background-image: url("asset/bg-mobile.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-color: var(--violet);
  font-family: var(--ff-open-sans);
  font-weight: 400;
  /* padding-bottom: 5rem; */
}

.container {
  width: 90%;
  margin: auto;
}
header {
  /* border: 2px solid red; */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

header img {
  width: 41%;
}

.main img {
  max-width: 94%;
}
.main {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 37rem;
}

.main-inner-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.main-inner-text h2 {
  color: white;
  font-family: var(--ff-poppins);
  font-weight: 600;
  width: 80%;
  margin: auto;
}

.main-inner-text p {
  color: rgb(247, 246, 246);
  width: 80%;
  margin: auto;
  line-height: 1.6rem;
}
/* Box shadow the first value signifies the horizontal position,so a negative digit moves the shadow from the right hand side to the left hand side,while a positive digit moves the shadow from the left hand to the right hand side 
please note that the default color of the box color is the default os text(black)  */

/* Box shadow the second value signifies the vertical position,so a negative digit moves the shadow from bottom to top,while a poaitive digit moves the shadow from the left hand to the right hand side  */
/* the third value makes it a bit blurry */
.main-inner-text button {
  width: 80%;
  height: 3rem;
  margin: auto;
  border-radius: 2rem;
  border: none;
  color: var(--violet);
  box-shadow: -1px 2px 5px rgb(70, 68, 68);
}

/* footer */

.footer {
  margin: 2rem 0 2rem 0;
}
footer {
  /* border: 2px solid red; */
  padding: 1rem 0 1rem 0;
}

.footer-div {
  /* border: 4px solid green; */
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-icon {
  border: 2px solid white;
  border-radius: 100%;
  padding: 0.8rem;
  color: rgb(255, 255, 255);
  font-size: 16px;
}

@media (min-width: 1024px) {
  body {
    background: url(asset/bg-desktop.svg) no-repeat var(--violet);
  }
  /* header */
  header{
    padding-bottom: 0;
  }
  header img {
    width: 16%;
  }

  .main {
    flex-direction: row;
padding-top: 2rem;
    min-height: 20rem;
    max-width: 100%;
  }
  .main-inner-img > img {
    max-width: 100%;
  }
  .main-inner-img{
    max-width: 57%;
  }
  .main-inner-text {
    max-width: 38%;
    text-align: start;
    padding-top: 3rem;
    /* margin-right: 5rem; */
  }
  .main-inner-text h2 {
    font-size: 2rem;
    margin: 0;
    /* width: 70%; */
    line-height: 3rem;
  }

  .main-inner-text p {
    line-height: 1.7rem;
    width: 88%;
    margin: 0;
  }

  .main-inner-text button {
    width: 30%;
    margin: 0;
    color: var(--violet);
  }
  .main-inner-text button:hover {
    background-color:var(--soft-magenta);
    color: rgb(234, 231,231);
  cursor: pointer;
}
  footer{
    padding: 0 0 0 0;
  }
  .footer{
    margin: 0 0 0 0;
    padding-right: 3.4rem;
  }

  .footer-div{
    justify-content: end;
  }

  .footer-icon{
    font-size: 15px;
  }
}
