@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');
:root
{
/* ## Colors */
/* ### Primary */
    --very-Dark-Magenta: hsl(300, 43%, 22%);
    --soft-Pink: hsl(333, 80%, 67%);
/* ### Neutral */
    --Dark-Grayish-Magenta: hsl(303, 10%, 53%);
    --Light-Grayish-Magenta: hsl(300, 24%, 96%);
    --White:hsl(0, 0%, 100%);
}

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


img,video,iframe
{
    max-inline-size:100%;
    block-size:auto;
}


body 
{
    padding: 2rem 1rem;
    font-family: "League Spartan", sans-serif;
}

main 
{
    text-align: center;
}

header h1 
{
    color: var(--very-Dark-Magenta);
    font-weight: bold;
    margin-bottom: 2rem;
    font-size: 2rem;
    width: 70%;
    margin: 1rem auto;
}
header p 
{
    color: var(--Dark-Grayish-Magenta);
    font-size: 1rem;
    margin: 1rem auto;
}

.ratings-container 
{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    margin-bottom: 2rem;
}

.rating 
{


    padding: 1rem 0;
    border-radius: 10px;
    background-color: var(--Light-Grayish-Magenta);
}

.rating .stars 
{
    display: flex;
    justify-content: center;
    column-gap: .5rem;
    margin-bottom: .8rem;
}

.rating h3 
{
    color: var(--very-Dark-Magenta);
    font-weight: bold;
}


.comments-container 
{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.card-comment 
{
    text-align: left;
    background-color: var(--very-Dark-Magenta);
    color: var(--White);
    border-radius: 10px;
    padding: 2.5rem 1.8rem;

}

.card-comment .horizontal 
{
    display: flex;
    align-items: center;
    column-gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-comment .horizontal img 
{
    width: 40px;
    border-radius: 50%;
}

.vertical
{
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    row-gap: .4rem;
}

.vertical h2
{
    font-size: 1.2rem;

}

.vertical h2.verified 
{
    color: var(--soft-Pink);
}


.comment 
{
    font-size: 1.2rem;
    word-spacing: 2px;
    line-height: 1.5rem;
    width: 98%;
}


@media (min-width:600px)
{
    body 
    {
        padding-top: 8rem;
    }
    main 
    {
        text-align: left;
        
        width: 80%;
        margin: 0 auto;
        height: 90vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        column-gap: 5rem;
        
        grid-template-areas: 
        "header ratings"
        "comments comments"
        ;
    }

    header 
    {
        padding-top: 2rem;
        margin-bottom: 5rem;
        width: 100%;
        grid-area: header;
        h1
        {
            width: 100%;
            font-size: 3rem;
            line-height: 2.5rem;
        }
        p 
        {
            width: 80%;
            margin: 0;
            font-size: 1.5rem;
            line-height: 2rem;
        }
    }
    .ratings-container
    {
        grid-area: ratings;
        justify-self: flex-end;
        justify-content: center;
    }
    .comments-container 
    {
        grid-area: comments;
    }


  
    .rating 
    {
        display: flex;
        align-items: center;
        justify-content: space-around;
        column-gap: 2rem;
        padding: 1.2rem 1rem;
    }

    .rating .stars 
    {
        padding: 0;
        margin: 0;
    }

    .rating:nth-of-type(1)
    {
        transform: translateX(-4rem);
    }
    .rating:nth-of-type(2)
    {
        transform: translateX(-2rem);
    }
   

    .comments-container 
    {
        margin-top: 1rem;
        flex-direction: row;
        column-gap: 2rem;
    }


    .card-comment:nth-of-type(1)
    {
        transform: translateY(-4rem);
    }
    .card-comment:nth-of-type(2)
    {
        transform: translateY(-2rem);
    }
    
}