:root {
  /* FONTS */
  --body-font: "Poppins", sans-serif;
  --font-Weight1: 200;
  --font-Weight2: 400;
  --font-Weight3: 600;

  /* COLOR PALLET Primary */

  /* - Grey 500: 
- Grey 400: 
- White:  */

  --bg-color1: hsl(0, 78%, 62%);
  --bg-color2: hsl(180, 62%, 55%);
  --bg-color3: hsl(34, 97%, 64%);
  --bg-color4: hsl(212, 86%, 64%);

  /* COLOR PALLET Neutral */
  --bg-color5: hsl(234, 12%, 34%);
  --bg-color6: hsl(212, 6%, 44%);
  --bg-color7: hsl(0, 0%, 100%);

  /* - White: 



  /* SPACING */

  --spacing-xl: 3.2rem;
  --spacing-l: 2.4rem;
  --spacing-m: 1.6rem;
  --spacing-s: 1.2rem;

  --standard-width: 114.4rem;

  /* media query
  1em = 16px 

  eg 600/16 = 37.5em

  0-600px = phone (0 - 37.5em)
  600-900 = tablet portrait  (37.5em - 56.25em)
  900-1200 = tablet landscape  (56.25em - 75em)
  1200-1800 = normal (as built)  (75em - 112.5em)
  1200- = big laptops  (112.5em - ) */

  --standard-box-shadow: 0px 2px 4rem rgba(0, 0, 0, 0.15);
}

/* reset start */

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

body {
  overflow-x: hidden;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

/* reset end */
body {
  height: 100vh;
  background-color: var(--bg-color7);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: var(--spacing-m);
}

.container {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.container .textPortion {
  text-align: center;
  font-family: var(--body-font);
}

.textPortion {
  margin: 0 0 var(--spacing-l) 0;
  max-width: 55rem;
}

.textPortion h1 {
  font-weight: var(--font-Weight2);
  font-size: 2.8rem;
  color: var(--bg-color6);
  margin: 0 0 var(--spacing-s) 0;
}

.textPortion h2 {
  font-weight: var(--font-Weight3);
  font-size: 2.8rem;
  color: var(--bg-color5);
  letter-spacing: 0.5;
  margin: 0 0 var(--spacing-m) 0;
}

.textPortion p {
  font-weight: var(--font-Weight1);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--bg-color6);
}

/* grid section */

.gridSection {
  display: grid;
  grid-template: repeat(2, 1fr) / repeat(3, 1fr);
  grid-template-areas:
    "a b c"
    "a d c ";
  gap: 2rem;
  justify-items: center;
  align-items: center;
}
.box1 {
  grid-area: a;
  border-top: 4px solid var(--bg-color2);
}
.box2 {
  grid-area: b;
  border-top: 4px solid var(--bg-color1);
}
.box3 {
  grid-area: d;
  border-top: 4px solid var(--bg-color3);
}
.box4 {
  grid-area: c;
  border-top: 4px solid var(--bg-color4);
}

.gridSection > div {
  width: 35rem;
  box-shadow: var(--standard-box-shadow);
  margin: 0 0 var(--spacing-l) 0;
  padding: var(--spacing-l);
  border-radius: 1.2rem;
  text-align: end;
}
.gridChild > h3 {
  font-weight: var(--font-Weight3);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--bg-color5);
  margin: 0 0 var(--spacing-m) 0;
  text-align: start;
}

.gridChild > p {
  font-weight: var(--font-Weight2);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--bg-color6);
  max-width: 21rem;
  margin: 0 0 var(--spacing-l) 0;
  text-align: start;
}

.gridChild > img {
  width: 4.4rem;
  height: 4.4rem;
}

/* footer */

.attribution {
  margin: var(--spacing-l) 0 0 0;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: var(--bg-color1);
  font-weight: 700;
}

/* media query
  1em = 16px 

  eg 600/16 = 37.5em
27.625
  0-600px = phone (0 - 37.5em)
  600-900 = tablet portrait  (37.5em - 56.25em)
  900-1200 = tablet landscape  (56.25em - 75em)
  1200-1800 = normal (as built)  (75em - 112.5em)
  1200- = big laptops  (112.5em - )
  
@media (max-width: 70.3755em) {
  .container {
    width: 90%;
    
  }
}
   */

@media (max-width: 70.3755em) {
  .gridSection > div {
    width: 30rem;
    margin: 0 0 var(--spacing-l) 0;
    padding: var(--spacing-m);
  }
}
@media (max-width: 60.5em) {
  .gridSection > div {
    width: 27rem;
  }
}
@media (max-width: 54.75em) {
  .gridSection > div {
    padding: var(--spacing-s);
  }
}
@media (max-width: 54.125em) {
  .gridSection {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "d"
      "c";
  }
  .gridSection > div {
    width: 45rem;
    padding: var(--spacing-l) var(--spacing-xl);
  }
}
@media (max-width: 36.5em) {
  .gridSection > div {
    width: 45rem;
    padding: var(--spacing-l);
  }
}
@media (max-width: 34.375em) {
  .gridSection > div {
    width: 37rem;
    padding: var(--spacing-l);
  }
}
@media (max-width: 27.625em) {
  .gridSection > div {
    width: 32rem;
    padding: var(--spacing-l);
  }
  .textPortion h1,
  .textPortion h2 {
    font-size: 2rem;
  }

  .textPortion p {
    max-width: 27rem;
    font-size: 1.4rem;
  }
}
@media (max-width: 23.5em) {
  .gridSection > div {
    width: 30rem;
    padding: var(--spacing-l);
  }

  .gridSection {
    gap: 0.8rem;
  }
}
