.attribution {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

body {
    font-family: 'Spartan', sans-serif;
    background-image: url(../images/bg-pattern-top-desktop.svg), url(../images/bg-pattern-bottom-desktop.svg);
    background-repeat: no-repeat;
    background-color: hsl(0, 0%, 100%);
    background-position: bottom 10%, left 10%;
}

h1, h2, h3 {
    margin: 0;
}

.full-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.top-flex {
    display: flex;
    width: 90%;
    height: 50%;
}

.item-flex {
    width: 45%;
    margin-top: 30px;
    margin: auto;
}
.item-flex:nth-child(1){
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-flex:nth-child(1) h1{
    width: 70%;
    margin-top: 10px;
    color: hsl(300, 43%, 22%);
    font-size: 45px;
    margin-right: 16.5%;
}
.item-flex:nth-child(1) p{
    width: 85%;
    line-height: 20px;
    font-size: 15px;
    color: hsl(303, 10%, 53%);
    font-weight: 500;
    
}

.item-flex:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.cont-rate{
    margin-top: 30px;
    background-color: hsl(300, 24%, 96%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 60px;
    width: 430px;
}
.cont-rate:nth-child(2){
    margin-left: 50px;
}
.cont-rate:nth-child(3){
    margin-left: 100px;
}
.stars{
   margin-left: 25px;
}
.stars img{
    margin-inline: 3px;
}
.cont-rate h2{
    font-size: 16px;
    color: hsl(300, 43%, 22%);
    margin-left: 25px;
}

/*css for the bottom comments*/
.bottom-flex {
    display: flex;
    width: 90%;
    align-items: center;
    justify-content: center;
}

.item-bottom{
    width: 28%;
    height: 220px;
    display: flex;
    flex-wrap: wrap;
    background-color: hsl(300, 43%, 22%);
    margin-inline: 10px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
}
.item-bottom:nth-child(2){
    margin-top: 30px;
}
.item-bottom:nth-child(3){
    margin-top: 60px;
}
.item-bottom img{
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin-top: 20px;
    margin-left: -80px;
}

.item-bottom h3{
    width: 40%;
    margin-top: 5px;
    font-size: 14px;
    margin-top: 20px;
    color: hsl(0, 0%, 100%);
    text-align: center;
    line-height: 18px;
    
}
.item-bottom h3 span{
    color: hsl(333, 80%, 67%);
    font-weight: 400;
    
}
.item-bottom p{
    margin: 0;
    font-size: 13px;
    color: hsl(0, 0%, 100%);
    text-align: left;
    width: 87%;
    height: 85px;
    line-height: 18px;
    margin-bottom: 30px;
}


.top-flex, .bottom-flex{
    margin-top: 50px;
}


@media screen and (max-width:900px){
    body{
        background-image: url(../images/bg-pattern-top-mobile.svg), url(../images/bg-pattern-bottom-mobile.svg);
    }
   
    .top-flex{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .item-flex{
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }
    .item-flex:nth-child(1) h1{
        margin: 0;
        font-size: 40px;
        width: 330px;
        height: 150px;
        text-align: center;
    }
    .item-flex:nth-child(1) p{
        width: 100%;
        height: 100px;
        text-align: center;
    }
    .item-flex:nth-child(2){
        margin-top: 2px;
    }
    .cont-rate{
        width: 95%;
        height: 70px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .cont-rate:nth-child(2){
        margin-left: 0;
    }
    .cont-rate:nth-child(3){
        margin-left: 0;
    }
    .cont-rate h2{
        margin-top: 15px;
    }
    .bottom-flex{
        flex-direction: column;
    }
    .item-bottom{
        width: 90%;
        margin-inline: 0;
    }

    .item-bottom:nth-child(2){
        margin-top: 20px;
    }
    .item-bottom:nth-child(3){
        margin-top: 20px;
    }
}
