*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "DMSans-VariableFont_opsz,wght";
  src: url("./assets/fonts/DMSans-VariableFont_opsz\,wght.ttf");
}

:root {
  --purple-100: hsl(254, 88%, 90%);
  --purple-500: hsl(256, 67%, 59%);
  --yellow-100: hsl(31, 66%, 93%);
  --yellow-500: hsl(39, 100%, 71%);

  --font-primary: "DMSans-VariableFont_opsz,wght";
}

html {
  font-size: 10px;
}
body {
  font-size: 1.8rem;
  font-family: var(--font-primary);
  background-color: #f5f5f5;
}
.box {
  padding: 20px 20px;
  margin: 20px 0;
  border-radius: 10px;
}
.container {
  padding: 15px 20px;
}
.box-social {
  background-color: var(--purple-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}
.box-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--purple-100);
  text-align: center;
}
.box-followers {
  padding: 20px 45px;
  background-color: var(--purple-500);
}
.box-followers > p {
  text-align: center;
  color: white;
}
.box-social-heading {
  font-size: 4.2rem;
  color: white;
  text-align: center;
  margin: 0;
}
.box-social img {
  width: 100px;
  margin: 10px 0;
}

img {
  display: block;
  max-width: 100%;
}

.font_large {
  font-size: 4.2rem;
}
.m-0 {
  margin: 0;
}
.mt-0 {
  margin-top: 0;
}
.mt-2 {
  margin-top: 15px;
}
.my-2 {
  margin-top: 15px;
  margin-bottom: 15px;
}
.mb-0 {
  margin-bottom: 0;
}
.pb-0 {
  padding-bottom: 0;
}
.px-1 {
  padding: 0 10px;
}
.text_white {
  color: #ffffff;
}
.text_purple {
  color: var(--purple-500);
}
.text_yellow {
  color: var(--yellow-500);
}
.text_thin {
  font-weight: 200;
}
.text_italic {
  font-style: italic;
}
.text_primary {
  font-weight: 500;
  font-size: 2.2rem;
}
.text_md {
  font-size: 3.2rem;
}
.bg_yellow {
  background-color: var(--yellow-500);
}
.w-75 {
  width: 75%;
}
.w-50 {
  width: 50%;
}
.bg_white_light {
  background-color: #ffffff;
}
.bg_yellow_light {
  background-color: var(--yellow-100);
}
.text_center {
  text-align: center;
}
.text_sm {
  font-size: 1.4rem;
}
.overflow_hidden {
  overflow: hidden;
}

/* || Media Screen */
@media screen and (min-width: 900px) {
  .container {
    width: 80%;
    margin: 20px auto;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
      "box1 box1 box4"
      "box2 box3 box4"
      "box6 box5 box5";
    grid-gap: 15px;
    overflow: hidden;
  }

  .box-social {
    justify-content: center;
  }

  .box-chart {
    display: block;
    text-align: left;
  }
  .box-chart img {
    min-width: 200%;
  }

  .box-followers {
    display: flex;
    align-items: center;
  }

  #box1 {
    grid-area: box1;
  }
  #box2 {
    grid-area: box2;
  }
  #box3 {
    grid-area: box3;
  }
  #box4 {
    grid-area: box4;
  }
  #box5 {
    grid-area: box5;
  }
  #box6 {
    grid-area: box6;
  }
  #box7 {
    grid-area: box7;
  }
  #box8 {
    grid-area: box8;
  }

  .flex-lv {
    display: flex;
    gap: 15px;
  }
  .order-1 {
    order: 1;
  }
  .order-2 {
    order: 2;
  }
  .container-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 15px;
    grid-template-areas:
      "grid-2 grid-1 grid-1 grid-1"
      "grid-3  grid-1 grid-1 grid-1";
  }

  .container-grid-1 {
    grid-area: grid-1;
  }

  .container-grid-2 {
    grid-area: grid-2;
  }

  .container-grid-3 {
    grid-area: grid-3;
  }

  .flex-col-center {
    display: flex;
    flex-direction: column;
  }
  .box {
    margin: 0;
  }
}
