@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed: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=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=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=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Young+Serif&display=swap');

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

body {
    background-color: hsl(210, 33%, 94%);
    font-family: 'Barlow semi condensed',sans-serif;
    font-size: 13px;
    display: flex;
    justify-content: center;
    
}

.container {
    margin: 30px auto;
    padding: 0 30px;
}

.card-grid {
    max-width: 1100px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 190px;
    
    
}

.img {
    width: 30px;
    float: left;
    border-radius: 50%;
    margin-right: 10px;
}



.grid-items {
    border-radius: 8px;
    box-shadow: 30px 50px 40px hsl(217, 16%, 72%);
}

header {
    margin-bottom: 15px;
}

header h4 {
    font-weight: 400;
}

header p {
    font-size: 10px;
    font-weight: 400;
    margin-top: 3px;
}

.testimony-container {
    clear: left;
}

.testimony-container h2 {
    font-weight: 500;
    margin-bottom: 10px;
}

.comment {
    font-size: 13px;
    line-height: 17px;
}

.daniel {
    background-image: url(./images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-position: 82% -2%;
    background-color: hsl(263, 55%, 52%);
    color: hsl(0, 0%, 100%);
    grid-column: span 2;
    padding: 30px;
}

.daniel img {
    border: 2px solid  hsl(263, 42%, 61%);
}


.daniel p {
    color: hsl(264, 81%, 84%);
}

.jonathan{
    background-color: hsl(217, 19%, 35%);
    color: hsl(0, 0%, 100%);
    padding: 30px;
}

.kira {
    background-color: hsl(0, 0%, 100%);
    color: hsl(217, 19%, 35%);;
    grid-row: span 2;
    padding: 36px;
}

.jeanette {
    background-color: hsl(0, 0%, 100%);
    color: hsl(224, 10%, 45%);
    font-weight: 400;
    padding: 36px;
}

.jeanette h2 {
    color: hsl(217, 19%, 35%);
}

.jeanette h4 {
    color: hsl(218, 20%, 11%);
    font-weight: 400;
}


.patrick {
    background-color: hsl(219, 29%, 14%);
    color: hsl(0, 0%, 81%);
    grid-column: span 2;
     padding: 36px;
    box-shadow: 10px 50px 40px hsl(217, 16%, 72%);
}

.patrick img {
    border: 2px solid hsl(263, 55%, 52%);
}

.attribution {
    font-size: 13px;
}

.attribution a {
    text-decoration: none;
}
.attribution a:hover {
    color: hsl(0, 100%, 50%);
}



@media only screen and (max-width: 1050px) {

    .card-grid {
        grid-template: repeat(4, 1fr) / 1fr 1fr 1fr;
    }

    .daniel {
        grid-column: span 2;
    }

    .kira {
        grid-area: 1 / 3 / 3 / 4;
    }

    .jeanette {
        box-shadow: 10px 50px 15px hsl(217, 16%, 72%);
    }


}

@media only screen and (max-width: 780px) {

    .card-grid {
        grid-template: repeat(4, 1fr) / 1fr 1fr 1fr;
    }

    .daniel {
        grid-column: span 2;
    }

    .kira {
        grid-area: 2 / 1 / 2 / 3;
    }
    

}


@media only screen and (max-width: 700px) {

    .card-grid {
        grid-template: repeat(5, 1fr) / 1fr;
    }

    .daniel {
        grid-area: 1 / 1 / 1 / 3;
    }

    .jonathan {
        grid-area: 2 / 1 / 2 / 3;
    }

    .kira {
        grid-area: 3 / 1 / 3 / 3;
    }

    .jeanette {
        
        grid-area: 4 / 1 / 4 / 3;
    }

    .patrick {
        grid-area: 5 / 1 / 5 / 3;
    }

}

@media only screen and (max-width: 700px) {

    .container {
        width: 650px;
    }

    .card-grid {
        grid-template: 2fr 1fr 1fr 2fr 2fr  / 1fr;
    }

    .grid-items {
        margin: 0;
        padding: 20px;
    }

    .daniel {

        padding: 40px;
    }

    .jeanette {
        
        grid-area: 3 / 1 / 3 / 3;
        box-shadow: 20px 5px 40px hsl(217, 16%, 72%);
    }

    .patrick {
        font-size: 15px;
        grid-area: 4 / 1 / 4 / 3;
        box-shadow: 20px 5px 20px hsl(217, 16%, 72%);
    }


    .kira {
        
        padding: 40px;
        grid-area: 5 / 1 / 5 / 3;
    }

    .patrick {

        padding: 40px;
    }

    .attribution {
        text-align: center;
    }

    .attribution img {
        float: none;
        width: 18px;
    }

    .attribution

}

@media only screen and (max-width: 375px) {

    .daniel {
        background-image: none;
    }


}