@import url('https://fonts.googleapis.com/css2?family=Poppins: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');

:root {
    --Red: hsl(0, 78%, 62%);
    --Cyan: hsl(180, 62%, 55%);
    --Orange: hsl(34, 97%, 64%);
    --Blue: hsl(212, 86%, 64%);
    --Grey500: hsl(234, 12%, 34%);
    --Grey400: hsl(212, 6%, 44%);
    --White: hsl(0, 0%, 98%);
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: var(--Grey500);
    background-color: var(--White);
}

.container {
    margin: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
}

/* --------------> Header <-------------- */
header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 510px;
    
}
header h1 {
    font-size: 1.6em;
    font-weight: 200;
    margin: 0;
    animation: leftRight 1000ms;
}
header h2 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0;
    margin-bottom: 24px;
    animation: rightLeft 1000ms;
}
header p{
    animation: topDown 1000ms;
}

/* --------------> Cards <-------------- */
.cardsContainer{
    margin-bottom: 60px;
    animation: downTop 1000ms;
    
}
.cards{
    background-color: white;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow:var(--Cyan) 3px 10px 10px;
    min-width: 315px;
    max-width: 350px;
    height: 250px;
    overflow: hidden;
}
.cards .cardContent{
    padding: 34px; 
}
.cards .cardContent .image{
    text-align: right;
}
.cards .cardInfo{
    margin-bottom: 38px;
}
.cards .cardInfo h3{
    margin: 0;
    margin-bottom: 18px;
}
.cards .cardInfo p{
    font-size: 0.9em;
    margin: 0;
}

#card01 .line{
    background-color: var(--Cyan);
    height: 4px;
}
#card02 .line{
    background-color: var(--Red);
    height: 4px;
}
#card03 .line{
    background-color: var(--Orange);
    height: 4px;
}
#card04 .line{
    background-color: var(--Blue);
    height: 4px;
}

/* --------------> Footer <-------------- */
.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

/* --------------> >768px <-------------- */
@media screen and (min-width: 767px){
    header{
        margin-top: 60px;
        margin-bottom: 80px;
    }
    header h1{
        font-size: 2.375em;
    }
    header h2{
        font-size: 2.375em;
    }
    .cardsContainer{
        margin: 0;
        margin-bottom: 70px;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(12, 1fr);
        width: 730px;
        height: 534px;
        gap: 30px 30px;
        justify-content: center;
        align-items: center;
    }
    .cards{
        margin: 0;
    }
    #card01{
        grid-column: 1/7;
        grid-row: 1/7;
    }
    #card02{
        grid-column: 7/-1;
        grid-row: 1/7;
    }
    #card03{
        grid-column: 1/7;
        grid-row: 7/-1;
    }
    #card04{
        grid-column: 7/-1;
        grid-row: 7/-1;
    }
}
/* --------------> >1249px <-------------- */
@media screen and (min-width: 1250px) {
    .cardsContainer{
        width: 1115px;
    }
    #card01{
        grid-column: 1/5;
        grid-row: 4/9;
    }
    #card02{
        grid-column: 5/9;
        grid-row: 1/7;
    }
    #card03{
        grid-column: 5/9;
        grid-row: 7/-1;
    }
    #card04{
        grid-column: 9/-1;
        grid-row: 4/9;
    }
}
/* --------------> Animations <-------------- */
@keyframes topDown {
    0%{transform: translateY(-500px);}
    100%{transform: translateY(0px);}
}
@keyframes downTop {
    0%{transform: translateY(500px);}
    100%{transform: translateY(0px);}
}
@keyframes rightLeft {
    0%{transform: translateX(500px);}
    100%{transform: translateX(0px);}
}
@keyframes leftRight {
    0%{transform: translateX(-500px);}
    100%{transform: translateX(0px);}
}