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

:root{
    /*Primary*/
    --red: hsl(0, 78%, 62%);
    --cyan: hsl(180, 62%, 55%);
    --orange: hsl(34, 97%, 64%);
    --blue: hsl(212, 86%, 64%);
    
    /*Neutral*/
    --very-dark-blue: hsl(234, 12%, 34%);
    --grayish-blue: hsl(229, 6%, 66%);
    --very-light-gray: hsl(0, 0%, 98%);
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 1% 0;

    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: var(--grayish-blue);
    font-weight: 500;
    background-color: var(--very-light-gray);
}

h1, h2{
    color: var(--very-dark-blue);
}
header{
    padding: 1.5rem;
    max-width: 37rem;
    margin: 0 auto;
    text-align: center;
}

header .subtitle{
    font-weight: 400;
}

header p{
    margin-top: 1rem;
}

.container{
    display: grid;
    margin: 0.5rem auto;
    padding: 0 2rem;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        'content1 content2 content4'
        'content1 content3 content4';
    max-width: 65rem;
    gap: 1.5rem;
}

.container [class*='content'] {
    display: flex;
    flex-direction: column;
    justify-content: center;

    align-self: center;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0px 4px 10px var(--very-dark-blue);

    padding: 1rem 2rem;
    gap: 0.5rem;
    height: 1fr;
    max-width: 1fr;
}


.container [class*='content'] img{
    max-width: 4rem;
    align-self:flex-end;
    padding-top: 1rem;
}

.content1{
    grid-area: content1;
    border-top: 4px solid  var(--cyan);
    justify-self: flex-end;
}
.content2{
    grid-area: content2;
    border-top: 4px solid  var(--red);
    justify-self: center;
}
.content3{
    grid-area: content3;
    border-top: 4px solid  var(--orange);
    justify-self: center;
}
.content4{
    grid-area: content4;
    border-top: 4px solid  var(--blue);
    justify-self: flex-start;
}

@media screen and (max-width: 540px){
    body{
        display: inline-block;
    }
    h1{
        font-size: 26px;
    }
    .container{
        display: flex;
        flex-direction: column;
        margin: 0 auto;
    }

    .container [class*='content']{
        max-width: auto;
    }
}