@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&family=League+Spartan:wght@400;500;700&family=Lobster&family=Outfit:wght@300;400;600&family=Overpass:wght@400;700&family=Poppins:wght@300;400;500;700&family=Red+Hat+Display:wght@500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', sans-serif;
}

:root {
    --very-dark-magenta: hsl(300, 43%, 22%);
    --soft-pink: hsl(333, 80%, 67%);

    --dark-grayish-magenta: hsl(303, 10%, 53%);
    --light-grayish-magenta: hsl(300, 24%, 96%);
    --white: hsl(0, 0%, 100%);
}

html, body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(./images/bg-pattern-top-desktop.svg), url(./images/bg-pattern-bottom-desktop.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: 20% 0%, 100% 100%;
}

section {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media only screen and (min-width: 1440px){
.row {
    display: flex;
    align-items: center;
}

.row:first-child {
    justify-content: space-between;
}

.row:last-child {
    gap: 20px;
    align-items: flex-start;
}

.heading {
    max-width: 40%;
}

h1 {
    font-size: 55px;
    font-weight: 700;
    color: var(--very-dark-magenta);
    padding-bottom: 20px;
}

.heading p {
    color: var(--dark-grayish-magenta);
    font-weight: 500;
    line-height: 1.4em;
    word-spacing: 10px;
}

.rating {
    max-width: 60%; 
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.rating .item {
    background-color: var(--light-grayish-magenta);
    padding: 15px 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.rating .item .star-icon {
    align-items: center;
    display: flex;
    margin-right: 20px;
    gap: 10px;
}

.rating .item:nth-child(1){
    margin-right: 120px;
}

.rating .item:nth-child(2){
    margin-right: 40px;
}

.rating span {
    color: var(--very-dark-magenta);
    font-weight: 700;
    font-size: 13px;
}

.box {
    background-color: var(--very-dark-magenta);
    padding: 40px;
    border-radius: 6px;
}

.box:nth-child(2) {
    margin-top: 20px;
}

.box:nth-child(3) {
    margin-top: 40px;
}

.box .user {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;
}

.box .user .name p {
    color: var(--white);
    padding-bottom: 6px;
}

.box .user .name span {
    color: var(--soft-pink);
} 

.box img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.box p {
    color: var(--light-grayish-magenta);
}

.box .desc {
    line-height: 1.6em;
    font-size: 13px;
    font-weight: 400;
}

}

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

    html, body {
        margin: 10px;
        justify-content: center;
        text-align: center;
        background-image: url(./images/bg-pattern-top-mobile.svg);
        background-repeat: no-repeat;
    }

    .row {
        flex-direction: column;
    }
    
    h1 {
        margin-top: 20em;
        font-size: 35px;
        font-weight: 700;
        color: var(--very-dark-magenta);
        padding: 25px;
    }

    .heading p {
        color: var(--dark-grayish-magenta);
        padding: 0px 15px 25px;
        line-height: 1.4em;
    }

    .rating {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 10px;
    }

    .rating .item {
        background-color: var(--light-grayish-magenta);
        padding: 15px;
        border-radius: 8px;
        align-items: center;
    }

    .rating .item .star-icon {
        padding: 5px;
    }

    .rating span {
        color: var(--very-dark-magenta);
        font-weight: 700;
        font-size: 13px;
    }

    .box {
       margin: 0px 10px 10px;
        background-color: var(--very-dark-magenta);
        padding: 40px;
        border-radius: 6px;
    }

    .box .user {
        display: flex;
        align-items: center;
        gap: 20px;
        padding-bottom: 30px;
    }

    .box .user .name p {
        color: var(--white);
        padding-bottom: 6px;
        font-size: 12px;
    }
    
    .box .user .name span {
        color: var(--soft-pink);
        font-size: 12px;
    } 

    .box img {
        border-radius: 50%;
        width: 38px;
        height: 38px;
    }
    
    .box p {
        color: var(--light-grayish-magenta);
        display: flex;
        text-align: start;
    }
    
    .box .desc {
        line-height: 1.6em;
        font-size: 13px;
        font-weight: 400;
    }
}


