@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&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: "barlow semi condensed", sans-serif;
    line-height: 1.7;
    font-size: 13px; 
    background-color: aliceblue;   
}

.container{
    max-width: 1440px;
    margin: 100px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
}

.box1, .box2, .box3, .box4, .box5 {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: rgb(152, 147, 147) 0px 48px 100px 0px;
    margin-bottom: 10px;
}

.box1-header, .box2-header, .box3-header, .box4-header, .box5-header {
    display: flex;
}

.box1-header p, .box2-header p, .box3-header p, .box4-header p, .box5-header p {
    font-size: 19px;
    opacity: 50%;
}

.box_img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgb(216, 148, 216);
    margin-right: 15px;
    margin-top: 11px;
}

.box1{
    background-color: hsl(263, 55%, 52%);
    color: white;
    background-image: url("../img/bg-pattern-quotation.svg");
    background-repeat: no-repeat;
    background-position: top right 100px;
    background-size: 150px;
}

.box2{
    background-color: hsl(217, 17%, 39%);
    color: white;
}

.box3{
    grid-row: 5/6;
}
.box5{
    background-color: hsl(218, 27%, 12%);
    color: white;
}

.box3{
    grid-row: 5/6;
}

.box1-header h1, .box2-header h1, .box3-header h1, .box4-header h1, .box5-header h1{
   font-size: 25px;
}

.glavni{
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
}

.sporedni{
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 70%;
}

.attribution{ 
    font-size: 13px; 
    text-align: center; 
}

.attribution a{ 
    color: hsl(228, 45%, 44%); 
}

@media screen and (min-width: 760px){
    .container{
        grid-template-columns: 1fr 1fr ;
        gap: 20px;
    }
    .box3{
        grid-row: 2/3;
    }
    .box5{
        grid-column: 1/3;
    }
    .attribution{
        grid-column: 1/3;
        grid-row: 5/6;
}
}

@media screen and (min-width: 1100px){
    .container{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 20px;
    }
    .box1{
        grid-column: 1/3; 
    }
    .box3{
        grid-column: 4/5;
        grid-row: 1/3;
    }
    .box5{
        grid-column: 2/4;
        grid-row: 2/3;
    }
    .attribution{
        grid-column: 1/5;
    }
}