@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=League+Spartan:wght@100..900&family=Manrope:wght@200..800&family=Outfit:wght@100..900&family=Quicksand:wght@300..700&family=Roboto:wght@100;300;400;500;700;900&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');

* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    font-family: 'Figtree', sans-serif;
}

.attribution { font-size: 11px; text-align: center; margin: 20px 0px 20px 0px;}
.attribution a { color: hsl(228, 45%, 44%); }

body {
    width: 100vw;
    height: 100vh;
    background-color: hsl(47, 88%, 63%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media only screen and (min-width: 600px) {

    .card {
        padding: 20px;
        width: 400px;
        height: auto;
        background-color: hsl(0, 0%, 100%);
        border: 2px solid hsl(0, 0%, 7%);
        border-radius: 14px;
        box-shadow: 8px 8px 0 #000000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .card img {
        width: 100%;
        border-radius: 14px;
    }

    .card h2 {
        margin-top: 20px;
        width: 90px;
        padding: 10px;
        font-size: 16px;
        background-color: hsl(47, 88%, 63%);
        border-radius: 4px;
    }

    .card h3 {
        margin-top: 20px;
        font-size: 16px;
        font-weight: 400;
    }

    .card h1 {
        margin-top: 20px;
        font-size: 24px;
        font-weight: 800;
    }

    .card h1:hover {
        color: hsl(47, 88%, 63%);
        cursor: pointer;
    }

    .card p {
        margin-top: 20px;
    }

    .card__footer {
        margin-top: 20px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    .card__footer img {
        width: 42px;
        height: 42px;
    }

    .card__footer h4 {
        font-size: 18px;
    }
}

@media only screen and (max-width: 600px) {

    .card {
        padding: 20px;
        width: 300px;
        height: auto;
        background-color: hsl(0, 0%, 100%);
        border: 2px solid hsl(0, 0%, 7%);
        border-radius: 14px;
        box-shadow: 8px 8px 0 #000000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .card img {
        width: 100%;
        border-radius: 14px;
    }

    .card h2 {
        margin-top: 20px;
        width: 90px;
        padding: 10px;
        font-size: 16px;
        background-color: hsl(47, 88%, 63%);
        border-radius: 4px;
    }

    .card h3 {
        margin-top: 20px;
        font-size: 16px;
        font-weight: 400;
    }

    .card h1 {
        margin-top: 20px;
        font-size: 24px;
        font-weight: 800;
    }

    .card h1:hover {
        color: hsl(47, 88%, 63%);
        cursor: pointer;
    }

    .card p {
        margin-top: 20px;
    }

    .card__footer {
        margin-top: 20px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    .card__footer img {
        width: 42px;
        height: 42px;
    }

    .card__footer h4 {
        font-size: 18px;
    }
}