@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inconsolata:wght@200..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prata&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Young+Serif&display=swap');

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

body{
    font-family: poppins;
    display:flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}
.cards{
    display: flex;  
    position: relative; 
    align-items: center; 
    margin-top: 20px;
    
}
.card{
    width: 400px;
    background-color: hsl(0, 0%, 98%);
    margin: 20px;
    padding: 40px 30px;
    height: fit-content;
    border-radius: 10px;
    box-shadow: 5px 10px 20px 0 hsl(229, 6%, 66%);
   
}
.card p{
    width: 300px;
    color: hsl(229, 6%, 66%);
}

.text{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card1{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card h2{
  margin-bottom: 10px;
}
.card p{
    margin-bottom: 40px;
    line-height: 25px;
    font-weight: 400;
}
.card img{
    height: 60px;
    width: 60px;
    margin-left: 280px;  
}

.text p{
    font-weight: 400;
    text-align: center;
    line-height: 25px;
    color: hsl(229, 6%, 66%);
}

.header1{
    font-size: 2.3em;
    font-weight: 400;
    margin-top: 40px;
    color: hsl(229, 6%, 66%);
}
.header2{
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: hsl(234, 12%, 34%);
}

#card1{
    border-top: 5px solid hsl(180, 62%, 55%);
}
#card2{
    border-top: 5px solid hsl(0, 78%, 62%);
}
#card3{
    border-top: 5px solid hsl(34, 97%, 64%);
}
#card4{
    border-top: 5px solid hsl(212, 86%, 64%);
}


@media only screen and (max-width: 600px) {
    .cards{
        flex-direction: column;
    }
    .card{
        margin: 20px 0px;
    }
    .text{
        width: 100%;
        display: grid;
        align-items: center;
        text-align: center;

    }
    .text h1{
        font-size: 30px;
    }
    .text p{
        width: 390px;
        font-size: 1em;
    }
    .container{
        margin: 30px;
    }
   
 
}