@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root {
  --violet: hsl(257, 40%, 49%);
  --text-color: white;
  --text: "Open Sans", sans-serif;
  --text2: "Poppins", sans-serif;
  --weights: 400;
  --bolt: 700;
  --mobile: 375px;
  --desktop: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--violet);
  font-size: var(--weights);
  font-family: var(--text);
  color: var(--text-color);
  background-image: url("./images/bg-mobile.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top center;
  text-align: center;
}
.wrapper {
  width: 80%;
  margin: auto;
}

header {
  padding-top: 2em;
  height: 7.5em;
}

header img {
  width: 120px;
  display: block;
}

main .image {
  width: 300px;
  margin: auto;
}
main .image img {
  width: 100%;
  height: auto;
}

main .hero {
  margin-top: 50px;
}

main .hero h1,
main .hero h2 {
  font-family: var(--text2);
  margin-top: 5px;
}

main .hero p {
  margin-top: 1em;
  line-height: 25px;
}
main .hero button {
  margin-top: 2em;
  padding: 11px 70px;
  border-radius: 20px;
  border: none;
  color: #674baf;
  font-family: var(--text);
  cursor: pointer;
  box-shadow: 1px 1px 5px 0px #3c1a55;
  outline: none;
}
main .hero button:hover {
  font-weight: normal;
  box-shadow: 2px 2px 10px #3c1a55;
  font-family: var(--text);
}
main .hero button:active {
  font-weight: normal;
  color: white;
  font-family: var(--text);
  background: linear-gradient(145deg, #b4a8d1, #c3b9dd);
  box-shadow: 2px 2px 10px #3c1a55;
}

.social-icon {
  margin-top: 4em;
  margin-bottom: 2em;
  display: flex;
  justify-content: center;
}
.social-icon i {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px white solid;
  border-radius: 50%;
  margin: 0px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  margin: 1em auto;
}

@media screen and (min-width: 700px) {
  body {
    height: 100vh;
    background-image: url("./images/bg-desktop.svg");
    background-size: contain;
  }
  .wrapper {
    max-width: 1024px;
  }

  header img {
    width: 180px;
    display: block;
  }
  main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2em;
  }
  main .image {
    width: auto;
  }
  main .hero {
    text-align: left;
  }
  main .hero h1,
  main .hero h2 {
    font-size: 2em;
  }
  main .hero button {
    padding: 16px 50px;
    border-radius: 25px;
  }

  .social-icon {
    display: flex;
    justify-content: flex-end;
  }

  .social-icon i {
    width: 42px;
    height: 42px;
  }
  .social-icon i::before {
    font-size: 1.5em;
  }

  footer {
    margin: 0;
    padding-bottom: 1em;
  }
}
