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

html {
  font-size: 19px;
}

body {
  /* for body */
  font-family: 'Open Sans', sans-serif;

  display: grid;
  justify-content: center;
  align-items: center;
  height: 100vh;

  background-image: url('./images/bg-desktop.svg');
  background-repeat: no-repeat;
  background-color: hsl(257, 40%, 49%);
}

.main-container {
  display: grid;
  grid-template-columns: 5fr 3fr;
  grid-template-rows: 130px 1fr 130px;
  grid-template-areas:
    'header header'
    'mockup content'
    'idkwhatever footer';
  gap: 20px;
  margin: 50px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;

  grid-area: header;
}

.logo > img {
  height: 50px;
  width: 150px;
}

.mockup > img {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.mockup {
  grid-area: mockup;
}

/* right container */

.right-container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center along cross axis */
}

.right-container .content-box .heading {
  font-family: 'Poppins', sans-serif;

  color: white;
  font-size: 1.7rem;
  font-weight: 550;
}

.right-container .content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;

  /* content-box layout should be static */
  /* when viewport size decreases */
  width: 420px;
}

.right-container .content-box span {
  display: block;
}

.right-container .content-box .description {
  color: white;
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.02rem;
}

.right-container .content-box button {
  width: 170px;
  height: 45px;
  border-radius: 50px;
  border-style: none;
  background-color: white;
  font-family: 'Open Sans', sans-serif;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.socials {
  grid-area: footer;

  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: end;
}

i {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle {
  width: 35px;
  height: 35px;
  background-color: hsl(257, 40%, 49%);
  border: 1px solid white;
  border-radius: 50%;

  position: relative;
}

.right-container .content-box button:hover {
  background-color: hsl(300, 69%, 71%);
  color: white;
  cursor: pointer;
}

.circle:hover i {
  color: hsl(300, 69%, 71%);
  cursor: pointer;
}

.circle:hover {
  border: 1px solid hsl(300, 69%, 71%);
}

@media (max-width: 500px) {
  body {
    background-image: url('./images/bg-mobile.svg');
    height: 100%; /* take 100% of the viewport! */
  }
  .main-container {
    grid-template-columns: 375px;
    grid-template-rows: 50px 1fr 1fr 80px;
    grid-template-areas: none;
    gap: 30px;
  }

  .logo {
    grid-row: 1/2;
    align-items: start;
  }

  .mockup > img {
    height: 300px;
    width: 375px;
  }

  .mockup {
    grid-row: 2/3;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .right-container {
    grid-row: 3/4;
  }

  .right-container .content-box {
    align-items: center;

    /* resetting from desktop */
    /* value at grid level better control of entire layout */
    width: auto;
  }

  .right-container .content-box span {
    text-align: center;
  }

  .right-container .content-box .description {
    text-align: center;
    font-size: 1rem;
  }

  .right-container .content-box button {
    width: 220px;
  }

  .socials {
    grid-row: 4/5;
    justify-content: center;
    align-items: end;
  }

  .logo,
  .mockup,
  .right-container,
  .socials {
    grid-column: 1/1;
  }

  /* active state style reset*/

  .right-container .content-box button:hover {
    background-color: white;
    color: inherit;
    cursor: default;
  }

  .circle:hover i {
    color: white;
    cursor: default;
  }
  
  .circle:hover {
    border: 1px solid white;
    cursor: default;
  }
  
