@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');

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: "Open Sans", sans-serif;
  font-size: 1.6rem;
  background-color: var(--violet);
  background-image: url("./images/bg-mobile.svg");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

html {
    font-size: 62.5%;
}

:root {
    --violet: hsl(257, 40%, 49%);
    --softMagenta: hsl(300, 69%, 71%);
}

.container {
    padding: 4rem;
    text-align: center;
}

header img {
    width: 15rem;
    margin-bottom: 7rem;
    
}

.main-img {
    margin-bottom: 5rem;
}

h1 {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
p {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

button {
    width: 25rem;
    background-color: #fff;
    border-radius: 3rem;
    padding: 1.2rem;
    outline: none;
    border: none;
    color: var(--violet);
    margin-bottom: 6rem;
}
.icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.fa-brands {
    font-size: 2rem;
    color: #fff;
    background-color: var(--violet);
    border: 2px solid white;
    border-radius: 50%;
    padding: 0.6rem;
    width: 4rem;
    cursor: pointer;
}

@media only screen and (min-width: 768px) {
    body {
        height: 100vh;
    }
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 3rem;
    }
    .main-img {
        grid-row-start: 2;
    }
    .content {
        grid-column-start: 2;
        grid-row-start: 2;
        align-self: center;
        text-align: left;
    }
    .icons {
        grid-column-start: 2;
        grid-row-start: 3;
        justify-self: end;
    }
    button {
        box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
        width: 18rem;
    }
    .content h1 {
        font-size: 2.4rem;
    }
    .content p {
        font-size: 1.5rem;
    }
    button {
        width: 15rem;
    }
}

@media only screen and (min-width: 1024px) {
    .content h1 {
        font-size: 2rem;
    }
    .content p {
        font-size: 1.9rem;
    }
    button {
        width: 22rem;
        font-size: 2rem;
    }
}

@media only screen and (min-width: 1440px) {
    .content h1 {
        font-size: 4.9rem;
    }
    .content p {
        font-size: 2.5rem;
    }
    button {
        font-size: 2.3rem;
    }
}