
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background-color: hsl(0, 0%, 98%);
    color: hsl(234, 12%, 34%);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

body > div:first-child {
    text-align: center;
    margin-bottom: 50px;
    max-width: 375px;
}

body > div:first-child h1 {
    font-weight: 200;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

body > div:first-child h1:last-of-type {
    font-weight: 600;
    color: hsl(234, 12%, 34%);
}

body > div:first-child p {
    color: hsl(212, 6%, 44%);
    margin: 20px 0 0 0;
    line-height: 1.6;
}

.cyon, .red, .orange, .blue {
    background: hsl(0, 0%, 100%);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 5px solid;
    position: relative;
    margin: 10px auto;
    width: 100%;
    max-width: 350px;
    min-height: 200px;
}

.cyon {
    border-top-color: hsl(180, 62%, 55%);
}

.red {
    border-top-color: hsl(0, 78%, 62%);
}

.orange {
    border-top-color: hsl(34, 97%, 64%);
}

.blue {
    border-top-color: hsl(212, 86%, 64%);
}

.cyon h2, .red h2, .orange h2, .blue h2 {
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.cyon p, .red p, .orange p, .blue p {
    color: hsl(212, 6%, 44%);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.cyon img, .red img, .orange img, .blue img {
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

@media (min-width: 769px) {
    body {
        padding: 50px;
    }

    .container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        max-width: 1440px;
        width: 100%;
    }

    .cyon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .red {
        grid-column: 2;
        grid-row: 1;
    }

    .orange {
        grid-column: 2;
        grid-row: 2;
    }

    .blue {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }
}
