:root{
  
--Red: hsl(0, 78%, 62%);
--Cyan: hsl(180, 62%, 55%);
--Orange: hsl(34, 97%, 64%);
--Blue: hsl(212, 86%, 64%);--Grey500: hsl(234, 12%, 34%);
--Grey400: hsl(212, 6%, 44%);
--White: hsl(0, 0%, 100%);
--box-shadow: hsl(213, 47%, 67%);
--black: hsl(0, 1%, 15%);
--maincol: hsl(0, 0%, 98%);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  width: 100%;
  background-color: var(--black);
  color: var(--Grey400);
  font-family: 'Poppins', sans-serif;
}

main{
  margin: 0 auto;
  padding: 20px;
  width: 90%;
  display: grid;
  justify-content: center;
  align-items: center;
  background-color: var(--maincol);
}


 .intro{
  text-align: center;
  padding: 20px;
 }

 h1{
  text-align: center;
  font-size: 20px;
  font-weight: 100;
 }

 h2{ 
  font-size: 32px;
  color: var(--Grey500);
 }

 h3{
  margin: 7px;
}

p{
  font-size: 16px;
  margin: 7px;
}

.parent{
  margin: 0 auto;
  padding: 25px;
  display:flex;
  justify-content: space-around;
  align-items: center;
  
}

.child{
  width: 300px;
  height: 200px;
  padding: 20px;
  background-color: var(--White);
  box-shadow: 0 15px 30px -11px 
  var(--box-shadow);
  border-radius: 4px;
  position: relative;
}

.img-div{
 
  display: inline-block;
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.child img{
 width: 40px;
}

.one{
  border-top: 4px solid var(--Cyan);
 
}
.two{
  border-top: 4px solid var(--Red);
 
}

.three{
  border-top: 4px solid var(--Orange);
  
}

.four{
  border-top: 4px solid var(--Blue);
  
}

@media(min-width:1024px){
  main{
    display: grid;
    justify-content: center;
    margin: 30px;
  
  }
  .parent{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .child{
    margin: 10px;
  }

  .one{
    grid-column: 1/2;
    grid-row: 2/4;
    align-self: center;
    justify-self: flex-end;
  }

  .two{
    grid-column: 2/3;
    grid-row: 2/3;
  }

  .three{
    grid-column: 2/3;
    grid-row: 3/4;
  }

  .four{
    grid-column: 3/4;
    grid-row: 2/4;
    align-self: center;
    justify-self: flex-start;
  }
}


@media(max-width:1023px){
  .main{
    width: 100%;
    margin: 20px auto;
    
  }
  .parent{
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  h2{
    font-size: 28px;
  }

  p{
    font-size: 12px;
    
  }
}