@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@400;500;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Spartan', sans-serif;
    background: url("images/bg-pattern-top-mobile.svg") no-repeat top, url("images/bg-pattern-top-mobile.svg") no-repeat bottom;
}

main {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

img {
    max-width: 100%;
}

h1 {
    color: hsl(300, 43%, 22%);
    font-weight: 700;
    margin-top: 5rem;
    text-align: center;
}

p {
    color: hsl(303, 10%, 53%);
    font-weight: 500;
    margin: 1.25rem 0 1.875rem 0;
    text-align: center;
}

.container {
    width: 90%;
}

.rate {
    background-color: hsl(300, 24%, 96%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 1rem;
    padding: 1rem;
}

.rate p{
    color: hsl(300, 43%, 22%);
    font-size: .938rem;
    font-weight: 700;
    margin: 1rem 0 0 0;
}

.stars {
    display: flex;
    justify-content: center;
}

.star {
    width: 1.188rem;
    margin-right: .625rem;
}

.second {
    margin: 3.75rem 0 5rem 0;
}

.customer {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.review {
    background-color: hsl(300, 43%, 22%);
    border-radius: .5rem;
    margin-bottom: 1.25rem;
    padding: 2rem;
}

.review p {
    color: hsl(300, 24%, 96%);
    margin: 0;
    font-size: .938rem;
    font-weight: 500;
    line-height: 160%;
    text-align: left;
}

.customer img {
    border-radius: 50%;
    margin-right: 1.563rem;
    width: 2.5rem;

}

.info p {
    color: hsl(0, 0%, 100%);
}

.info span {
    color: hsl(333, 80%, 67%);
    font-size: .938rem;
}

@media screen and (min-width: 1230px) {
    body {
        background: url("images/bg-pattern-top-desktop.svg") no-repeat top left, url("images/bg-pattern-bottom-desktop.svg") no-repeat bottom right;
    }

    main {
        align-items: center;
    }

    h1 {
        font-size: 3.125rem;
        margin: 0;
    }

    h1, p {
        text-align: left;
    }

    p {
        margin: .625rem 0 0 0;
        line-height: 160%;
    }

    .container {
        width: 80%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .first {
        display: flex;
        justify-content: space-between;
        margin-top: 6.25rem;
    }

    .text {
        max-width: 40%;
    }

    .ratings {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .one {
        transform: translate(-6.25rem);
    }

    .two {
        transform: translate(-3.125rem);
    }


    .rate {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .rate p {
        margin: 0 2.188rem 0 1.25rem;
    }

    .stars {
        margin-left: .938rem;
    }

    .second {
        display: flex;
        justify-content: space-between;
        gap: 1.875rem;
        margin: 4.375rem 0 6.25rem 0;
    }

    .r2 {
        transform: translateY(1.25rem);
    }

    .r3 {
        transform: translateY(2.5rem);
    }
}
