@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap');

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


body {
    background: hsl(210, 46%, 95%);
    font-family: 'Barlow Semi Condensed', sans-serif;
    overflow: hidden;
}

.grid-container {
    width: 90vw;
    display: grid;
    grid-template-columns: repeat(4, 20vw);
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    margin: 8rem auto 0 auto;
    position: relative;
    padding-bottom: 4rem;
}



/*WRAPPER*/
.wrapper {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-row-gap: 1rem;
    margin: 2rem;
}

/*CARD*/
#daniel,
#jonathan,
#jeanette,
#patrick,
#kira {
    border-radius: 10px;
    box-shadow: 5px -1px 7px 1px rgba(0,0,0,0.19);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}

/*HOVER*/
#daniel:hover,
#jonathan:hover,
#kira:hover,
#jeanette:hover,
#patrick:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 80%;
}

/*DANIEL , JONATHAN & PATRICK */
#daniel .sub-text,
#daniel p,
#jonathan .sub-text,
#jonathan p,
#patrick .sub-text,
#patrick p {
    color: rgba(255, 255, 255, .7);
}

#daniel .user-name,
#daniel h2,
#jonathan .user-name,
#jonathan h2,
#patrick .user-name,
#patrick h2 {
    color: white;
    font-weight: 500;
}

/*DANIEL*/
#daniel {
    grid-column: 1/3;
    background: no-repeat url(images/bg-pattern-quotation.svg);
    background-position: right 5rem top;
    background-size: auto;
    background-color: hsl(263, 55%, 52%);
}


#daniel img {
    border: 2px solid rgba(255, 255, 255, .7);
}

/*JONATHAN*/
#jonathan {
    background: hsl(217, 19%, 35%);
}

/*PATRICK*/
#patrick {
    grid-column: 2/4;
    background: hsl(219, 29%, 14%);
}

/*KIRA & JEANETTE*/
#jeanette p,
#kira p {
    color: rgba(72, 85, 106, .5);
}

#kira .user-name,
#kira h2,
#jeanette .user-name,
#jeanette h2 {
    color: hsl(219, 29%, 14%);
    font-weight: 600;
}

/*KIRA*/

#kira {
    grid-column: 4/5;
    grid-row: 1/-1;
}
#kira,#jeanette{
    background: white;
}
/*USER PROFILE*/
.user-profile {
    width: 12vw;
    display: flex;
    align-items: center;
}

.sub-text {
    margin-left: 1rem;
}

/*USER IMAGE*/
img {
    border-radius: 50%;
}

/*SIZE TEXT*/
h2 {
    font-size: 1.4rem;
}

p {
    font-size: .9rem;
}

/*MEDIA QUERIES*/
@media (min-width: 600px) and (max-width: 1159px) {
    body {
        overflow: auto;
        position: relative;
    }

    .grid-container {
        grid-template-columns: auto;
        grid-template-rows: repeat(5, auto);
        margin: 4rem auto 0 auto;
    }

    /*CARDS*/
    #daniel,
    #jonathan,
    #jeanette,
    #patrick,
    #kira {
        grid-column: 1/-1;
    }

    /*PLACEMENT CARDS*/
    #kira {
        grid-row: 5/6;
    }

    .user-profile {
        width: 40vw;
        justify-content: flex-start;
    }

    .sub-text {
        margin-left: 1rem;
    }

    img {
        width: 6vw;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    body {
        overflow: auto;
        position: relative;
    }

    .grid-container {
        grid-template-columns: auto;
        grid-template-rows: repeat(5, auto);
        margin: 4rem auto 0 auto;
    }

    /*CARDS*/
    #daniel,
    #jonathan,
    #jeanette,
    #patrick,
    #kira {
        grid-column: 1/-1;
    }

    /*PLACEMENT CARDS*/
    #kira {
        grid-row: 5/6;
    }

    .user-profile {
        width: 50vw;
        justify-content: flex-start;
    }

    .sub-text {
        margin-left: 1rem;
    }

    img {
        width: 10vw;
    }
}
