:root{
    --pri-color: rgb(218, 232, 247);
    --txt-color: white;
    --sec-color: rgb(3, 3, 88);
    --art-color: tan;
}


body{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 75px 70px 1fr 1fr 1fr 75px;
    grid-template-areas: 
    "header"
    "title"
    "article1"
    "article2"
    "article3"
    "footer"    
    ;
    gap: 15px;
    background-color: var(--pri-color);
    margin: 5px;
    justify-content: center;
    align-content: center;

}
header{
    grid-area: header;
    background-color: var(--sec-color);
    color: var(--txt-color);
    padding: 10px;
    
}
header h4{
    font-size: .9em;
}

header h1, header h4{
    
    margin: 0px;
    
}
.title{
    grid-area: title;
    font-size: 1.4em;
    text-align: center;
}
article{
    background-color: var(--art-color);
    justify-content: center;
    align-content: center;
    text-align: center;

}
article h2{
    font-size: 1.25em;
    margin: 2px;
}
article img{
    width: 100%;
}
p{
    padding: 0 10px 0 10px;
    margin: 10px 0 15px 0;
    text-align: left;
    font-size: 1.1em;
}
.article1{
    grid-area: article1;

}
.article2{
    grid-area: article2;

}
.article3{
    grid-area: article3;
}
footer{
    grid-area: footer;
    background-color: var(--sec-color);
    color: var(--txt-color);
    text-align: center;
}

@media only screen and (min-width: 600px) and (max-width: 991px){
    body{
        display: grid;
        grid-template-columns: 1fr 3fr 3fr 1fr;
        grid-template-rows: 100px 100px 1fr 1fr 1fr 100px;
        grid-template-areas: 
        "header header header header"
        "title title title title"
        ". article1 article1 ."
        ". article2 article2 ."
        ". article3 article3 ."
        "footer footer footer footer"
        ;
        gap: 15px;
        background-color: var(--pri-color);
        margin: 5px;
        justify-content: center;
        align-content: center;
    }
    
    header h1{
        font-size: 2.5em;
    }
    header h4{
        font-size: 1.25em;
    }
    .title{
        font-size: 2.4em;

    }
    
    article img{
        width: 90%;
        padding: 25px 0 5px 0;
        
    }
    article h2{
        font-size:1.75em;
    }
    p{
        font-size: 1.4em;
        padding: 0 25px 0 25px;
    }
    footer h4{
        font-size: 1.75em;
        
    }
}
@media only screen and (min-width: 992px){
    body{
        display: grid;
        grid-template-columns: 1fr 2fr 2fr 2fr 1fr;
        grid-template-rows: 150px 100px 1fr 1fr 1fr 150px;
        grid-template-areas: 
        "header header header header header"
        "title title title title title"
        ". article1 article1 . ."
        ". . article2 article2 ."
        ". article3 article3 . ."
        "footer footer footer footer footer"
        ;
        gap: 25px;
        background-color: var(--pri-color);
        margin: 5px;
        justify-content: center;
        align-content: center;
    }
    
    header h1{
        font-size: 4em;
    }
    header h4{
        font-size: 1.75em;
    }
    .title{
        font-size: 3em;

    }
    
    article img{
        width: 90%;
        padding: 35px 0 10px 0;
        
    }
    article h2{
        font-size: 2em;
    }
    p{
        font-size: 1.75em;
        padding: 0 35px 0 35px;
    }
    footer h4{
        font-size: 2.5em;
    }
}