@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=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
	--purple-50: hsl(260, 100%, 95%);
	--purple-300: hsl(264, 82%, 80%);
	--purple-500: hsl(263, 55%, 52%);

	--white: hsl(0, 0%, 100%);
	--gray-100: hsl(214, 17%, 92%);
	--gray-200: hsl(0, 0%, 81%);
	--gray-400: hsl(224, 10%, 45%);
	--gray-500: hsl(217, 19%, 25%);
	--dark-blue: hsl(219, 29%, 14%);
	--black: hsl(0, 0%, 7%);
}

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

body {
    font-family: "Barlow Semi Condensed", sans-serif;
    background-color: var(--gray-100);
    font-size: 0.8125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
}

.container { 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    padding: 3em;
    max-width: 87em;
}

.testimonial {
    padding:2em;
    border-radius: 0.5em;
    box-shadow: 2em 2em 4em rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1em;

}

h3 {
    font-weight: 500;
}

.quote {
    font-weight: 600;
    font-size: 1.5em;
}

.author {
    display: flex;
    align-items: center;
    gap: 1em;
}

.author img {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
}

.name {
    display: flex;
    flex-direction: column;
}

.testimonial-1 {
    position: relative;
    background-color: var(--purple-500);
    grid-column: 1 / span 2;

    h3, .quote {
        color: var(--purple-50);
        z-index: 1;
    }

    .author p, .testimonial-text {
        color: var(--purple-300);
    }

    .author img {
        border: 0.20em solid var(--purple-300);
    }
}

.quote-icon {
    position: absolute;
    top: 0;
    left: 70%;
    z-index: 0;
}

/* Jonathan Walters */
.testimonial-2 {
    background-color: var(--gray-500);
    grid-column: 3 / span 1;

    h3, .quote {
        color: var(--gray-100);
    }

    .author p, .testimonial-text {
        color: var(--gray-400);
    }

    .author img {
        border: 0.20em solid var(--gray-400);
    }
}

/* Kira Whittle */
.testimonial-3 {
    background-color: var(--white);
    grid-column: 4 / span 1;
    grid-row: 1 / span 2;

    h3, .quote {
        color: var(--gray-500);
    }

    .author p, .testimonial-text {
        color: var(--gray-400);
    }

    .author img {
        border: 0.20em solid var(--white0);
    }
}

/* Jeanette Harmon */
.testimonial-4 {
    background-color: var(--white);
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;

     h3, .quote {
        color: var(--gray-500);
    }

    .author p, .testimonial-text {
        color: var(--gray-400);
    }

    .author img {
        border: 0.20em solid var(--white);
    }
}

/* Patrick Abrams */
.testimonial-5 {
    background-color: var(--dark-blue);
    grid-column: 2 / span 2;
    grid-row: 2 / span 1;

     h3, .quote, .author p, .testimonial-text {
        color: var(--white);
    }

    .author img {
        border: 0.20em solid var(--purple-500);
    }
}
@media screen and (max-width: 800px) {
    .quote-icon {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .testimonial-1 {
        grid-column: 1 ;
        grid-row: 1;
    }

    .testimonial-2 {
        grid-column: 1 ;
        grid-row: 2;
    }

    .testimonial-3 {
        grid-column: 1;
        grid-row: 5;
    }

    .testimonial-4 {
        grid-column: 1;
         grid-row: 3;
    }

    .testimonial-5 {
        grid-column: 1;
         grid-row: 4;
    }
}