@font-face {
    font-family: 'DM Sans';
    src: url(../fonts/DMSans-VariableFont_opsz\,wght.ttf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url(../fonts/DMSans-VariableFont_opsz\,wght.ttf) format(truetype);
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url(../fonts/DMSans-Italic-VariableFont_opsz\,wght.ttf)  format(truetype);
    font-weight: 500;
    font-style: italic;
}

body{
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    background-color: hsl(0, 0%, 90%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.one, .two, .three, .four, .five, .six, .seven, .eight{
    padding: 20px;
    border-radius: 15px;
}
        
.content{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-auto-rows: minmax(60px,auto);
    grid-gap: 30px;
}

h1{
    font-weight: 500;
    line-height: 1em;
    font-family: 'DM Sans', sans-serif;
}

.one, .two, .three, .four, .five, .six, .seven, .eight{
    padding: 20px;
    border-radius: 15px;
}

.one{
    grid-row-start: 7;
    background-color: hsl(31, 66%, 93%);
}

.one h1{
    font-size: 18px;
    width: 200px;
}

.one strong{
    color: hsl(256, 67%, 59%);
}

.one img{
    width: 150px;
    height: auto;
}

.two{
    grid-column-start: 1;
    text-align: center;
    background-color: hsl(256, 67%, 59%);
}

.two h1{
    color: hsl(0, 0%, 100%);
    font-size: 25px;
    margin-top: 40px;
    width: 170px;
    margin: 0 auto;
    
}

.two strong{
    color: hsl(39, 100%, 71%);
}

.two span{
    font-style: italic;
    display: inline-block;
}

.two img{
    width: 150px;
    height: auto;
    position: relative;
    top: 10px;
}

.two p{
    font-size: 14px;
}

.three{
    grid-row-start: 4;
    background-color: hsl(254, 88%, 90%);
}

.three h1{
    font-size: 18px;
    width: 200px;
}

.three img{
    width: 200px;
    height: auto;
}

.three p{
    font-size: 13px;
    width: 200px;
    text-align: center;
}

.four{
    grid-row-start: 2;
    background-color: hsl(0, 0%, 100%);
}

.four img{
    width: 250px;
    height: auto;
}

.four h1{
    font-size: 18px;
    width: 250px;
}

.five{
    grid-row-start: 3;
    background-color: hsl(39, 100%, 71%);
}

.five h1{
    font-size: 18px;
    width: 200px;
}

.five img{
    width: 150px;
    height: auto;
    position: relative;
    top: 24px;
}

.six{
    grid-row-start: 8;
    background-color: hsl(39, 100%, 71%);
}

.six h1{
    font-size: 18px;
    width: 170px;
}

.six img{
    width: 170px;
    height: auto;
}

.seven{
    grid-row-start: 6;
    background-color: hsl(0, 0%, 100%);
}

    .seven h1{
    font-size: 30px;
}

.seven p{
    font-size: 13px;
    margin-top: -10px;
}

.seven img{
    width: 140px;
}

.eight{
    grid-row-start: 5;
    background-color: hsl(256, 67%, 59%);
    text-align: center;
}

.eight img{
    width: 150px;
    height: auto;
}

.eight h1{
    font-size: 18px;
    width: 150px;
    margin: 0 auto;
    color: hsl(0, 0%, 100%);
}

.attribution { 
    font-size: 11px; text-align: center; 
}

.attribution a { 
        color: hsl(228, 45%, 44%); 
}

@media screen and (min-width: 768px){
    .content{
        width: 680px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4,1fr);
        grid-auto-rows: minmax(60px,auto);
        grid-gap: 20px;
        padding: 30px;
    }

    .one{
        grid-column: span 1;
        grid-row: span 3;
    }

    .one, .two, .three, .four, .five, .six, .seven, .eight{
        padding: 20px;
        border-radius: 15px;
    }

    .one h1{
        font-size: 18px;
        width: 100px;
    }

    .one strong{
        color: hsl(256, 67%, 59%);
    }

    .one img{
        width: 100%;
        height: auto;
    }

    .two{
        grid-column: span 2;
        grid-row: span 2;
        text-align: center;
    }

    .two h1{
        color: hsl(0, 0%, 100%);
        font-size: 25px;
        width: 230px;
        margin: 0 auto;
    }

    .two strong{
        color: hsl(39, 100%, 71%);
    }

    .two span{
        font-style: italic;
        display: inline-block;
    }

    .two img{
        width: 100px;
        height: auto;
    }

    .two p{
        font-size: 12px;
    }

    .three{
        grid-column: span 1;
        grid-row: span 4;
    }

    .three h1{
        font-size: 18px;
        width: 120px;
    }

    .three img{
        width: 100%;
        height: auto;
    }

    .three p{
        font-size: 12px;
        width: 135px;
        text-align: left;
    }

    .four{
        grid-column: span 1;
        grid-row: span 2;
    }

    .four img{
        width: 100%;
        height: auto;
    }

    .four h1{
        font-size: 18px;
        width: 120px;
    }

    .five{
        grid-column: span 1;
        grid-row: span 2;
    }

    .five h1{
        font-size: 18px;
        width: 100px;
    }

    .five img{
        width: 100%;
        height: auto;
        position: relative;
        top: 24px;
    }

    .six{
        grid-column: span 1;
        grid-row: span 3;
    }

    .six h1{
        font-size: 18px;
        width: 100px;
    }

    .six img{
        width: 100%;
        height: auto;
    }

    .seven{
        grid-column: span 1;
        grid-row: span 2;
    }

    .seven h1{
        font-size: 30px;
    }

    .seven p{
        font-size: 10px;
    }

    .seven img{
        width: 100%;
    }

    .eight {
        grid-column: span 2;
        grid-row: span 2;
    }

    .eight .eight-con{
        display: flex;
        justify-content: space-between;
    }

    .eight img{
        width: 40%;
        height: auto;
    }

    .eight h1{
        font-size: 20px;
        width: 140px;
        text-align: left;
    }

}