/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
    2. Remove default margin
  */
* {
  margin: 0;
}
/*
    3. Allow percentage-based heights in the application
  */
html,
body {
  height: 100%;
}
/*
    Typographic tweaks!
    4. Add accessible line-height
    5. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
    6. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
    7. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}
/*
    8. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* START */
:root {
  --cl-primary-cyan: hsl(171, 66%, 44%);
  --cl-primary-blue: hsl(233, 100%, 69%);
  --cl-neutral-gray-blue: hsl(210, 10%, 33%);
  --cl-neutral-gry-blue2: hsl(201, 11%, 66%);
  --cl-neutral-footer: hsl(0, 0%, 96%);

  --cl-button-cyan-hover: hsl(171, 66%, 65%);
  --cl-button-blue-hover: hsl(233, 96%, 80%);

  --ff-primary: "Bai Jamjuree", sans-serif;

  --fw-normal: 400;
  --fw-bold: 600;
}

body {
  background-image: url(./img/bg-header-mobile.png);
  background-repeat: no-repeat;
  font-family: var(--ff-primary);
}

.container {
  width: 85%;
  margin-inline: auto;
}

.logo-header {
  margin-top: 8rem;
  margin-bottom: 4rem;
  margin-inline: auto;
}

h1,
h2,
h3 {
  color: var(--cl-neutral-gray-blue);
  text-align: center;
  font-weight: var(--fw-bold);
}

h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 1rem;
}

.text-header,
.text-main {
  color: var(--cl-neutral-gry-blue2);
  text-align: center;
  font-size: 16px;
  font-weight: var(--fw-normal);
}

.text-header {
  margin-bottom: 2rem;
}

.buttons-header {
  display: flex;
  flex-direction: column;
}
.button {
  border: none;
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: white;
  border-radius: 100vh;
  padding: 0.8em 0;
  width: 100%;
}

.button-ios {
  background-color: var(--cl-primary-cyan);
}

.button-mac {
  background-color: var(--cl-primary-blue);
  margin: 1.5rem 0;
}

h2 {
  font-size: 28px;
  margin-top: 7rem;
  margin-bottom: 1rem;
}

.text-main {
  margin-bottom: 3rem;
}

.img-macbook {
  margin-bottom: 4rem;
}

h3 {
  font-size: 26px;
  margin-bottom: 0.5rem;
}

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

.img-features {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.img-company {
  margin-inline: auto;
  margin-bottom: 5rem;
}

.img-google {
  margin-top: 10rem;
}

.img-vectorg {
  margin-bottom: 10rem;
}

footer {
  background-color: var(--cl-neutral-footer);
}

.logo-footer {
  margin-inline: auto;
  width: 60px;
  padding: 3rem 0;
}

ul {
  list-style: none;
  padding: 0;
  color: var(--cl-neutral-gray-blue);
  font-size: 20px;
  text-align: center;
  margin-bottom: 3rem;
}

li {
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 1440px) {
  body {
    background-image: url(./img/bg-header-desktop.png);
  }

  .text-header {
    width: 45%;
    margin-inline: auto;
  }

  .buttons-header {
    flex-direction: row;
    justify-content: center;
    margin-inline: auto;
    gap: 1rem;
  }

  .button {
    cursor: pointer;
  }

  .button-ios,
  .button-mac {
    margin: 0;
    width: 20%;
    font-size: 16px;
    transition: 100ms ease-in-out;
  }

  .button-ios:hover {
    background-color: var(--cl-button-cyan-hover);
  }

  .button-mac:hover {
    background-color: var(--cl-button-blue-hover);
  }

  .text-main {
    margin-inline: auto;
    width: 50%;
  }

  .container-computer {
    position: relative;
  }

  .img-macbook {
    position: absolute;
    left: -10rem;
  }

  .container-computer-text {
    margin-left: 45rem;
    padding-top: 5rem;
  }

  .container-computer-text > .text-main,
  .container-computer-text > h3 {
    text-align: left;
    margin: 0;
    width: 22rem;
  }

  .container-computer-text > .text-main {
    margin-bottom: 2rem;
  }

  .container-computer-text > h3 {
    margin-bottom: 1.5rem;
  }

  .container-devices {
    padding-top: 4rem;
  }

  .img-devices {
    margin-inline: auto;
  }

  .container-features {
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: top;
  }

  .container-blacklist > .text-main,
  .container-snippets > .text-main,
  .container-preview > .text-main {
    width: 22rem;
  }

  .container-companies {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .img-company {
    margin: 0;
  }

  .buttons-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 10rem;
  }

  footer {
    display: grid;
    grid-template-columns: 20rem auto 20rem;
    height: auto;
    align-items: center;
    padding: 2rem 0;
  }

  .logo-footer {
    padding: 0;
  }

  ul {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    height: 7rem;
    margin-bottom: 0;
  }

  li {
    text-align: start;
    margin-bottom: 0.5rem;
  }

  li:last-child {
    margin-bottom: 3rem;
  }

  a,
  a:visited {
    color: var(--cl-neutral-gray-blue);
    text-decoration: none;
    transition: 100ms ease-in-out;
  }

  a:hover {
    color: var(--cl-primary-cyan);
  }

  .social-icons {
    padding: 0;
  }

  .facebook,
  .twitter,
  .instagram {
    fill: var(--cl-neutral-gray-blue);
  }

  .facebook:hover,
  .twitter:hover,
  .instagram:hover {
    fill: var(--cl-primary-cyan);
  }
}
